<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">hi friend need ur help in dial plan, i want to allow exten 2000 to 2005 can make call outside and exten 2006 to 2010 can not make call outside. heres my dial plan.<br> <br>sip.conf<br> <br>[general]<br>port = 5060<br>bindaddr = 0.0.0.0<br>context =
others<br>[2000]<br>type=friend<br>context=outside<br>secret=1234<br>host=dynamic<br><br>[2001]<br>type=friend<br>context=outside<br>secret=1234<br>host=dynamic<br><br>[2002]<br>type=friend<br>context=outside<br>secret=1234<br>host=dynamic<br><br>[2003]<br>type=friend<br>contex=outside<br>secret=1234<br>host=dynamic<br> <br>[2004]<br>type=friend<br>contex=outside<br>secret=1234<br>host=dynamic<br><br>[2005]<br>type=friend<br>contex=outside<br>secret=1234<br>host=dynamic<br> <br>[2006]<br>type=friend<br>contex=internal<br>secret=1234<br>host=dynamic<br><br>[2007]<br>type=friend<br>contex=internal<br>secret=1234<br>host=dynamic<br>[2008]<br>type=friend<br>contex=internal<br>secret=1234<br>host=dynamic<br><br>[2009]<br>type=friend<br>contex=internal<br>secret=1234<br>host=dynamic<br><br>[2010]<br>type=friend<br>contex=internal<br>secret=1234<br>host=dynamic<br><br>##################################################################################
##########<br>vi /etc/asterisk/extensions.conf<br>[from-zaptel]<br>exten => s,1,wait(2)<br>exten => s,n,dial(sip/2000)<br>exten => s,n,dial(sip/2001)<br>exten => s,n,Playback(tt-weasels)<br>[others]<br>include => internal<br>include => outside<br>[internal]<br>exten => _20XX,1,Dial(SIP/${EXTEN})<br>exten => _20XX,n,VoiceMail(${EXTEN}@others,u)<br>exten => _20XX,n,Hangup()<br>[outside]<br>exten => 2001,1,Dial(Zap/1-1/${EXTEN})<br>exten => 2001,n,Hangup<br>exten => 2002,1,Dial(Zap/1-1/${EXTEN})<br>exten => 2002,n,Hangup<br>exten => 2003,1,Dial(Zap/1-1/${EXTEN})<br>exten => 2003,n,Hangup<br>exten => 2004,1,Dial(Zap/1-1/${EXTEN})<br>exten => 2004,n,Hangup<br>exten => 2005,1,Dial(Zap/1-1/${EXTEN})<br>exten => 2005,n,Hangup<br><br>this is the log when i am calling from exten 2000 to outside<br><br>Connected to Asterisk 1.4.29 currently running on localhost (pid = 2243)<br>Verbosity is at least 3<br>[Feb
13 12:05:47] NOTICE[2482]: chan_sip.c:15124 handle_request_invite: Call from '2002' to extension '9193696136' <span style="font-weight: bold;">rejected because extension not found.</span></td></tr></table><br>
<!--1--><hr size=1></hr>
Your Mail works best with the New Yahoo Optimized IE8. <a href="http://in.rd.yahoo.com/tagline_ie8_new/*http://downloads.yahoo.com/in/internetexplorer/" target="_blank">Get it NOW!</a>.