Contact: sip:xxxxxxxxxxxx@x.x.x.x:5060;alias=x.x.x.x~48094~2;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service> 4(21951) ERROR: <core> [receive.c:149]: receive_msg(): core parsing of SIP message failed (x.x.x.x:5060/1) 4(21951) ERROR: <core> [parser/msg_parser.c:277]: get_hdr_field(): ERROR: get_hdr_field: bad body for <Contact: sip:x.x.x.x@x.x.x.x:5060;alias=x.x.x.x~48094~2;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service>(7) 4(21951) INFO: <core> [parser/msg_parser.c:355]: parse_headers(): ERROR: bad header field [Contact: <sip:xxxxx] 4(21951) ERROR: <core> [parser/msg_parser.c:705]: parse_msg(): ERROR: parse_msg: message=<INVITE sip:xxxxxxxxxxxx@x.x.x.x:5060;alias=x.x.x.x~5060~1 SIP/2.0
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/9
It looks like parameter +g.3gpp.icsi-ref has an invalid value -- the values for URI parameters must not be enclosed in double-quotes. Maybe you can paste full SIP message here in order to see exactly how the Contact body is.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/9#issuecomment-66682856
also will be good to know how you duplicate SIP messages: captagent, sip_trace ?
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/9#issuecomment-66683421
I use the captagent with tcpdefrag on, the full message is this:
INVITE sip:xxxxx00000000xx@10.x.x.x:5060;alias=10.x.x.x~5060~1 SIP/2.0. Record-Route: sip:mt@10.x.x.x;lr=on;ftag=989164876;did=34f.4102. Route: sip:term@pcscf1.ims.mncxxx.mccxxx.3gppnetwork.org:5060;nat=yes;received=sip:10.x.x.x:5060;lr. Record-Route: sip:mo@10.x.x.x;lr=on;ftag=989164876;did=34f.4102. Record-Route: sip:mo@10.x.x.x;lr=on;ftag=989164876;did=34f.4102. Record-Route: sip:mo@10.x.x.x;lr=on;ftag=989164876;did=34f.4102. Record-Route: sip:mo@10.x.x.x;r2=on;lr=on;ftag=989164876;nat=yes;did=34f.63a1. Record-Route: sip:mo@x.x.x.x;transport=tcp;r2=on;lr=on;ftag=989164876;nat=yes;did=34f.63a1. Supported: timer,100rel,histinfo. Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,UPDATE,INFO,REFER,NOTIFY,MESSAGE,PRACK. User-Agent: SLICK IMS 4.0.0. Accept-Contact: *;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";video. P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=xxxxx0001003exxx. Session-Expires: 90;refresher=uac. Min-SE: 90. Content-Type: application/sdp. From: sip:xxxxxxxxxxxx@ims.mncxxx.mccxxx.3gppnetwork.org;tag=989164876. To: sip:xxxxxxxxxxxx;phone-context=ims.mncxxx.mccxxx.3gppnetwork.org@ims.mncxxx.mccxxx.3gppnetwork.org;user=phone. Call-ID: 3450437327@10.x.x.x. CSeq: 1 INVITE. Max-Forwards: 62. Contact: sip:xxxxxxxxxxxx@10.x.x.x:5060;alias=10.x.x.x~60911~2;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";video;+sip.instance="urn:gsma:imei:xxxxxxxx-366xxx-0". Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.9efd9ce385fb13f74a5c5c05297259de.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.107170e92de6f030e36152a16765d6f2.1. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.bd4c16c8762c5d272df661535d90582b.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.1281fe88ecb5727ef9c6ffa477d8d767.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.7d1a7a52f59ce8183dc2caf395526087.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.5e05862dc0ba03d6e267df36fc2d9df1.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.f94b72d4e2f2ced2dac00f9989579d93.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.3ee4edab07004b5c1244ea2de9334ea9.0;i=5. Via: SIP/2.0/TCP 10.x.x.x:5060;received=10.x.x.x;branch=z9hG4bK312549297smg;transport=TCP;rport=60911. Content-Length: 474. P-Asserted-Identity: sip:xxxxxxxxxxxx@ims.mncxxx.mccxxx.3gppnetwork.org. X-RTP: mo. . v=0. o=SAMSUNG-IMS-UE 12345629 0 IN IP4 x.x.x.x. s=SS VOIP. i=A VOIP Session. c=IN IP4 x.x.x.x. t=0 0. m=audio 30708 RTP/AVP 107 96 110. b=AS:38. b=RS:375. b=RR:1125. a=rtpmap:107 AMR-WB/16000/1. a=fmtp:107 octet-align=1;mode-set=2;mode-change-capability=2;max-red=220. a=rtpmap:96 ---- the message is cut here in homer database ----- AMR/8000/1. a=fmtp:96 octet-align=1;mode-change-capability=2;max-red=220. a=rtpmap:110 telephone-event/8000. a=fmtp:110 0-15. a=ptime:20. a=maxptime:240. a=sendrecv. a=rtcp:30709.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/9#issuecomment-66743072
I use the captagent with tcpdefrag on, the full message is this:
INVITE sip:xxxxx00000000xx@10.x.x.x:5060;alias=10.x.x.x~5060~1 SIP/2.0. Record-Route: sip:mt@10.x.x.x;lr=on;ftag=989164876;did=34f.4102. Route: sip:term@pcscf1.ims.mncxxx.mccxxx.3gppnetwork.org:5060;nat=yes;received=sip:10.x.x.x:5060;lr. Record-Route: sip:mo@10.x.x.x;lr=on;ftag=989164876;did=34f.4102. Record-Route: sip:mo@10.x.x.x;lr=on;ftag=989164876;did=34f.4102. Record-Route: sip:mo@10.x.x.x;lr=on;ftag=989164876;did=34f.4102. Record-Route: sip:mo@10.x.x.x;r2=on;lr=on;ftag=989164876;nat=yes;did=34f.63a1. Record-Route: sip:mo@x.x.x.x;transport=tcp;r2=on;lr=on;ftag=989164876;nat=yes;did=34f.63a1. Supported: timer,100rel,histinfo. Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,UPDATE,INFO,REFER,NOTIFY,MESSAGE,PRACK. User-Agent: SLICK IMS 4.0.0. Accept-Contact: *;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";video. P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=xxxxx0001003exxx. Session-Expires: 90;refresher=uac. Min-SE: 90. Content-Type: application/sdp. From: sip:xxxxxxxxxxxx@ims.mncxxx.mccxxx.3gppnetwork.org;tag=989164876. To: sip:xxxxxxxxxxxx;phone-context=ims.mncxxx.mccxxx.3gppnetwork.org@ims.mncxxx.mccxxx.3gppnetwork.org;user=phone. Call-ID: 3450437327@10.x.x.x. CSeq: 1 INVITE. Max-Forwards: 62. Contact: sip:xxxxxxxxxxxx@10.x.x.x:5060;alias=10.x.x.x~60911~2;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";video;+sip.instance="urn:gsma:imei:xxxxxxxx-366xxx-0". Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.9efd9ce385fb13f74a5c5c05297259de.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.107170e92de6f030e36152a16765d6f2.1. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.bd4c16c8762c5d272df661535d90582b.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.1281fe88ecb5727ef9c6ffa477d8d767.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.7d1a7a52f59ce8183dc2caf395526087.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.5e05862dc0ba03d6e267df36fc2d9df1.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.f94b72d4e2f2ced2dac00f9989579d93.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.3ee4edab07004b5c1244ea2de9334ea9.0;i=5. Via: SIP/2.0/TCP 10.x.x.x:5060;received=10.x.x.x;branch=z9hG4bK312549297smg;transport=TCP;rport=60911. Content-Length: 474. P-Asserted-Identity: <sip:xxxxxxxxxxxx@ims.mncxxx.mccxxx.3gppnetwork.or (!!!!!!! the message is cut here in homer !!!!!!! ) g>. X-RTP: mo. . v=0. o=SAMSUNG-IMS-UE 12345629 0 IN IP4 x.x.x.x. s=SS VOIP. i=A VOIP Session. c=IN IP4 x.x.x.x. t=0 0. m=audio 30708 RTP/AVP 107 96 110. b=AS:38. b=RS:375. b=RR:1125. a=rtpmap:107 AMR-WB/16000/1. a=fmtp:107 octet-align=1;mode-set=2;mode-change-capability=2;max-red=220. a=rtpmap:96 AMR/8000/1. a=fmtp:96 octet-align=1;mode-change-capability=2;max-red=220. a=rtpmap:110 telephone-event/8000. a=fmtp:110 0-15. a=ptime:20. a=maxptime:240. a=sendrecv. a=rtcp:30709.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/9#issuecomment-66744775
INVITE sip:xxxxx00000000xx@10.x.x.x:5060;alias=10.x.x.x~5060~1 SIP/2.0. Record-Route: sip:mt@10.x.x.x;lr=on;ftag=989164876;did=34f.4102. Route: sip:term@pcscf1.ims.mncxxx.mccxxx.3gppnetwork.org:5060;nat=yes;received=sip:10.x.x.x:5060;lr. Record-Route: sip:mo@10.x.x.x;lr=on;ftag=989164876;did=34f.4102. Record-Route: sip:mo@10.x.x.x;lr=on;ftag=989164876;did=34f.4102. Record-Route: sip:mo@10.x.x.x;lr=on;ftag=989164876;did=34f.4102. Record-Route: sip:mo@10.x.x.x;r2=on;lr=on;ftag=989164876;nat=yes;did=34f.63a1. Record-Route: sip:mo@x.x.x.x;transport=tcp;r2=on;lr=on;ftag=989164876;nat=yes;did=34f.63a1. Supported: timer,100rel,histinfo. Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,UPDATE,INFO,REFER,NOTIFY,MESSAGE,PRACK. User-Agent: SLICK IMS 4.0.0. Accept-Contact: *;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";video. P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=xxxxx0001003exxx. Session-Expires: 90;refresher=uac. Min-SE: 90. Content-Type: application/sdp. From: sip:xxxxxxxxxxxx@ims.mncxxx.mccxxx.3gppnetwork.org;tag=989164876. To: sip:xxxxxxxxxxxx;phone-context=ims.mncxxx.mccxxx.3gppnetwork.org@ims.mncxxx.mccxxx.3gppnetwork.org;user=phone. Call-ID: 3450437327@10.x.x.x. CSeq: 1 INVITE. Max-Forwards: 62. Contact: sip:xxxxxxxxxxxx@10.x.x.x:5060;alias=10.x.x.x~60911~2;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";video;+sip.instance="urn:gsma:imei:xxxxxxxx-366xxx-0". Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.9efd9ce385fb13f74a5c5c05297259de.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.107170e92de6f030e36152a16765d6f2.1. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.bd4c16c8762c5d272df661535d90582b.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.1281fe88ecb5727ef9c6ffa477d8d767.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.7d1a7a52f59ce8183dc2caf395526087.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.5e05862dc0ba03d6e267df36fc2d9df1.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.f94b72d4e2f2ced2dac00f9989579d93.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.3ee4edab07004b5c1244ea2de9334ea9.0;i=5. Via: SIP/2.0/TCP 10.x.x.x:5060;received=10.x.x.x;branch=z9hG4bK312549297smg;transport=TCP;rport=60911. Content-Length: 474. P-Asserted-Identity: <sip:xxxxxxxxxxxx@ims.mncxxx.mccxxx.3gppnetwork.or (!!! the message is cut here in homer !!! ) g>. X-RTP: mo. . v=0. o=SAMSUNG-IMS-UE 12345629 0 IN IP4 x.x.x.x. s=SS VOIP. i=A VOIP Session. c=IN IP4 x.x.x.x. t=0 0. m=audio 30708 RTP/AVP 107 96 110. b=AS:38. b=RS:375. b=RR:1125. a=rtpmap:107 AMR-WB/16000/1. a=fmtp:107 octet-align=1;mode-set=2;mode-change-capability=2;max-red=220. a=rtpmap:96 AMR/8000/1. a=fmtp:96 octet-align=1;mode-change-capability=2;max-red=220. a=rtpmap:110 telephone-event/8000. a=fmtp:110 0-15. a=ptime:20. a=maxptime:240. a=sendrecv. a=rtcp:30709.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/9#issuecomment-66744863
INVITE sip:xxxxx00000000xx@10.x.x.x:5060;alias=10.x.x.x~5060~1 SIP/2.0. Record-Route: sip:mt@10.x.x.x;lr=on;ftag=989164876;did=34f.4102. Route: sip:term@pcscf1.ims.mncxxx.mccxxx.3gppnetwork.org:5060;nat=yes;received=sip:10.x.x.x:5060;lr. Record-Route: sip:mo@10.x.x.x;lr=on;ftag=989164876;did=34f.4102. Record-Route: sip:mo@10.x.x.x;lr=on;ftag=989164876;did=34f.4102. Record-Route: sip:mo@10.x.x.x;lr=on;ftag=989164876;did=34f.4102. Record-Route: sip:mo@10.x.x.x;r2=on;lr=on;ftag=989164876;nat=yes;did=34f.63a1. Record-Route: sip:mo@x.x.x.x;transport=tcp;r2=on;lr=on;ftag=989164876;nat=yes;did=34f.63a1. Supported: timer,100rel,histinfo. Allow: INVITE,ACK,OPTIONS,CANCEL,BYE,UPDATE,INFO,REFER,NOTIFY,MESSAGE,PRACK. User-Agent: SLICK IMS 4.0.0. Accept-Contact: *;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";video. P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=xxxxx0001003exxx. Session-Expires: 90;refresher=uac. Min-SE: 90. Content-Type: application/sdp. From: sip:xxxxxxxxxxxx@ims.mncxxx.mccxxx.3gppnetwork.org;tag=989164876. To: sip:xxxxxxxxxxxx;phone-context=ims.mncxxx.mccxxx.3gppnetwork.org@ims.mncxxx.mccxxx.3gppnetwork.org;user=phone. Call-ID: 3450437327@10.x.x.x. CSeq: 1 INVITE. Max-Forwards: 62. Contact: sip:xxxxxxxxxxxx@10.x.x.x:5060;alias=10.x.x.x~60911~2;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";video;+sip.instance="urn:gsma:imei:xxxxxxxx-366xxx-0". Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.9efd9ce385fb13f74a5c5c05297259de.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.107170e92de6f030e36152a16765d6f2.1. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.bd4c16c8762c5d272df661535d90582b.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.1281fe88ecb5727ef9c6ffa477d8d767.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.7d1a7a52f59ce8183dc2caf395526087.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.5e05862dc0ba03d6e267df36fc2d9df1.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.f94b72d4e2f2ced2dac00f9989579d93.0. Via: SIP/2.0/UDP 10.x.x.x;branch=z9hG4bKa7fa.3ee4edab07004b5c1244ea2de9334ea9.0;i=5. Via: SIP/2.0/TCP 10.x.x.x:5060;received=10.x.x.x;branch=z9hG4bK312549297smg;transport=TCP;rport=60911. Content-Length: 474. P-Asserted-Identity: sip:xxxxxxxxxxxx@ims.mncxxx.mccxxx.3gppnetwork.org. X-RTP: mo. . v=0. o=SAMSUNG-IMS-UE 12345629 0 IN IP4 x.x.x.x. s=SS VOIP. i=A VOIP Session. c=IN IP4 x.x.x.x. t=0 0. m=audio 30708 RTP/AVP 107 96 110. b=AS:38. b=RS:375. b=RR:1125. a=rtpmap:107 AMR-WB/16000/1. a=fmtp:107 octet-align=1;mode-set=2;mode-change-capability=2;max-red=220. a=rtpmap:96 AMR/8000/1. a=fmtp:96 octet-align=1;mode-change-capability=2;max-red=220. a=rtpmap:110 telephone-event/8000. a=fmtp:110 0-15. a=ptime:20. a=maxptime:240. a=sendrecv. a=rtcp:30709.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/9#issuecomment-66745180
as Daniel already told, the URI parameter should not contain non escaped double quotes: https://www.ietf.org/rfc/rfc3261.txt
URI parameters: Parameters affecting a request constructed from the URI.
URI parameters are added after the hostport component and are separated by semi-colons.
URI parameters take the form:
parameter-name "=" parameter-value
Even though an arbitrary number of URI parameters may be included in a URI, any given parameter-name MUST NOT appear more than once.
The angle-bracket "<" and ">" and double-quote (") characters are excluded because they are often used as the delimiters around URI in text documents and protocol fields. The character "#" is excluded because it is used to delimit a URI from a fragment identifier in URI references (Section 4). The percent character "%" is excluded because it is used for the encoding of escaped characters.
delims = "<" | ">" | "#" | "%" | <">
ask your vendor to fix it or make a workaround in the captagent/sipcapture module
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/9#issuecomment-66745740
I expect that the contact should be like:
Contact: sip:xxxxxxxxxxxx@10.x.x.x:5060;alias=10.x.x.x~60911~2;+g.3gpp.icsi-ref="urn%3Aurn-7%3A3gpp-service.ims.icsi.mmtel";video;+sip.instance="urn:gsma:imei:xxxxxxxx-366xxx-0"
Starting with +g.3gpp.icsi-ref, it should be header parameter, not uri -- the uri is enclosed in between < >.
It might be that a node in the path is building the wrong Contact format.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/9#issuecomment-66746251

--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/9#issuecomment-66747571
The contact from attached screenshot seems ok, do you still get troubles with it?
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/9#issuecomment-66750573
yes..
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/9#issuecomment-66751118
To understand properly, the invite in screenshot is coming to kamailio server and the one you pasted as text before is received by sipcapture node, mirrored by capture agent?
You paste here data but don't give any description from where you took it and the context when it happens. It is hard to guess and therefore impossible to really help.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/9#issuecomment-66751864
the message is from kamailio sipcapture node who recieved it from captagent
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/9#issuecomment-66757425
The problem is in the sip_captute table , column msg - the Length is too small in my case..
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/9#issuecomment-71617247
Closed #9.
--- Reply to this email directly or view it on GitHub: https://github.com/kamailio/kamailio/issues/9#event-225226898