sip_incoming and outgoing


#1

What I have to do if I want to be called from everyone in the net and I don’t want use any provider (as FWD)?
And what about if I want to make outbound callings to someone not registerd on my * sever?
I know it is disabled for security reasons, ie someone can call my * server and make calls to the pstn for example,
but I don’t have this kind of hardware.
Thanks for every kind of help or suggestions
C.


#2

Ok, Now I’m able to be called from eveyone in the net without any sip-provider.
I’ve created a context in the [general] section of sip.conf and defined it in extensions.conf;
I really don’t think it was so easy…
Well, now I have to find out how call people not registered on my server,
without using a sip-provider of course.
Any suggestion?
Thanks,
C.


#3

How would Asterisk know where to find the user you want to call when the user in question isn’t registered (anywhere)?


#4

Of course the user I want to reach is registerd somewhere,
but not on my server.
Suppose that I want to call alice@somedomain.com from my * server.
This is possible using a sip-trunk with FWD, or registering “somedomain” as peer on my * server.
My question is, is possible call directly “alice” without doing this things?
Thank you for answering me Gentux!
C.


#5

Finally I find the answer:

exten => _0.,1,Dial(SIP/${EXTEN:1}@${SIPDOMAIN},)

where SIPDOMAIN is an asterisk variable;
Hope this help someone.
C.


#6

You may call to and from SIP URIs no problem with Asterisk.

voip-info.org/wiki/view/SIP+URI


#7

I have to questions :

  1. Is it possible for someone to explain me how to do it with AMP ?
    What trunk and/or outbound route to create please ?

  2. And, is it possible to to call a SIP: with a IAX softphone ?

When I put that in /etc/extensions.conf :

I can call SIPs with a SIP softphone, but with a IAX softphone, I have an error :

Thanks.

PS : 613@fwd.pulver.com is just an example.


#8

Be extremely cautious about configuring your system like this - it is a serious security risk!

If you run Asterisk as root and don’t take other precautions to limit who can connect to it, you will get cracked sooner or later - and probably sooner, rather than later.

At the absolute minimum, set up Asterisk so it’s not being run as root. But that’s still not really enough to ensure security from having your system cracked.

Once you’ve been cracked and some clever bastard has installed a rootkit, you’ve got very little chance of recovering from it without deleting your existing Linux sytem and re-installing.

The best way to allow anyone to call you is to be registered with a SIP service, have canreinvite=no and set up your firewall to only allow connections from the SIP provider - let them worry about security!


#9

Why do you come back 2 months after the end of this thread, just after my question, to no answer to me ?

Let them answer to my question without trolling again about security please.


#10

Firstly, this isn’t usenet - trolling doesn’t happen on this forum.

Secondly, i didn’t notice the original messages had been posted a couple of months ago - if you hadn’t (completely unnecessarily) tacked your question onto the end of an old and finished thread, i would probably have read it more carefully and responded with a more helpful answer (although i don’t think i’ll bother now!).

Thirdly, there’s no need to be so rude. Apart from anything else, it’s not the way to win friends and get help around here!


#11

I used this thread because the question is exactly the same, so I didn’t want to create a new thread just for that. I thought it was better. May be I was wrong.

But, I never asked about security.


#12

Well, there were two questions in this thread, not one. How are people supposed to know which question you were asking about? It’s much better to start a new thread and ask your question.

If you were about to be run over by a car and i shouted “look out!”, would you be upset because you never asked me to warn you about that?

If you were asking about the original question in this thread, then the warning was relevant. If you were asking about the second question in this thread, then it wasn’t and i apologise for wasting your valuable time by making you read it!


#13

My question is only about outgoing sip calls.


#14

Well, this thread has got completely out of control now and your question’s been obscured. So if you want answers to your questions, i’d suggest you start a new thread and ask your questions again - stating clearly what it is you wish to know. That will considerably improve your chances of getting sensible answers.

It’s probably also a good idea to start a different thread for each of your two questions.