Thank you Carlos, you’re right I am using PJSIP. Should I not use it?
Thanks, Motty From: Carlos Chavez [mailto:[email protected]] 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 Extensions.conf ; 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? Thanks Motty 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
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
