<div class="gmail_quote">On Fri, Jul 6, 2012 at 12:11 AM, SamyGo <span dir="ltr">&lt;<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
umm Warren, yes including from-internal is the way of getting all the features,,,but in my experience the calls going out using the dialplan script we manually enter in our custome context don&#39;t get inserted into the FreePBX CDR and recording stuff !!<br clear="all">
</blockquote></div><br>Okay, if you&#39;re writing custom dialplan to control outbound calling, but you want to utilize the FreePBX standard features, without using custom modules, you can do something like the following, adjusting for your specific situations of course:<br>
<br>[custom-local-only]<br>; local NANPA calling for area code 281<br>exten =&gt; _281NXXXXXX,1,Verbose(Outbound call from local-only context)<br> same =&gt; n,Goto(${EXTEN},from-internal,1)<br><br>; extension-to-extension (internal) calling, assuming 2XXX internal extension plan<br>
exten =&gt; _2XXX,1,Verbose(Internal extension-to-extension call)<br> same =&gt; n,Goto(${EXTEN},from-internal,1)<br><br>[custom-long-distance]<br>; long distance NANPA calling, dial a 1 to dial anything outside of a local number<br>
exten =&gt; _1NXXNXXXXXX,1,Verbose(Outbound call from local and long-distance context)<br> same =&gt; n,Goto(${EXTEN},from-internal,1)<br><br>; allow local calls also, without having to dial a 1<br>include =&gt; custom-local-only<br>
<br><br>-- <br>Thanks,<br>--Warren Selby, dCAP<br><a href="http://www.selbytech.com" target="_blank">http://www.SelbyTech.com</a><br><br>