[Asterisk-Users] Where to place calling rule contexts?

Matt mhoppes at gmail.com
Fri Mar 18 06:08:55 MST 2005


If I only want to give my sip users say local calling where do I put
that in the sip config?

I have the contexts setup.

[outbound-local]
exten => _NXXXXXX,1,Macro(dialout-default,${EXTEN})
exten => _NXXNXXXXXX,1,Macro(dialout-default,${EXTEN})

[outbound-tollfree]
exten => _1800NXXXXXX,1,Macro(dialout-default,${EXTEN})
exten => _1888NXXXXXX,1,Macro(dialout-default,${EXTEN})
exten => _1877NXXXXXX,1,Macro(dialout-default,${EXTEN})
exten => _1866NXXXXXX,1,Macro(dialout-default,${EXTEN})

[outbound-ld]
exten => _1NXXNXXXXXX,1,Macro(dialout-default,${EXTEN})

and the sip.conf looks like:
[200]
username=200
type=friend
secret=tryagain
qualify=no
port=5060
pickupgroup=
nat=never
mailbox=
host=dynamic
dtmfmode=rfc2833
disallow=
context=from-internal
canreinvite=no
callgroup=
callerid="Roaming SoftPhone" <200>
allow=



More information about the asterisk-users mailing list