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

2006-12-21 Thread Phil Finkler
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 =

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

2006-12-21 Thread Time Bandit
Is there a way I can create a _NXX extension and insert 1 and areacode when dialing? exten = _NXX,1,Set(CALLERID(num)=6162997590) exten = _NXX,n,Dial(IAX2/${VOICEPULSE_GATEWAY_OUT_A}/1514${EXTEN}) replace 514 with your area code hth ___

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

2006-12-21 Thread Alex Robar
Hi Phil, Using your example: exten = _NXXNXX,500,Dial(IAX2/${VOICEPULSE_GATEWAY_OUT_B}/1${EXTEN}) ... Would match NXX-NXX- and pop a one in place of what you dialed. Alex On 12/21/06, Phil Finkler [EMAIL PROTECTED] wrote: Greetings, Currently my asterisk box is using

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

2006-12-21 Thread Alex Robar
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 [EMAIL PROTECTED] wrote: Hi Phil, Using your example: exten = _NXXNXX,500,Dial(IAX2/${VOICEPULSE_GATEWAY_OUT_B}/1${EXTEN}) ... Would match

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

2006-12-21 Thread Doug Crompton
; Dial wether long distance is preceeded by 1 or not ; Dial LD via gizmo exten = _1NXXNXX,1,Dial(SIP/[EMAIL PROTECTED],120,T) exten = _1NXXNXX,2,Macro(failann,${DIALSTATUS}) exten = _NXXNXX,1,Dial(SIP/[EMAIL PROTECTED],120,T) exten = _NXXNXX,2,Macro(failann,${DIALSTATUS})