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 <[email protected]>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 > > [r...@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(${ext...@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 >
-- _____________________________________________________________________ -- 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
