[Asterisk-Users] Asterisk as SIP endpoint ?

Michiel van Baak michiel at vanbaak.info
Sun Jan 29 05:35:05 MST 2006


On 11:25, Sun 29 Jan 06, Peter Molnar wrote:
> Hello,
> 
> i want to use asterisk as a ZAP-FXO / SIP gateway. 
> 
> It works fine when I use a SIP provider and register my Asterisk as client 
> there - incoming calls are routed to an extension in a specified context.
> 
> What I want to do now is to not use the SIP provider and make asterisk accept 
> calls directly at sip:foo at host-where-astierisk-runs:5060. The best would be 
> associate foo at ... with an extension, bar at ... with an other extension in the 
> dialplan.
> 
> I did not figure out from the docs how to configure this scenario.

In sip.conf in the [general] part you have: context=....

In that context you should have something like:

exten => foo,1,Dial(SIP/my_phone)
exten => bar,1,Dial(SIP/wifes_phone)

or if you want to do more stuff you can use this setup to
Goto a specific context for foo and bar:

exten => foo,1,Goto(foo-incoming,s,1)

Have fun
-- 
Michiel van Baak
http://michiel.vanbaak.info
michiel at vanbaak.info
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7E0B9A2D

"Why is it drug addicts and computer afficionados are both called users?"




More information about the asterisk-users mailing list