<div class="gmail_quote">On Fri, Jul 6, 2012 at 12:11 AM, SamyGo <span dir="ltr"><<a href="mailto:govoiper@gmail.com" target="_blank">govoiper@gmail.com</a>></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't get inserted into the FreePBX CDR and recording stuff !!<br clear="all">
</blockquote></div><br>Okay, if you'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 => _281NXXXXXX,1,Verbose(Outbound call from local-only context)<br> same => n,Goto(${EXTEN},from-internal,1)<br><br>; extension-to-extension (internal) calling, assuming 2XXX internal extension plan<br>
exten => _2XXX,1,Verbose(Internal extension-to-extension call)<br> same => 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 => _1NXXNXXXXXX,1,Verbose(Outbound call from local and long-distance context)<br> same => n,Goto(${EXTEN},from-internal,1)<br><br>; allow local calls also, without having to dial a 1<br>include => 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>