Hi Alan, Thanks for highlighting this. This issue has been raised at https://github.com/Metaswitch/pjsip-upstream/issues/26, and a fix has now been released for it.
If you urgently need this fix, you can pull it from the 'latest' repo, although it hasn't gone through our full end of release QA. Our next stable release that contains this fix will be released in the next few weeks. If you want to use the fix in the 'latest' repo, then you should edit /etc/apt/sources.list.d/clearwater.list/ so that it contains "deb http://repo.cw-ngv.com/latest binary/", and then run 'sudo clearwater-upgrade' on all of your Clearwater nodes to install the new version. Ellie -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Kwon, Alan Sent: 29 July 2014 23:08 To: [email protected] Subject: [Clearwater] Accept-Contact Header Hi, This is also in "Katamari Damacy" release. Bono is scrambling Accept-Contact header in SIP MESSAGE. Incoming to Bono: Accept-Contact: *;+sip.instance="<urn:gsma:imei:35526604-120549-1>";require;explicit Outgoing from Bono: Accept-Contact: *;require;explicit;+sip.instance=%3curn%3agsma%3aimei%3a35526604-120549-1%3e Below is the log: ----------------------------------------------------------------------------------------------------- --start msg-- MESSAGE sip:[email protected];user=phone SIP/2.0 Via: SIP/2.0/TCP xx.xx.xx.88:44539;rport;branch=z9hG4bKPjop8r.lcvKRdjNhTWNoFY-kBnd6zkd6bQ Max-Forwards: 70 From: <sip:[email protected]>;tag=hFep3HpzWUliApRXrkLuGKAV5HmseLB. To: <sip:[email protected];user=phone> Call-ID: xLhjwrQxcpZOh.DV7yqRLjTwBPrmHsPU CSeq: 49367 MESSAGE Accept: text/plain, application/im-iscomposing+xml User-Agent: IM-client/OMA1.0 sams/crespo-4.1.1 RCSAndrd/2.4.13 COMLib/3.4.12 Accept: message/cpim Accept-Contact: *;+g.oma.sip-im Accept-Contact: *;+sip.instance="<urn:gsma:imei:35526604-120549-1>";require;explicit Route: <sip:xx.xx.xx:5060;transport=tcp;lr> Route: <sip:sprout.example.com:5054;transport=TCP;lr;orig> P-Preferred-Identity: <sip:[email protected]> Content-Type: message/cpim Content-Length: 558 From: <sip:[email protected]> To: <sip:[email protected]> DateTime: 2014-07-29T15:10:34.757-05:00 NS: imdn <urn:ietf:params:imdn> imdn.Message-ID: aFNbftgVvcsUCW60EZh7KqgWV0dvPuFN Content-Type: message/imdn+xml Content-Disposition: notification Content-Length: 261 <?xml version="1.0" encoding="UTF-8"?><imdn xmlns="urn:ietf:params:xml:ns:imdn"><message-id>wi0Fa0VkIu2Lh0yeVpkty5jls3S4R9hU</message-id><datetime>2014-07-29T20:10:45Z</datetime><delivery-notification><status><delivered/></status></delivery-notification></imdn> --end msg-- 29-07-2014 20:10:34.492 UTC Debug stack.cpp:425: Queuing cloned received message 0x7f596c03c3e8 for worker threads 29-07-2014 20:10:34.492 UTC Debug stack.cpp:195: Worker thread dequeue message 0x7f596c03c3e8 29-07-2014 20:10:34.492 UTC Debug pjsip: sip_endpoint.c Distributing rdata to modules: Request msg MESSAGE/cseq=49367 (rdata0x7f596c03c3e8) 29-07-2014 20:10:34.492 UTC Debug stateful_proxy.cpp:259: Proxy RX request 29-07-2014 20:10:34.492 UTC Debug stateful_proxy.cpp:902: Request received on non-trusted port 5060 29-07-2014 20:10:34.492 UTC Debug stateful_proxy.cpp:1142: Perform access proxy routing for MESSAGE request 29-07-2014 20:10:34.492 UTC Debug pjutils.cpp:481: Found Route header, URI = sip:xx.xx.xx.96:5060;transport=tcp;lr 29-07-2014 20:10:34.492 UTC Debug pjutils.cpp:484: Route header is local 29-07-2014 20:10:34.492 UTC Debug pjutils.cpp:481: Found Route header, URI = sip:sprout.example.com:5054;transport=TCP;lr;orig 29-07-2014 20:10:34.492 UTC Debug stateful_proxy.cpp:1261: Message received on non-trusted port 5060 29-07-2014 20:10:34.492 UTC Debug flowtable.cpp:137: Find flow for transport tcps0x7f596c0326c8 (2), remote address xx.xx.xx.88:44539 29-07-2014 20:10:34.492 UTC Debug flowtable.cpp:575: Dialog count now 2 for flow sip:[email protected] 29-07-2014 20:10:34.492 UTC Debug flowtable.cpp:151: Found flow record 0x7f594c003a80 29-07-2014 20:10:34.492 UTC Debug stateful_proxy.cpp:1297: Message received on known client flow 29-07-2014 20:10:34.492 UTC Debug stateful_proxy.cpp:1328: Request has one P-Preferred-Identity 29-07-2014 20:10:34.492 UTC Debug pjutils.cpp:446: Adding P-Asserted-Identity header: <sip:[email protected]> 29-07-2014 20:10:34.492 UTC Debug pjutils.cpp:481: Found Route header, URI = sip:xx.xx.xx.96:5060;transport=tcp;lr 29-07-2014 20:10:34.492 UTC Debug pjutils.cpp:484: Route header is local 29-07-2014 20:10:34.492 UTC Debug stateful_proxy.cpp:1622: Top Route header is local - erasing 29-07-2014 20:10:34.492 UTC Debug pjutils.cpp:463: Next hop node is encoded in top route header 29-07-2014 20:10:34.492 UTC Debug stateful_proxy.cpp:1492: Add record route header(s) 29-07-2014 20:10:34.492 UTC Debug stateful_proxy.cpp:1497: Message received from client - double Record-Route 29-07-2014 20:10:34.492 UTC Debug pjutils.cpp:521: Added Record-Route header, URI = sip:[email protected]:5060;transport=TCP;lr 29-07-2014 20:10:34.492 UTC Debug pjutils.cpp:521: Added Record-Route header, URI = sip:xx.xx.xx.96:5058;transport=TCP;lr 29-07-2014 20:10:34.493 UTC Debug flowtable.cpp:592: Dialog count now 1 for flow sip:[email protected] 29-07-2014 20:10:34.493 UTC Debug acr.cpp:48: Created ACR (0x7f59600009d0) 29-07-2014 20:10:34.493 UTC Debug stateful_proxy.cpp:595: Trust mode INBOUND_EDGE_CLIENT(,-rsp,-pch), serving state None 29-07-2014 20:10:34.493 UTC Debug pjsip: tsx0x7f596001c Transaction created for Request msg MESSAGE/cseq=49367 (rdata0x7f596c03c3e8) 29-07-2014 20:10:34.493 UTC Debug stateful_proxy.cpp:2107: UASTransaction constructor (0x7f596000f200) 29-07-2014 20:10:34.493 UTC Debug stateful_proxy.cpp:2108: ACR (0x7f59600009d0) 29-07-2014 20:10:34.493 UTC Debug pjsip: tsx0x7f596001c Incoming Request msg MESSAGE/cseq=49367 (rdata0x7f596c03c3e8) in state Null 29-07-2014 20:10:34.493 UTC Debug pjsip: tsx0x7f596001c State changed from Null to Trying, event=RX_MSG 29-07-2014 20:10:34.493 UTC Debug stateful_proxy.cpp:367: tsx0x7f596001c888 - tu_on_tsx_state UAS, TSX_STATE RX_MSG state=Trying 29-07-2014 20:10:34.493 UTC Debug pjsip: endpoint Response msg 408/MESSAGE/cseq=49367 (tdta0x7f596001d200) created 29-07-2014 20:10:34.493 UTC Debug stateful_proxy.cpp:3542: Report SAS start marker - trail (bf) 29-07-2014 20:10:34.493 UTC Debug pjutils.cpp:1364: Logging SAS Call-ID marker, Call-ID xLhjwrQxcpZOh.DV7yqRLjTwBPrmHsPU 29-07-2014 20:10:34.493 UTC Debug trustboundary.cpp:67: Add P-Charging headers 29-07-2014 20:10:34.493 UTC Debug stateful_proxy.cpp:3652: Allocating transaction and data for target 0 29-07-2014 20:10:34.493 UTC Debug pjsip: tsx0x7f5960021 Transaction created for Request msg MESSAGE/cseq=49367 (tdta0x7f596001e420) 29-07-2014 20:10:34.493 UTC Debug stateful_proxy.cpp:3672: Adding trail identifier 191 to UAC transaction 29-07-2014 20:10:34.493 UTC Debug stateful_proxy.cpp:3691: Updating request URI and route for target 0 29-07-2014 20:10:34.493 UTC Debug stateful_proxy.cpp:4125: Resolve next hop destination 29-07-2014 20:10:34.493 UTC Debug pjutils.cpp:463: Next hop node is encoded in top route header 29-07-2014 20:10:34.493 UTC Debug sipresolver.cpp:85: SIPResolver::resolve for name sprout.example.com, port 5054, transport 6, family 2 29-07-2014 20:10:34.493 UTC Debug baseresolver.cpp:480: Attempt to parse sprout.example.com as IP address 29-07-2014 20:10:34.493 UTC Debug sipresolver.cpp:127: Port is specified 29-07-2014 20:10:34.493 UTC Debug sipresolver.cpp:295: Perform A/AAAA record lookup only, name = sprout.example.com 29-07-2014 20:10:34.493 UTC Debug dnscachedresolver.cpp:179: Pulling 2 records from cache for sprout.example.com A 29-07-2014 20:10:34.493 UTC Debug baseresolver.cpp:359: Found 2 A/AAAA records, randomizing 29-07-2014 20:10:34.493 UTC Debug baseresolver.cpp:380: Added a server, now have 1 of 5 29-07-2014 20:10:34.493 UTC Debug baseresolver.cpp:380: Added a server, now have 1 of 5 29-07-2014 20:10:34.493 UTC Debug baseresolver.cpp:380: Added a server, now have 2 of 5 29-07-2014 20:10:34.493 UTC Debug baseresolver.cpp:418: Adding 0 servers from blacklist 29-07-2014 20:10:34.493 UTC Info pjutils.cpp:734: Resolved destination URI sip:sprout.example.com:5054;transport=TCP;lr;orig to 2 servers 29-07-2014 20:10:34.493 UTC Debug stateful_proxy.cpp:4163: Sending request for sip:[email protected];user=phone 29-07-2014 20:10:34.493 UTC Debug pjsip: tsx0x7f5960021 Sending Request msg MESSAGE/cseq=49367 (tdta0x7f596001e420) in state Null 29-07-2014 20:10:34.493 UTC Debug pjsip: endpoint Request msg MESSAGE/cseq=49367 (tdta0x7f596001e420): skipping target resolution because address is already set 29-07-2014 20:10:34.493 UTC Verbose stack.cpp:248: TX 1642 bytes Request msg MESSAGE/cseq=49367 (tdta0x7f596001e420) to TCP xx.xx.xx.97:5054: --start msg-- MESSAGE sip:[email protected];user=phone SIP/2.0 Record-Route: <sip:xx.xx.xx.96:5058;transport=TCP;lr> Record-Route: <sip:[email protected]:5060;transport=TCP;lr> Via: SIP/2.0/TCP xx.xx.xx.96:43244;rport;branch=z9hG4bKPjiAB.5-HIwUNYzXYSXSxxu9KZrTYIuI.B Via: SIP/2.0/TCP xx.xx.xx.88:44539;rport=44539;received=xx.xx.xx.88;branch=z9hG4bKPjop8r.lcvKRdjNhTWNoFY-kBnd6zkd6bQ Max-Forwards: 69 From: <sip:[email protected]>;tag=hFep3HpzWUliApRXrkLuGKAV5HmseLB. To: <sip:[email protected];user=phone> Call-ID: xLhjwrQxcpZOh.DV7yqRLjTwBPrmHsPU CSeq: 49367 MESSAGE Accept: text/plain, application/im-iscomposing+xml User-Agent: IM-client/OMA1.0 sams/crespo-4.1.1 RCSAndrd/2.4.13 COMLib/3.4.12 Accept: message/cpim Accept-Contact: *;+g.oma.sip-im Accept-Contact: *;require;explicit;+sip.instance=%3curn%3agsma%3aimei%3a35526604-120549-1%3e Route: <sip:sprout.example.com:5054;transport=TCP;lr;orig> P-Asserted-Identity: <sip:[email protected]> Session-Expires: 600 Content-Type: message/cpim Content-Length: 558 From: <sip:[email protected]> To: <sip:[email protected]> DateTime: 2014-07-29T15:10:34.757-05:00 NS: imdn <urn:ietf:params:imdn> imdn.Message-ID: aFNbftgVvcsUCW60EZh7KqgWV0dvPuFN Content-Type: message/imdn+xml Content-Disposition: notification Content-Length: 261 <?xml version="1.0" encoding="UTF-8"?><imdn xmlns="urn:ietf:params:xml:ns:imdn"><message-id>wi0Fa0VkIu2Lh0yeVpkty5jls3S4R9hU</message-id><datetime>2014-07-29T20:10:45Z</datetime><delivery-notification><status><delivered/></status></delivery-notification></imdn> --end msg-- 29-07-2014 20:10:34.493 UTC Debug pjsip: tsx0x7f5960021 State changed from Null to Calling, event=TX_MSG ----------------------------------------------------------------------------------------------------- Thanks, Alan _______________________________________________ Clearwater mailing list [email protected] http://lists.projectclearwater.org/listinfo/clearwater _______________________________________________ Clearwater mailing list [email protected] http://lists.projectclearwater.org/listinfo/clearwater
