Do you have public SIP extensions on your Asterisk?
- Yes, of course, SIP is the future, and we use them all the time
- Yes, we have them but they are rarely used
- No, that’s silly. When we want to call someone who is using VOIP, we route calls over the PSTN!
- We would like to but we haven’t figured out how to set it up
0 voters
I’m using Asterisk in a very simple configuration right now: I’ve got a SIP trunk (Broadvoice), it goes to Asterisk, and Asterisk connects to various handsets in a few offices. It’s cool, it all works easily. Ordinary PSTN users call in to the number, press whatever extension they want, and it rings at the appropriate phone. Office users can dial “9” followed by the number and call out.
Your bog-standard simple PBX usage example.
Now, I’m a huge fan of SIP, and I know that pure SIP calls have higher call quality and lower costs than calls involving the PSTN. When I call my friends who have SIP, why should the call route through Broadvoice, which degrades the quality and costs money? Makes no sense. I would like to give out a phone number like "sip:joe@mycompany.com"
I’m having a hard time figuring out how to do that.
It looks like I set up a context for joe in sip.conf like this:
[joe]
type=friend ; this connection can both make and receive calls
host=dynamic
context=incomingsip
callerid=Joe
canreinvite=no
nat=no
But then how do I set it up so that when I pick up my handset and dial something, it goes out correctly? Right now the outgoing context in extensions.conf looks like:
exten => _9NXXXXXXXXX,1,Dial(${OUTBOUNDTRUNK}/${EXTEN:1},60,W)
exten => _9NXXXXXXXXX,n,Hangup()
which is probably a very typical type of pattern.
What would I put in there for my outgoing SIP calls, like if I want to call sip:fred@ekiga.net ?
Thanks