[asterisk-users] adding area code

Motty Cruz motty.cruz at gmail.com
Tue Apr 28 14:27:10 CDT 2015


I apologize, I coppied the wrong code,
here is the code I am using:

; Adding Area code and striping 9 for local numbers
exten => _9XXXXXXX,n,Set(CALLERID(all)= <3817383444>)
exten => _9XXXXXXX,n,Dial(SIP/intelepeer/1381${EXTEN:1},80)


Thanks,
motty

On 04/28/2015 11:54 AM, Chad Wallace wrote:
> On Tue, 28 Apr 2015 07:21:12 -0700
> Motty Cruz <motty.cruz at gmail.com> wrote:
>
>> here is what I did and worked for me:
>>
>> exten => 1381+NXXXXXX,1,Set(CALLERID(number)=3817383444)
>>
>> exten => 1+NXXNXXXXXX,2,Dial(SIP/SIP-Provider/${EXTEN:1},80)
> I find it hard to believe this is working.
>
> First, you don't have a leading underscore on your patterns.  Your
> users aren't literally dialing the N's and X's are they?
>
> Second, what's with the plus in the extension?  You want your users to
> dial that?
>
> Third, that's two different extensions, one with priority 1 and one
> with priority 2.  The first one will set a variable and hangup, and the
> second.... there's no priority 1 for that extension... I've never tried
> that... I'm assuming it just won't work.
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20150428/6fa782f1/attachment.html>


More information about the asterisk-users mailing list