Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SIP Headers issue

Status
Not open for further replies.

gmacdonald78

Programmer
May 4, 2012
49
GB
Hi Guys and girls,

Has anyone had experience of an IPO on R9 adding digits to the "To:" part of the SIP header. Whenever a user uses the 9N short code to dial a London number without dialling the 020 prefix the SIP header is wrong and funny enough we get a 404 not found message.

Have double checked the short codes system,ARS and user settings. Ive added a trace of user 3044 calling 75355295 using the 9 short code???????

13:31:04 135079841mS Sip: 18.6013.0 1328 SIPTrunk Endpoint(f444c994) received CMSetup
13:31:04 135079843mS Sip: 18.6013.0 1328 SIPTrunk Endpoint(f43eab44) SetLocalRTPAddress to 192.168.42.1:49152
13:31:04 135079845mS SIP Tx: UDP 192.168.42.1:5060 -> 88.215.55.11:5060
INVITE sip:0205355295@88.215.55.11 SIP/2.0
Via: SIP/2.0/UDP 192.168.42.1:5060;rport;branch=z9hG4bKa869d2e2e8440fcd3fed21f90991c9ff
From: "02076473044" <sip:02076473044@88.215.55.11>;tag=7a858f70f5cb4513
To: <sip:0205355295@88.215.55.11>
Call-ID: 6c4a6cb9a8d873e6ca5a9b526f66a0e2
CSeq: 1404649371 INVITE
Contact: "02076473044" <sip:02076473044@192.168.42.1:5060;transport=udp>
Max-Forwards: 70
Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,INFO,REFER,NOTIFY,UPDATE
Content-Type: application/sdp
Supported: timer
User-Agent: IP Office 9.0.3.0 build 941
P-Asserted-Identity: "02076473044" <sip:02076473044@192.168.42.1:5060>
Content-Length: 298

v=0
o=UserA 672306628 1786954330 IN IP4 192.168.42.1
s=Session SDP
c=IN IP4 192.168.42.1
t=0 0
m=audio 49152 RTP/AVP 0 8 18 4 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:4 G723/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
13:31:04 135079847mS CD: CALL: 296.6008.0 BState=Idle Cut=2 Music=0.0 Aend="M Scicluna(3044)" (0.0) Bend="" [Line 18] (0.0) CalledNum=975355295 () CallingNum=3044 (M Scicluna) Internal=1 Time=9646 AState=Dialling
13:31:04 135079949mS RES: Fri 24/6/2016 13:31:04 FreeMem=43390316 42195124(3) CachedMem=1195192 CMMsg=13(14) Buff=5200 1353 999 7404 4 Links=23310 BTree=12788 CPU=11.28% CPUStats=15/20/4297/14259/17155/0/0 MCR=0 MCW=0
13:31:04 135079950mS RES2: IP 500 V2 9.0.3.0 build 941 Tasks=58 RTEngine=0 CMRTEngine=0 ExRTEngine=0 Timer=170 Poll=0 Ready=0 CMReady=0 CMQueue=0 VPNNQueue=0 Monitor=4 SSA=1 TCP=197(TLS=2) TAPI=1 ASC=1 SYS=MNTD OPT=UMNT SDSPD=2034
13:31:04 135079950mS RES4: XML MemObjs=61 PoolMem=2097152(1) FreeMem=2081872(1)
13:31:04 135079965mS SIP Rx: UDP 88.215.55.11:5060 -> 192.168.42.1:5060
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.42.1:5060;rport=5060;received=192.168.42.1;branch=z9hG4bKa869d2e2e8440fcd3fed21f90991c9ff
From: "02076473044" <sip:02076473044@88.215.55.11>;tag=7a858f70f5cb4513
To: <sip:0205355295@88.215.55.11>
Call-ID: 6c4a6cb9a8d873e6ca5a9b526f66a0e2
CSeq: 1404649371 INVITE
Content-Length: 0

13:31:04 135079968mS CMLineRx: v=0
CMProceeding
Line: type=SIPLine 18 Call: lid=18 id=6013 in=0
Called[] Type=Default (100) Reason=CMDRdirect Calling[3044] Type=Internal Plan=Default
IE CMIERespondingPartyNumber (230)(P:100 S:100 T:0 N:100 R:4) number=975355295
IE CMIEDeviceDetail (231) 0a0002c80000177d LOCALE=eng HW=15 VER=9 class=CMDeviceSIPTrunk type=0 number=18 channel=2 features=0x1 rx_gain=32 tx_gain=32 ep_callid=6013 ipaddr=10.0.2.200 apps=0 loc=999 em_loc=999 features2=0x0 is_spcall=0
13:31:04 135079968mS CMARS: LINE ep Received: CMProceeding - child->state = CMCSOffering - ARS Call State = CMCSOverlapRecv
13:31:05 135080155mS H323Evt: Recv: RegistrationRequest 10.0.2.157; Endpoints registered: 89; Endpoints in registration: 0
13:31:05 135080528mS SIP Rx: UDP 88.215.55.11:5060 -> 192.168.42.1:5060
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 192.168.42.1:5060;rport=5060;received=192.168.42.1;branch=z9hG4bKa869d2e2e8440fcd3fed21f90991c9ff
To: <sip:0205355295@88.215.55.11>;tag=3675760265-855560
From: "02076473044" <sip:02076473044@88.215.55.11>;tag=7a858f70f5cb4513
Call-ID: 6c4a6cb9a8d873e6ca5a9b526f66a0e2
CSeq: 1404649371 INVITE
Allow: PUBLISH,MESSAGE,UPDATE,PRACK,SUBSCRIBE,REFER,INFO,NOTIFY,OPTIONS,BYE,INVITE,ACK,CANCEL
Contact: <sip:0205355295@88.215.55.11:5060>
Reason: Q.850;cause=1
Content-Length: 0

13:31:05 135080533mS SIP Tx: UDP 192.168.42.1:5060 -> 88.215.55.11:5060
ACK sip:0205355295@88.215.55.11:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.42.1:5060;rport;branch=z9hG4bKa869d2e2e8440fcd3fed21f90991c9ff
From: "02076473044" <sip:02076473044@88.215.55.11>;tag=7a858f70f5cb4513
To: <sip:0205355295@88.215.55.11>;tag=3675760265-855560
Call-ID: 6c4a6cb9a8d873e6ca5a9b526f66a0e2
CSeq: 1404649371 ACK
Max-Forwards: 70
Allow: INVITE,ACK,CANCEL,OPTIONS,BYE,INFO,REFER,NOTIFY,UPDATE
User-Agent: IP Office 9.0.3.0 build 941
Content-Length: 0

13:31:05 135080535mS CMLineRx: v=0
CMReleaseComp
Line: type=SIPLine 18 Call: lid=18 id=6013 in=0
Called[] Type=Default (100) Reason=CMDRdirect Calling[3044] Type=Internal Plan=Default
IE CMIERespondingPartyNumber (230)(P:100 S:100 T:0 N:100 R:4) number=975355295
IE CMIEDeviceDetail (231) 0a0002c80000177d LOCALE=eng HW=15 VER=9 class=CMDeviceSIPTrunk type=0 number=18 channel=2 features=0x1 rx_gain=32 tx_gain=32 ep_callid=6013 ipaddr=10.0.2.200 apps=0 loc=999 em_loc=999 features2=0x0 is_spcall=0
Cause=1, Unallocated (unassigned) number
13:31:05 135080535mS CMARS: LINE ep Received: CMReleaseComp - child->state = CMCSOffering - ARS Call State = CMCSOverlapRecv
13:31:05 135080536mS CMLineTx: v=0
CMReleaseComp
Line: type=SIPLine 18 Call: lid=18 id=6013 in=0
Cause=16, Normal call clearing
13:31:05 135080537mS Sip: 18.6013.0 -1 SIPTrunk Endpoint(f444c994) received CMReleaseComp
13:31:05 135080537mS Sip: SIPDialog f43eab44 deleted, dialogs 2
13:31:05 135080537mS CMCallEvt: 18.6013.0 -1 SIPTrunk Endpoint: StateChange: END=X CMCSOffering->CMCSDelete
13:31:05 135080538mS CMARS: Target: Short_Code: 7N; - Line_Group_ID: 2 has been set to: CMARS_OUTOFSERVICE_ALL
13:31:05 135080538mS CMARS: ALL targets on form: SIPPrimary - are unavailable - MOVE TO NEXT FORM: Main
13:31:05 135080538mS CMARS: FORM: Main - Received Number: 75355295
13:31:05 135080538mS CMARS: FOUND A SHORT CODE - short_code: ? - Tel: . - Called_Party: 75355295 - Line Group Id: 0
13:31:05 135080539mS CMARS: FindActiveARSByGroupID GroupID=0 - Not Found
13:31:05 135080539mS CMLRQ: FindActiveLRQByGroupID GroupID=0 - Not Found
13:31:05 135080539mS CMTARGET: Problem with Line Id: 17 - check_DNS 1 OperationalTest: 0, IP address: 88.215.63.11
13:31:05 135080540mS CMMap: a=2.1 b=0.0 Mapper::AllocateCodec allocated CMRTVocoder resource busy 1, total 42
13:31:05 135080540mS CMCallEvt: 0.6014.0 -1 BaseEP: NEW CMEndpoint f43086ac TOTAL NOW=7 CALL_LIST=2
13:31:05 135080541mS CMARS: FOUND LINE - Line Id: 1 - using line group id: 0 - Called Number: 75355295 - Calling Number: 3044
13:31:05 135080542mS CMARS: SEND Setup TO LINE
13:31:05 135080542mS CMCallEvt: 0.6014.0 1328 Q931 Trunk:1 CHAN=-1: StateChange: END=child CMCSIdle->CMCSOffering
13:31:05 135080543mS CMLineTx: v=1
 
So I guess your shortcode is 7N;/Dial/N which removes the 7, then I don't know if you have national prefix on the SIP trunk or something like that.

Just for the record, on SIP trunks you should always send the number in at least national format, never encountered a SIP trunk that would accept local numbers.
To be picky it I think it should be international with + to be SIP standard, but most SIP providers adapted their trunk to take national format.

"Trying is the first step to failure..." - Homer
 
It looks like the shortcode might be

7N; Dial 020N

When it should be

7N; Dial 0207N

| ACSS SME |
 
Hi All,

Thanks for the reply, i found the issue it was very much I couldn't see the wood for the trees.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top