<br>Thank you.<br><br>Now that the conexts are different can all the extension call to echother ?<br><br>Seysan<br><br><br><div><span class="gmail_quote">On 8/27/07, <b class="gmail_sendername">Steven</b> &lt;<a href="mailto:asterisk@tescogroup.com">
asterisk@tescogroup.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">This is what I did in Trixbox:<br><br>I added this to extensions_custom.conf
<br>-----------------<br>[restrict-local-only]<br>include =&gt; from-internal-additional-custom<br>include =&gt; app-recordings<br>include =&gt; app-callwaiting-cwoff<br>include =&gt; app-callwaiting-cwon<br>include =&gt; app-dialvm
<br>include =&gt; app-vmmain<br>include =&gt; app-cf-busy-off<br>include =&gt; app-cf-busy-off-any<br>include =&gt; app-cf-busy-on<br>include =&gt; app-cf-off<br>include =&gt; app-cf-off-any<br>include =&gt; app-cf-on<br>
include =&gt; app-cf-unavailable-off<br>include =&gt; app-cf-unavailable-on<br>include =&gt; ext-meetme<br>include =&gt; app-calltrace<br>include =&gt; app-directory<br>include =&gt; app-echo-test<br>include =&gt; app-speakextennum
<br>include =&gt; app-speakingclock<br>include =&gt; app-dnd-off<br>include =&gt; app-dnd-on<br>include =&gt; app-pickup<br>include =&gt; app-chanspy<br>include =&gt; ext-test<br>include =&gt; ext-local<br>include =&gt; outrt-007-local-only
<br>include =&gt; restrict-invalid<br>exten =&gt; h,1,Hangup<br><br>[restrict-invalid]<br>exten =&gt; _9.,1,Playback(feature-not-avail-line)<br>exten =&gt; _9.,n,Playback(that-number)<br>exten =&gt; _9.,n,Playback(is)<br>
exten =&gt; _9.,n,Playback(privacy-not)<br>exten =&gt; _9.,n,Playback(accessible-through-system)<br>exten =&gt; _9.,n,Busy()<br>------------------<br><br>Then in trixbox, each extension has a context field.<br><br>Change it from the default to &quot;restrict-local-only&quot;.
<br><br>Also, I added a Route called &quot;local-only&quot;<br>This includes just our local exchanges, emergency, and toll free.<br><br>Dial Patterns:<br>911<br>9|1248.<br>9|1576.<br>9|1713.<br>9|1800.<br>9|1810.<br>9|1866.
<br>9|1877.<br>9|1888.<br><br>I created the &quot;restrict-invalid&quot; context to play a recording when a call was blocked.<br>It matches anything not specified in &quot;restrict-local-only&quot; or higher included contexts.
<br><br>This scenario work great for me.<br><br>Supposedly there is a Trixbox module called &quot;CustomContexts&quot; <a href="http://aussievoip.com.au/wiki/freePBX-CustomContexts">http://aussievoip.com.au/wiki/freePBX-CustomContexts
</a> , but it is in<br>beta and seems more complicated than my approach.<br>It should be much more versatile, but I went with the quick fix.<br><br>--<br>--<br>Steven<br><br><a href="http://www.glimasoutheast.org">http://www.glimasoutheast.org
</a><br><br><br><br>&quot;Thomas Kenyon&quot; &lt;<a href="mailto:digium@sanguinarius.co.uk">digium@sanguinarius.co.uk</a>&gt; wrote in message news:46D293E8.3000508@sanguinarius.co.uk...<br>&gt; Seysan wrote:<br>&gt;&gt; Hi all,
<br>&gt;&gt;<br>&gt;&gt; I want to limit the outgoing trunk to certain extensions, so for example<br>&gt;&gt; 6 extensions can call long distance, but 4 other extensions are not<br>&gt;&gt; allowed to do so.<br>&gt;&gt;<br>
&gt;&gt; How can I do it in FreePBX specially?<br>&gt;&gt;<br>&gt; I don&#39;t know about Trixbox per say, but normally you would have all the<br>&gt; handsets that can make long distance calls in one context and all the<br>
&gt; ones that can&#39;t in another, then use dialplan logic to glue it all together.<br>&gt;<br>&gt;<br>&gt; _______________________________________________<br>&gt; --Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">
http://www.api-digital.com--</a><br>&gt;<br>&gt; asterisk-users mailing list<br>&gt; To UNSUBSCRIBE or update options visit:<br>&gt;&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br>&gt;<br><br><br><br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br><br>asterisk-users mailing list
<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>