cool dude
2010-Feb-12 20:32 UTC
[asterisk-users] how to allow some extensions to make call outside and some extensions cant call outside
i ?had configured asterisk with a minimum dial plan, made 10 extentions. below
is extensions and sip.conf
i want configure dial plan so that
Extention 2000-2005 can receive calls from outside and make calls outside and
can dial all ten extentions.
Extention 2006-2010 can only receive calls from outside but cant call outside
and can dial all ten extentions
thx
#########################################################################################################
vi /etc/asterisk/sip.conf
[general]
port = 5060
bindaddr = 0.0.0.0
context = others
[2000]
type=friend
context=my-phones
secret=1234
host=dynamic
[2001]
type=friend
context=my-phones
secret=1234
host=dynamic
[2002]
type=friend
context=my-phones
secret=1234
host=dynamic
[2003]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2004]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2005]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2006]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2007]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2008]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2009]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2010]
type=friend
contex=my-phones
secret=1234
host=dynamic
#########################################################################################################
vi /etc/asterisk/extensions.conf
[others]
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)
########################################################################################################
plz guide me how to achieve this
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
http://in.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20100213/2285fe5c/attachment.htm
asterisk at opensourcesolution.in
2010-Feb-12 20:37 UTC
[asterisk-users] how to allow some extensions to make call outside and some extensions cant call outside
i had configured asterisk with a minimum dial plan, made 10 extentions.
below is extensions and sip.conf
i want configure dial plan so
that
Extention 2000-2005 can receive calls from outside and make calls
outside and can dial all ten extentions.
Extention 2006-2010 can only
receive calls from outside but cant call outside and can dial all ten
extentions
thx
vi /etc/asterisk/sip.conf
[root at localhost ~]# vi
/etc/asterisk/sip.conf
[general]
port = 5060
bindaddr = 0.0.0.0
context others
[2000]
type=friend
context=my-phones
secret=1234
host=dynamic
[2001]
type=friend
context=my-phones
secret=1234
host=dynamic
[2002]
type=friend
context=my-phones
secret=1234
host=dynamic
[2003]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2004]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2005]
type=friend
contex=myphones
secret=1234
host=dynamic
[2006]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2007]
type=friend
contex=my-phones
secret=1234
[2008]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2009]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2010]
type=friend
contex=my-phones
secret=1234
host=dynamic
##########################
#########################################################
vi
/etc/asterisk/extentions.conf
[from-zaptel]
exten => s,1,wait(2)
exten =>
s,n,dial(sip/2000)
exten => s,n,dial(sip/2001)
exten =>
s,n,Playback(tt-weasels)
[others]
include => my-phones
[my-phones]
exten
=> _20XX,1,Dial(SIP/${EXTEN})
exten =>
_20XX,n,VoiceMail(${EXTEN}@others,u)
exten => _20XX,n,Hangup()
exten =>
2001,1,Dial(Zap/1-1/${EXTEN})
exten => 2001,n,Hangup
exten =>
2002,1,Dial(Zap/1-1/${EXTEN})
exten => 2002,n,Hangup
exten =>
2003,1,Dial(Zap/1-1/${EXTEN})
exten => 2003,n,Hangup
exten =>
2004,1,Dial(Zap/1-1/${EXTEN})
exten => 2004,n,Hangup
exten =>
2005,1,Dial(Zap/1-1/${EXTEN})
exten => 2005,n,Hangup
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20100212/3aeaebd2/attachment.htm
cool dude
2010-Feb-12 20:39 UTC
[asterisk-users] how to allow some extensions to make call outside and some extensions cant call outside
i? had configured asterisk with a minimum dial plan, made 10 extentions. below
is extensions and sip.conf
i want configure dial plan so that
Extention 2000-2005 can receive calls from outside and make calls outside and
can dial all ten extentions.
Extention 2006-2010 can only receive calls from outside but cant call outside
and can dial all ten extentions
thx
vi /etc/asterisk/sip.conf
[root at localhost ~]# vi /etc/asterisk/sip.conf
[general]
port = 5060
bindaddr = 0.0.0.0
context = others
[2000]
type=friend
context=my-phones
secret=1234
host=dynamic
[2001]
type=friend
context=my-phones
secret=1234
host=dynamic
[2002]
type=friend
context=my-phones
secret=1234
host=dynamic
[2003]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2004]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2005]
type=friend
contex=myphones
secret=1234
host=dynamic
[2006]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2007]
type=friend
contex=my-phones
secret=1234
[2008]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2009]
type=friend
contex=my-phones
secret=1234
host=dynamic
[2010]
type=friend
contex=my-phones
secret=1234
host=dynamic
##########################
#########################################################
vi /etc/asterisk/extentions.conf
[from-zaptel]
exten => s,1,wait(2)
exten => s,n,dial(sip/2000)
exten => s,n,dial(sip/2001)
exten => s,n,Playback(tt-weasels)
[others]
include => my-phones
[my-phones]
exten => _20XX,1,Dial(SIP/${EXTEN})
exten => _20XX,n,VoiceMail(${EXTEN}@others,u)
exten => _20XX,n,Hangup()
exten => 2001,1,Dial(Zap/1-1/${EXTEN})
exten => 2001,n,Hangup
exten => 2002,1,Dial(Zap/1-1/${EXTEN})
exten => 2002,n,Hangup
exten => 2003,1,Dial(Zap/1-1/${EXTEN})
exten => 2003,n,Hangup
exten => 2004,1,Dial(Zap/1-1/${EXTEN})
exten => 2004,n,Hangup
exten => 2005,1,Dial(Zap/1-1/${EXTEN})
exten => 2005,n,Hangup
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.
http://in.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20100213/13aa7224/attachment.htm
Kyle Kienapfel
2010-Feb-12 20:48 UTC
[asterisk-users] how to allow some extensions to make call outside and some extensions cant call outside
use two contexts, one for internal numbers, and one for outside, and include the inside phones in the outside context. On Fri, Feb 12, 2010 at 12:39 PM, cool dude <cool_dudeoflko at yahoo.co.in>wrote:> i had configured asterisk with a minimum dial plan, made 10 extentions. > below is extensions and sip.conf > > i want configure dial plan so that > > Extention 2000-2005 can receive calls from outside and make calls outside > and can dial all ten extentions. > Extention 2006-2010 can only receive calls from outside but cant call > outside and can dial all ten extentions > thx > > > vi /etc/asterisk/sip.conf > > [root at localhost ~]# vi /etc/asterisk/sip.conf > > [general] > port = 5060 > bindaddr = 0.0.0.0 > context = others > > [2000] > type=friend > context=my-phones > secret=1234 > host=dynamic > > [2001] > type=friend > context=my-phones > secret=1234 > host=dynamic > > [2002] > type=friend > context=my-phones > secret=1234 > host=dynamic > > [2003] > type=friend > contex=my-phones > secret=1234 > host=dynamic > > > [2004] > type=friend > contex=my-phones > secret=1234 > host=dynamic > > [2005] > type=friend > contex=myphones > > secret=1234 > host=dynamic > > [2006] > type=friend > contex=my-phones > secret=1234 > host=dynamic > > > [2007] > type=friend > contex=my-phones > secret=1234 > > [2008] > type=friend > contex=my-phones > secret=1234 > host=dynamic > > > [2009] > type=friend > contex=my-phones > secret=1234 > host=dynamic > > > [2010] > type=friend > contex=my-phones > secret=1234 > host=dynamic > > ########################## > ######################################## ################# > > vi /etc/asterisk/extentions.conf > [from-zaptel] > exten => s,1,wait(2) > exten => s,n,dial(sip/2000) > exten => s,n,dial(sip/2001) > exten => s,n,Playback(tt-weasels) > > [others] > include => my-phones > > [my-phones] > exten => _20XX,1,Dial(SIP/${EXTEN}) > exten => _20XX,n,VoiceMail(${EXTEN}@others,u) > exten => _20XX,n,Hangup() > > exten => 2001,1,Dial(Zap/1-1/${EXTEN}) > exten => 2001,n,Hangup > > exten => 2002,1,Dial(Zap/1-1/${EXTEN}) > exten => 2002,n,Hangup > > exten => 2003,1,Dial(Zap/1-1/${EXTEN}) > exten => 2003,n,Hangup > > exten => 2004,1,Dial(Zap/1-1/${EXTEN}) > exten => 2004,n,Hangup > > exten => 2005,1,Dial(Zap/1-1/${EXTEN}) > exten => 2005,n,Hangup > > > ------------------------------ > Your Mail works best with the New Yahoo Optimized IE8. Get it NOW!<http://in.rd.yahoo.com/tagline_ie8_new/*http://downloads.yahoo.com/in/internetexplorer/> > . > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20100212/c42d7701/attachment.htm