[asterisk-users] Insert 1+areacode for VOIP calls

Alex Robar alex.robar at gmail.com
Thu Dec 21 07:51:40 MST 2006


Phil,

Yeah, I just realized that I didn't answer your question. Time Bandit did
though, look at his solution!

Alex

On 12/21/06, Alex Robar <alex.robar at gmail.com> wrote:
>
> Hi Phil,
>
> Using your example:
>
> exten => _NXXNXXXXXX,500,Dial(IAX2/${VOICEPULSE_GATEWAY_OUT_B}/1${EXTEN})
>
> ... Would match NXX-NXX-XXXX and pop a one in place of what you dialed.
>
> Alex
>
> On 12/21/06, Phil Finkler <PhilF at iqconsultinginc.com> wrote:
>
> >  Greetings,
> >
> >
> >
> > Currently my asterisk box is using Voicepulse.  It works fine with the
> > exception that people need to enter the 1+area code for local calls.  I'd
> > like to get around this if possible.  The following is what I have in my
> > extensions.conf..
> >
> >
> >
> > exten => _1NXXNXXXXXX,1,Set(CALLERID(num)=6162997590)
> >
> >
> >
> > exten => _1NXXNXXXXXX,n,Dial(IAX2/${VOICEPULSE_GATEWAY_OUT_A}/${EXTEN})
> >
> > exten =>
> > _1NXXNXXXXXX,n,GotoIf($[${DIALSTATUS}=CHANUNAVAIL]?${EXTEN}|500)
> >
> > exten =>
> > _1NXXNXXXXXX,500,Dial(IAX2/${VOICEPULSE_GATEWAY_OUT_B}/${EXTEN})
> >
> >
> >
> > Is there a way I can create a _NXXXXXX extension and insert 1 and
> > areacode when dialing?
> >
> >
> >
> > Any help appreciated,
> >
> > Phil
> >
> >
> >
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> >
> >
>
>
> --
> Alex Robar
> alex.robar at gmail.com




-- 
Alex Robar
alex.robar at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061221/43a1465f/attachment.htm


More information about the asterisk-users mailing list