extensions.conf
===============
[internal]
; this is the section for internal calls every phone can dial
exten => 2000,1,Dial(SIP/2000)
exten => 2001,1,Dial(SIP/2001)
exten => 2002,1,Dial(SIP/2002)
exten => 2003,1,Dial(SIP/2003)
exten => 2004,1,Dial(SIP/2004)
exten => 2005,1,Dial(SIP/2005)
exten => 2006,1,Dial(SIP/2006)
exten => 2007,1,Dial(SIP/2007)
exten => 2008,1,Dial(SIP/2008)
exten => 2009,1,Dial(SIP/2009)
exten => 2010,1,Dial(SIP/2010)
[external]
; place your dialplan entries to make external calls here.
[permitall]
; put phones in this context to enable them to make any phone call
include => internal
include => external
[denyexternal]
; put phones in this context to permit only internal calls
include => internal
sip.conf
========
[general]
port = 5060
bindaddr = 0.0.0.0
context = others
[2000]
type=friend
context=my-phones
secret=1234
host=dynamic
context=permitall
[2002]
type=friend
context=my-phones
secret=1234
host=dynamic
context=permitall
[2003]
type=friend
contex=my-phones
secret=1234
host=dynamic
context=permitall
[2004]
type=friend
contex=my-phones
secret=1234
host=dynamic
context=permitall
[2005]
type=friend
contex=my-phones
secret=1234
host=dynamic
context=permitall
[2006]
type=friend
contex=my-phones
secret=1234
host=dynamic
context=denyexternal
[2007]
type=friend
contex=my-phones
secret=1234
host=dynamic
context=denyexternal
[2008]
type=friend
contex=my-phones
secret=1234
host=dynamic
context=denyexternal
[2009]
type=friend
contex=my-phones
secret=1234
host=dynamic
context=denyexternal
[2010]
type=friend
contex=my-phones
secret=1234
host=dynamic
context=denyexternal
|