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

2005-03-18 Thread Matt
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 = _NXX,1,Macro(dialout-default,${EXTEN})
exten = _NXXNXX,1,Macro(dialout-default,${EXTEN})

[outbound-tollfree]
exten = _1800NXX,1,Macro(dialout-default,${EXTEN})
exten = _1888NXX,1,Macro(dialout-default,${EXTEN})
exten = _1877NXX,1,Macro(dialout-default,${EXTEN})
exten = _1866NXX,1,Macro(dialout-default,${EXTEN})

[outbound-ld]
exten = _1NXXNXX,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=
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


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

2005-03-18 Thread Scott Nelson
Matt wrote:
If I only want to give my sip users say local calling where do I put
that in the sip config?
...
and the sip.conf looks like:
[200]
...
context=from-internal
...
The context=from-internal is the key.  You will need to create a 
context called from-internal that only includes local calling.

For example:
[from-internal]
include = outbound-local
include = internal-extensions
include = outbound-emergency
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


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

2005-03-18 Thread Matt
Got it.. thanks that worked...


On Fri, 18 Mar 2005 09:12:34 -0600, Scott Nelson [EMAIL PROTECTED] wrote:
 Matt wrote:
  If I only want to give my sip users say local calling where do I put
  that in the sip config?
  ...
  and the sip.conf looks like:
  [200]
  ...
  context=from-internal
  ...
 
 The context=from-internal is the key.  You will need to create a
 context called from-internal that only includes local calling.
 
 For example:
 
 [from-internal]
 include = outbound-local
 include = internal-extensions
 include = outbound-emergency
 

___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users