[asterisk-users] Asterisk 1.8 to Asterisk 13.11 appending area code to local numbers

Motty Cruz motty.cruz at gmail.com
Mon Nov 7 12:12:50 CST 2016


It does not append the area code: 
5007-00000047","SIP/truck1-00000048","Dial","SIP/truck1/6052736,80","2016-11
-06 18:49:41",,"2016-11-06 18:49:45",4,0,"NO
ANSWER","DOCUMENTATION","1478458181.738",""
5007-00000049","SIP/truck1-0000004a","Dial","SIP/truck1/6052736,80","2016-11
-06 18:52:26",,"2016-11-06 18:52:34",7,0,"NO
ANSWER","DOCUMENTATION","1478458346.826",""
5007-0000004b","SIP/truck1-0000004c","Dial","SIP/truck1/6052736,80","2016-11
-06 18:54:02",,"2016-11-06 18:54:23",20,0,"NO
ANSWER","DOCUMENTATION","1478458442.914",""

Our Sip provider takes 10 digits, it should have append 381 to 6052736
number. 

Thanks, 
Mottyh

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Joshua Colp
Sent: Sunday, November 06, 2016 12:15 PM
To: asterisk-users at lists.digium.com
Subject: Re: [asterisk-users] Asterisk 1.8 to Asterisk 13.11 appending area
code to local numbers

On Sun, Nov 6, 2016, at 03:35 PM, Motty Cruz wrote:
> Hello, I would like to add area code to local numbers, it worked like 
> a charm on Asterisk 1.8 but does not work on Asterisk 13.11.
> 
>  
> 
> Extensions.conf; worked before on Asterisk 1.8 ; Adding Area code to 
> local numbers
> 
> exten => _9XXXXXXX,n,Set(CALLERID(all)="$CallerID" <3818008000>)
> 
> exten => _9XXXXXXX,n,Dial(SIP/voip-truck/1381${EXTEN:1},80)

This should also work fine. You'll need to provide the console output of an
attempt. Different logic may be executed.

--
Joshua Colp
Digium, Inc. | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at:
www.digium.com & www.asterisk.org

--
_____________________________________________________________________
-- 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




More information about the asterisk-users mailing list