internal numbers are in the internal context right?<div><br></div><div>[others]</div><div>include => internal</div><div>;extension rules for dialing out<br><br></div><div>also change your default context in sip.conf, that default context is hit by anything incoming that doesn't match as one of your regular phones. set it to notothers? ;)</div>
<div><br></div><div>Please keep this on list, thanks</div><div><br><div class="gmail_quote">On Fri, Feb 12, 2010 at 12:48 PM, Kyle Kienapfel <span dir="ltr"><<a href="mailto:doctor.whom@gmail.com">doctor.whom@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">use two contexts, one for internal numbers, and one for outside, and include the inside phones in the outside context.<div>
<br></div><div><br><br><div class="gmail_quote"><div><div></div><div class="h5">On Fri, Feb 12, 2010 at 12:39 PM, cool dude <span dir="ltr"><<a href="mailto:cool_dudeoflko@yahoo.co.in" target="_blank">cool_dudeoflko@yahoo.co.in</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class="h5"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit">
<div>i had configured asterisk with a minimum dial plan, made 10 extentions. below is extensions and sip.conf<br>
<br>i want configure dial plan so that<br><br>Extention 2000-2005 can receive calls from outside and make calls outside and can dial all ten extentions.<br>Extention 2006-2010 can only receive calls from outside but cant call outside and can dial all ten extentions<br>
thx<br><br><br>vi /etc/asterisk/sip.conf<br><br></div>[root@localhost ~]# vi /etc/asterisk/sip.conf<div><div></div><div><br>[general]<br>port = 5060<br>bindaddr = 0.0.0.0<br>context =
others<br><br>[2000]<br>type=friend<br>context=my-phones<br>secret=1234<br>host=dynamic<br><br>[2001]<br>type=friend<br>context=my-phones<br>secret=1234<br>host=dynamic<br><br>[2002]<br>type=friend<br>context=my-phones<br>
secret=1234<br>host=dynamic<br><br>[2003]<br>type=friend<br>contex=my-phones<br>secret=1234<br>host=dynamic<br><br><br>[2004]<br>type=friend<br>contex=my-phones<br>secret=1234<br>host=dynamic<br><br>[2005]<br>type=friend<br>
</div></div>contex=myphones<div><br>secret=1234<br>host=dynamic<br><br>[2006]<br>type=friend<br>contex=my-phones<br>secret=1234<br>host=dynamic<br><br><br>[2007]<br>type=friend<br>contex=my-phones<br>secret=1234<br>
<br></div><div>[2008]<br>type=friend<br>contex=my-phones<br>secret=1234<br>host=dynamic<br><br><br>[2009]<br>type=friend<br>contex=my-phones<br>secret=1234<br>host=dynamic<br><br><br>[2010]<br>type=friend<br>contex=my-phones<br>
secret=1234<br>host=dynamic<br><br>##########################<br>########################################
#################<br><br></div>vi /etc/asterisk/extentions.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><br>
[others]<br>include => my-phones<br><br>[my-phones]<br>exten => _20XX,1,Dial(SIP/${EXTEN})<br>exten => _20XX,n,VoiceMail(${EXTEN}@others,u)<br>exten => _20XX,n,Hangup()<br><br>exten => 2001,1,Dial(Zap/1-1/${EXTEN})<br>
exten => 2001,n,Hangup<br><br>exten => 2002,1,Dial(Zap/1-1/${EXTEN})<br>exten => 2002,n,Hangup<br><br>exten => 2003,1,Dial(Zap/1-1/${EXTEN})<br>exten => 2003,n,Hangup<br><br>exten => 2004,1,Dial(Zap/1-1/${EXTEN})<br>
exten => 2004,n,Hangup<br><br>exten => 2005,1,Dial(Zap/1-1/${EXTEN})<br>exten => 2005,n,Hangup<br><br></td></tr></tbody></table><div><div></div><div><br>
<hr size="1">
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>.</div></div><br></div></div>--<div class="im">
<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></div></blockquote></div><br></div>
</blockquote></div><br></div>