Here is the trace. You will see that the area code is 847 and when the number is called it will us the 8 as a TAC code and outpulse 47XXXXXXX. Now, let's keep this in mind, all I want to be able to do is append 91 in the call log so that every call will outpulse 9,1,XXX-XXX-XXXX. Normal calling and extension to extension is working fine with no issues. The customer has several TAC shortcodes, 9, 8 and 7 go out on sip trunk using different CID's and 6 will go over the PRI.
When calling back numbers that have area codes that begin with 1XX, 2XX, 3XX, 4XX or 5XX they fail also.
Code: 9N Dial N ARS:50
Code: 8N Dial N ARS:52
Code: 7N Dial N ARS:53
Code: 6N Dial N ARS:51
41021449mS CMCallEvt: 0.37047.0 -1 BaseEP: NEW CMEndpoint f3e52ecc TOTAL NOW=23 CALL_LIST=10
141021450mS CMExtnEvt: JRoyle: CMExtnHandler::SetCurrent( id: 0->37046 )
141021450mS CMExtnEvt: v=246 State, new=Idle old=PortRecoverDelay,0,0,JRoyle
141021452mS CMExtnRx: v=8848, p1=0
CMSetup
Line: type=IPLine 250 Call: lid=378 id=37046 in=0
Called[8477609532] Type=Default (100) Reason=CMDRdirect SndComp Calling[8848] Type=Internal Plan=Default
BC: CMTC=Speech CMTM=Circuit CMTR=64 CMST=Default CMU1=ULaw
IE CMIECallingPartyName (110)(Type=CMNameDefault) name=JRoyle
IE CMIECallingPartyKName (226)(Type=CMNameDefault) name=Josh Royle
IE CMIEFastStartInfoData (6) 12 item(s)
141021453mS CMCallEvt: 378.37046.0 9998 JRoyle.0: StateChange: END=A CMCSIdle->CMCSDialInitiated
141021453mS CMExtnEvt: v=246 State, new=Dialling old=Idle,0,0,JRoyle
141021454mS CMTARGET: 378.37046.0 9998 JRoyle.0: LOOKUP CALL ROUTE: type=100 called_party=[highlight #FCE94F]8477609532[/highlight] sub= calling=8848 dir=out complete=1 ses=0
141021454mS CMTARGET: 378.37046.0 9998 JRoyle.0: ADD TARGET (N): number=8477609532 type=100 depth=1 nobar=1 setorig=1 ses=0
[highlight #FCE94F]141021455mS CMTARGET: 378.37046.0 9998 JRoyle.0: SYS SC: 8477609532 2 477609532 sc=type=Dial code=8N, num=N callinfop->sending_complete=1 secondary_dialtone=
141021455mS CMARS: FindActiveARSByGroupID GroupID=52 - Found
141021455mS CMARS: MakeCallTarget - Called Number: 477609532[/highlight] 141021456mS CMCallEvt: 0.37048.0 -1 BaseEP: NEW CMEndpoint f3f32e40 TOTAL NOW=24 CALL_LIST=11
141021456mS CMTARGET: 378.37046.0 9998 JRoyle.0: INITIAL TARGETING SUCCEEDED
141021456mS CMTARGET: 378.37046.0 9998 JRoyle.0: GetNoAnswerTimer:25
141021457mS CMCallEvt: 378.37046.0 9998 JRoyle.0: StateChange: END=A CMCSDialInitiated->CMCSDialled
141021457mS CMExtnEvt: v=246 State, new=Proceeding old=Dialling,0,0,JRoyle
141021458mS CMExtnTx: v=8848, p1=0
CMProceeding
Line: type=IPLine 250 Call: lid=378 id=37046 in=0
Timed: 12/10/12 14:32
141021460mS CMCallEvt: 0.37047.0 9998 TargetingEP: StateChange: END=B CMCSIdle->CMCSOffering
141021461mS CMCallEvt: 0.37048.0 9998 ARS for UnknownCalls: StateChange: END=T CMCSIdle->CMCSOffering
141021461mS CMCallEvt: 0.37047.0 9998 TargetingEP: RequestEnd 0.37048.0 9998 ARS for UnknownCalls
141021462mS CMTARGET: 378.37046.0 9998 JRoyle.0: CancelTimer CMTCNoAnswerTimeout
141021463mS CMCallEvt: 0.37048.0 9998 ARS for UnknownCalls: StateChange: END=B CMCSOffering->CMCSOverlapRecv
141021463mS CMARS: FORM: UnknownCalls - Received Number: 477609532
141021463mS CMARS: FOUND A SHORT CODE - short_code: XN; - Tel: N"@10.250.0.9" - Called_Party: 477609532@10.250.0.9 - Line Group Id: 203
141021463mS CMARS: FindActiveARSByGroupID GroupID=203 - Not Found
141021464mS CMLRQ: FindActiveLRQByGroupID GroupID=203 - Not Found
141021464mS CMTARGET: Group Id: 203 has NOT been found in Line: 5
141021464mS CMTARGET: Group Id: 203 has NOT been found in Line: 1
141021465mS CMCallEvt: 0.37049.0 -1 BaseEP: NEW CMEndpoint f40820a4 TOTAL NOW=25 CALL_LIST=11
141021467mS CMARS: FOUND LINE - Line Id: 17 - using line group id: 203 - Called Number: 477609532@10.250.0.9 - Calling Number: 8848
141021467mS CMARS: SEND Setup TO LINE
141021467mS CMCallEvt: 17.37049.0 9998 SIPTrunk Endpoint: StateChange: END=child CMCSIdle->CMCSOffering
141021468mS CMLineTx: v=0
CMSetup
Line: type=SIPLine 17 Call: lid=17 id=37049 in=0
Called[477609532@10.250.0.9] Type=Default (100) Reason=CMDRdirect SndComp Calling[8848] Type=Internal Plan=Default
BC: CMTC=3K1Audio CMTM=Circuit CMTR=64 CMST=Default CMU1=ULaw
IE CMIECallingPartyName (110)(Type=CMNameDefault) name=JRoyle
IE CMIECallingPartyKName (226)(Type=CMNameDefault) name=Josh Royle
IE CMIERespondingPartyName (228)(Type=CMNameDefault) name=JRoyle
IE CMIERespondingPartyKName (229)(Type=CMNameDefault) name=Josh Royle
IE CMIERespondingPartyNumber (230)(P:100 S:100 T:101 N:100 R:4) number=8848
IE CMIEDeviceDetail (231) LOCALE=enu HW=15 VER=8 class=CMDeviceH323Phone type=110 number=8127 channel=0 rx_gain=32 tx_gain=32 ep_callid=37046 ipaddr=192.168.55.2 apps=0
IE CMIEMohSourceId (247) MOH Source = 255
IE CMIESupplementaryService (3)
Network Facility Extension
sourceEntity: 0
destinationEntity: 0
Interpretation APDU
discardAnyUnrecognisedInvokePdu
CallingName.Invoke.CodePageISO8859-1
invokeId 23676
user 'JRoyle' presentation Allowed
IE CMIEFastStartInfoData (6) 2 item(s)
Locale: enu
141021470mS SIP Call Tx: 17
INVITE sip:477609532@10.250.0.9 SIP/2.0
Via: SIP/2.0/UDP 10.10.55.2:5060;rport;branch=z9hG4bKf0cedb5e15d413c84778f2d56b6316b2
From: "0000000000" <sip:0000000000@10.250.0.9>;tag=7189a81fd8f9e581
To: <sip:477609532@10.250.0.9>
Call-ID: fc76586942317b8779349553bfa72041@10.10.55.2
CSeq: 1697680401 INVITE
Contact: "0000000000" <sip:0000000000@10.10.55.2:5060;transport=udp>
Max-Forwards: 70
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, INFO, UPDATE
Content-Type: application/sdp
Supported: timer
Content-Length: 222
v=0
o=UserA 1993016388 678009796 IN IP4 10.10.55.2
s=Session SDP
c=IN IP4 10.10.55.2
t=0 0
m=audio 49184 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
141021471mS SIP Tx: UDP 10.10.55.2:5060 -> 10.250.0.9:5060
INVITE sip:477609532@10.250.0.9 SIP/2.0
Via: SIP/2.0/UDP 10.10.55.2:5060;rport;branch=z9hG4bKf0cedb5e15d413c84778f2d56b6316b2
From: "0000000000" <sip:0000000000@10.250.0.9>;tag=7189a81fd8f9e581
To: <sip:477609532@10.250.0.9>
Call-ID: fc76586942317b8779349553bfa72041@10.10.55.2
CSeq: 1697680401 INVITE
Contact: "0000000000" <sip:0000000000@10.10.55.2:5060;transport=udp>
Max-Forwards: 70
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, INFO, UPDATE
Content-Type: application/sdp
Supported: timer
Content-Length: 222
v=0
o=UserA 1993016388 678009796 IN IP4 10.10.55.2
s=Session SDP
c=IN IP4 10.10.55.2
t=0 0
m=audio 49184 RTP/AVP 18 101
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
141021472mS CMCallEvt: 0.37047.0 -1 TargetingEP: StateChange: END=X CMCSOffering->CMCSDelete
141021472mS CMCallEvt: 0.37047.0 -1 BaseEP: DELETE CMEndpoint f3e52ecc TOTAL NOW=24 CALL_LIST=11
141021481mS CMMap: PCG::UnmapBChan pcp[909]b0r1 cp_b 0 other_cp_b 0
141021482mS CMMap: PCG::UnmapBChan pcp[908]b0r1 cp_b 0 other_cp_b 0
141021482mS H323Evt: RTP(END): 192.168.55.2/49186 192.168.58.2/49168 CODEC=G729A8K(6) PKTSZ=20 RFC2833=off AGE=2680 SENT=124 RECV=124 RTdelay=0 jitter=0 loss=0 remotejitter=0 remoteloss=0
141021483mS H323Evt: RTP(END): 192.168.55.2/49184 192.168.54.63/50584 CODEC=G729A8K(6) PKTSZ=20 RFC2833=off AGE=2753 SENT=124 RECV=124 RTdelay=0 jitter=0 loss=0 remotejitter=0 remoteloss=0
141021484mS CD: CALL: 378.37046.0 BState=Idle Cut=3 Music=0.0 Aend="JRoyle(8848)" (0.0) Bend="" [Line 17] (0.0) CalledNum=8477609532 () CallingNum=8848 (JRoyle) Internal=1 Time=36 AState=Dialled
141021488mS H323Evt: v=0 stacknum=19 State, new=ReleaseReq, old=Active id=37045
141021489mS H323Evt: v=0 stacknum=19 State, new=NullState, old=ReleaseReq id=37045
141021496mS SIP Rx: UDP 10.250.0.9:5060 -> 10.10.55.2:5060
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.10.55.2:5060;branch=z9hG4bKf0cedb5e15d413c84778f2d56b6316b2;rport=5060
From: "0000000000" <sip:0000000000@10.250.0.9>;tag=7189a81fd8f9e581
To: <sip:477609532@10.250.0.9>
Call-ID: fc76586942317b8779349553bfa72041@10.10.55.2
CSeq: 1697680401 INVITE
141021498mS SIP Call Rx: 17
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.10.55.2:5060;branch=z9hG4bKf0cedb5e15d413c84778f2d56b6316b2;rport=5060
From: "0000000000" <sip:0000000000@10.250.0.9>;tag=7189a81fd8f9e581
To: <sip:477609532@10.250.0.9>
Call-ID: fc76586942317b8779349553bfa72041@10.10.55.2
CSeq: 1697680401 INVITE
141021499mS CMLineRx: v=0
CMProceeding
Line: type=SIPLine 17 Call: lid=17 id=37049 in=0
IE CMIERespondingPartyNumber (230)(P:100 S:100 T:0 N:100 R:4) number=8477609532
IE CMIEDeviceDetail (231) LOCALE=enu HW=15 VER=8 class=CMDeviceSIPTrunk type=0 number=17 channel=7 rx_gain=32 tx_gain=32 ep_callid=37049 ipaddr=192.168.55.2 apps=0
141021499mS CMARS: LINE ep Received: CMProceeding - child->state = CMCSOffering - ARS Call State = CMCSOverlapRecv
141021508mS SIP Rx: UDP 10.250.0.9:5060 -> 10.10.55.2:5060
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.10.55.2:5060;branch=z9hG4bKf0cedb5e15d413c84778f2d56b6316b2;rport=5060
From: "0000000000" <sip:0000000000@10.250.0.9>;tag=7189a81fd8f9e581
To: <sip:477609532@10.250.0.9>;tag=1355665788-1350070319678
Call-ID: fc76586942317b8779349553bfa72041@10.10.55.2
CSeq: 1697680401 INVITE
Supported: timer
Contact: <sip:477609532@10.250.0.9:5060;broadworks=BWWESTSIGIS-i095m8o2or176;transport=udp>
Allow: ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,REFER,NOTIFY,UPDATE
Content-Length: 0
141021511mS SIP Call Rx: 17
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.10.55.2:5060;branch=z9hG4bKf0cedb5e15d413c84778f2d56b6316b2;rport=5060
From: "0000000000" <sip:0000000000@10.250.0.9>;tag=7189a81fd8f9e581
To: <sip:477609532@10.250.0.9>;tag=1355665788-1350070319678
Call-ID: fc76586942317b8779349553bfa72041@10.10.55.2
CSeq: 1697680401 INVITE
Supported: timer
Contact: <sip:477609532@10.250.0.9:5060;broadworks=BWWESTSIGIS-i095m8o2or176;transport=udp>
Allow: ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,REFER,NOTIFY,UPDATE
Content-Length: 0
141021512mS CMLineRx: v=0
CMAlerting
Line: type=SIPLine 17 Call: lid=17 id=37049 in=0
IE CMIERespondingPartyNumber (230)(P:100 S:100 T:0 N:100 R:4) number=8477609532
IE CMIEDeviceDetail (231) LOCALE=enu HW=15 VER=8 class=CMDeviceSIPTrunk type=0 number=17 channel=7 rx_gain=32 tx_gain=32 ep_callid=37049 ipaddr=192.168.55.2 apps=0
141021512mS CMARS: LINE ep Received: CMAlerting - child->state = CMCSOffering - ARS Call State = CMCSOverlapRecv
141021512mS CMARS: LINE IS NOW THE B END OF THE CALL - CMARSEndpoint::RequestEnd()
141021512mS CMARS: CMARSEndpoint::CallLost(cause=124) - Address: 0.37048.0 9998 ARS for UnknownCalls - Call State: CMCSOverlapRecv
141021513mS CMCallEvt: 0.37048.0 -1 ARS for UnknownCalls: StateChange: END=X CMCSOverlapRecv->CMCSDelete
141021514mS CMCallEvt: 17.37049.0 9998 SIPTrunk Endpoint: StateChange: END=B CMCSOffering->CMCSRinging
141021514mS CMCallEvt: 378.37046.0 9998 JRoyle.0: StateChange: END=A CMCSDialled->CMCSRingBack
141021515mS CMExtnEvt: v=246 State, new=Alerting old=Proceeding,0,0,JRoyle
141021517mS CMExtnTx: v=8848, p1=0
CMAlerting
Line: type=IPLine 250 Call: lid=378 id=37046 in=0
IE CMIERespondingPartyNumber (230)(P:100 S:100 T:0 N:100 R:4) number=8477609532
IE CMIEDeviceDetail (231) LOCALE=enu HW=15 VER=8 class=CMDeviceSIPTrunk type=0 number=17 channel=7 rx_gain=32 tx_gain=32 ep_callid=37049 ipaddr=192.168.55.2 apps=0
IE CMIEFastStartInfoData (6) 2 item(s)
Timed: 12/10/12 14:32
141021518mS CMExtnTx: v=8848, p1=8127
CMFacility
Line: type=IPLine 250 Call: lid=378 id=246 in=1
IE CMIEFastStartInfoData (6) 2 item(s)
141021518mS CMCallEvt: 0.37048.0 -1 BaseEP: DELETE CMEndpoint f3f32e40 TOTAL NOW=23 CALL_LIST=11
141021521mS CMMap: PCG::AddToneGenerator g R1[3] for cp[910]b0r1 append pcp[912]b0r1 (total 1)
141021521mS CMMap: PlatformConnectionAudioSAP::ConnectVoice pcp[912]b0r1 Configure 0.0
141021522mS CMMap: PlatformConnectionAudioSAP::ConnectVoice pcp[912]b0r1 ConnectIndication 0.0
141021522mS CMMap: a=0.0 b=0.0 pcp[910]b0r1 RTPR1
141021650mS CD: CALL: 378.37046.0 BState=Ringing Cut=3 Music=2.0 Aend="JRoyle(8848)" (0.0) Bend="Line 17" [Line 17] (0.0) CalledNum=477609532@10.250.0.9 () CallingNum=8848 (JRoyle) Internal=0 Time=202 AState=Ringing
141021834mS SIP Rx: UDP 10.250.0.9:5060 -> 10.10.55.2:5060
SIP/2.0 413 Request entity too large
Via: SIP/2.0/UDP 10.10.55.2:5060;branch=z9hG4bKf0cedb5e15d413c84778f2d56b6316b2;rport=5060
From: "0000000000" <sip:0000000000@10.250.0.9>;tag=7189a81fd8f9e581
To: <sip:477609532@10.250.0.9>;tag=1355665788-1350070319678
Call-ID: fc76586942317b8779349553bfa72041@10.10.55.2
CSeq: 1697680401 INVITE
Content-Length: 0
141021836mS SIP Call Rx: 17
SIP/2.0 413 Request entity too large
Via: SIP/2.0/UDP 10.10.55.2:5060;branch=z9hG4bKf0cedb5e15d413c84778f2d56b6316b2;rport=5060
From: "0000000000" <sip:0000000000@10.250.0.9>;tag=7189a81fd8f9e581
To: <sip:477609532@10.250.0.9>;tag=1355665788-1350070319678
Call-ID: fc76586942317b8779349553bfa72041@10.10.55.2
CSeq: 1697680401 INVITE
Content-Length: 0
141021838mS SIP Call Tx: 17
ACK sip:477609532@10.250.0.9 SIP/2.0
Via: SIP/2.0/UDP 10.10.55.2:5060;rport;branch=z9hG4bKf0cedb5e15d413c84778f2d56b6316b2
From: "0000000000" <sip:0000000000@10.250.0.9>;tag=7189a81fd8f9e581
To: <sip:477609532@10.250.0.9>;tag=1355665788-1350070319678
Call-ID: fc76586942317b8779349553bfa72041@10.10.55.2
CSeq: 1697680401 ACK
Max-Forwards: 70
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, INFO, UPDATE
Content-Length: 0
141021838mS SIP Tx: UDP 10.10.55.2:5060 -> 10.250.0.9:5060
ACK sip:477609532@10.250.0.9 SIP/2.0
Via: SIP/2.0/UDP 10.10.55.2:5060;rport;branch=z9hG4bKf0cedb5e15d413c84778f2d56b6316b2
From: "0000000000" <sip:0000000000@10.250.0.9>;tag=7189a81fd8f9e581
To: <sip:477609532@10.250.0.9>;tag=1355665788-1350070319678
Call-ID: fc76586942317b8779349553bfa72041@10.10.55.2
CSeq: 1697680401 ACK
Max-Forwards: 70
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, INFO, UPDATE
Content-Length: 0
141021840mS CMLineRx: v=0
CMReleaseComp
Line: type=SIPLine 17 Call: lid=17 id=37049 in=0
IE CMIERespondingPartyNumber (230)(P:100 S:100 T:0 N:100 R:4) number=8477609532
IE CMIEDeviceDetail (231) LOCALE=enu HW=15 VER=8 class=CMDeviceSIPTrunk type=0 number=17 channel=7 rx_gain=32 tx_gain=32 ep_callid=37049 ipaddr=192.168.55.2 apps=0
Cause=131, SIP Unmapped(IPO)
141021840mS CMCallEvt: 17.37049.0 9998 SIPTrunk Endpoint: StateChange: END=B CMCSRinging->CMCSCompleted
141021841mS CMExtnTx: v=8848, p1=0
CMFacility
Line: type=IPLine 250 Call: lid=378 id=37046 in=0
IE CMIEFastStartInfoData (6) 2 item(s)
Timed: 12/10/12 14:32
141021842mS CMExtnTx: v=8848, p1=8127
CMFacility
Line: type=IPLine 250 Call: lid=378 id=246 in=1
IE CMIEFastStartInfoData (6) 2 item(s)
141021844mS CMLOGGING: CALL:2012/10/1214:32,00:00:00,000,8848,O,477609532@10.250.0.9,8477609532,JRoyle,,,0,,""n/a,0
141021844mS CD: CALL: 378.37046.0 BState=Disconnecting Cut=1 Music=0.0 Aend="JRoyle(8848)" (0.0) Bend="Line 17" [Line 17] (0.0) CalledNum=477609532@10.250.0.9 () CallingNum=8848 (JRoyle) Internal=0 Time=396 AState=Ringing
141021845mS CD: CALL: 378.37046.0 Deleted
141021846mS CMExtnEvt: JRoyle: CALL LOST (CMCauseSIPUnmapped)
THANKS ALL!