[asterisk-users] how to add area code to outgoing number in Asterisk 13.13

Motty Cruz motty.cruz at gmail.com
Tue Jan 3 10:32:13 CST 2017

Thank you Carlos, you’re right I am using PJSIP. Should I not use it? 




From: Carlos Chavez [mailto:cursor at telecomab.mx] 
Sent: Saturday, December 31, 2016 5:55 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Cc: Motty Cruz
Subject: Re: [asterisk-users] how to add area code to outgoing number in Asterisk 13.13


On 2016-12-29 12:44, Motty Cruz wrote:

Hi, my SIP provider requires 10 digits for all outgoing calls; Users dial 7 digits for outgoing.  Here is how I added the area code to all outgoing calls in Asterisk 1.8



; Adding Area code and striping 7 for local numbers

exten => _7XXXXXXX,n,Set(CALLERID(all)="My ID" <number>)

exten => _7XXXXXXX,n,Dial(SIP/mySIPprovider/1731${EXTEN:1},80)


This syntax does not work in Asterisk 13.13. has anybody dealt with this issue? 





The syntax has not changed so it should work.  You are still using chan_sip right?  Maybe you are using PJSIP which does have a different syntax?  It is probably better if you send the output from the cli so we can see what error the dialplan is throwing at you.


Telecomunicaciones Abiertas de México S.A. de C.V.
Carlos Chávez
dCAP #1349
+52 (55)8116-9161

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20170103/045f1c1f/attachment.html>

More information about the asterisk-users mailing list