On Thursday 10 April 2014 09:43:28 Daniel-Constantin Mierla wrote:
the re-INVITE should be handled in the same way as ACK for 200ok or BYE (i.e., request within dialog). Do you get any error message in syslog? Can you share a ngrep trace of such situation (from initial INVITE to the end)? you can send it to me if it has sensitive information.
No errors as far as I can see, ACKs go thru just fine.
Digging further it seems that the problem is not handling these re-INVITEs in general but only the ones from a test trunk from a new provider.
Following re-INVITE fails (10.10.48.129 is external SBC, 10.0.36.178 my 4.1 "SBC" and 10.0.32.40 the 4.0 register server with topoh, attached the full dialog):
# U 10.10.48.129:5060 -> 10.0.36.178:5060 INVITE sip:172.19.162.1;line=pcs- mp4KWiTsxRmtEAM3WGysx7y3xGnoxAxtuAxSuA7KEsktxGZKWgQfZD6smqlf9Gttzjy*;alias=10.0.32.40~5060~1 SIP/2.0. Via: SIP/2.0/UDP 10.10.48.129:5060;branch=z9hG4bKq7m2h6102gbgpmsb52c1.1. Call-ID: SDqj77801-889102173bc5f169e17c9aee50469a7f-a8b85e3. From: "Anonymous" sip:anonymous@anonymous.invalid;tag=SDqj77801-127.0.0.1alUtKGp-06001+1+5df90004+11130183. To: sip:;user=phone;tag=1ab0493ac1bfcdac. CSeq: 596754228 INVITE. Expires: 180. Contact: sip:anonymous@10.10.48.129:5060;transport=udp. Min-SE: 1800. Session-Expires: 1800;refresher=uac. Supported: replaces, 100rel, timer. Content-Length: 394. Allow: INVITE, BYE, REGISTER, ACK, OPTIONS, CANCEL, SUBSCRIBE, NOTIFY, PRACK, INFO, REFER, UPDATE. Max-Forwards: 67. Content-Type: application/sdp. User-Agent: Alcatel-Lucent 5020 MGC-8 8.1.0.16.SP5.4.
Here the To is mangled and there is no Route. But is that the reason things go wrong? If inconclusive I'll dig some further on the register server during off peak moments.
Calling the same endpoint but simulating with a SIP phone (natted) to 10.0.36.178, onhold works as expected.
U 10.0.34.226:54503 -> 10.0.36.178:5060 INVITE sip:172.19.162.1;line=pcs- mp4KWiTsxRmtEAM3WGysx7y3xGnoxAxtuAxSuA7KEsktxGZKWgQfZD6smqlf9Gttzjy*;alias=10.0.32.40~5060~1 SIP/2.0. Via: SIP/2.0/UDP 10.0.3.175:5060;branch=z9hG4bK-fe9a78d6. From: "sandbox" sip:tst6@sandbox.pocos.nl;tag=15cf109cd7012b3fo0. To: sip:0756xxxxxx@sandbox.pocos.nl;tag=34dc7260908c3408. Remote-Party-ID: "sandbox" sip:tst6@sandbox.pocos.nl;screen=yes;party=calling. Call-ID: 5e72bda0-f317c20b@10.0.3.175. CSeq: 102 INVITE. Max-Forwards: 70. Route: sip:10.0.36.178;lr=on;nat=yes, sip:10.0.32.40;lr=on;ftag=15cf109cd7012b3fo0;did=179.95c1;vst=AAAAABsEBAEBBwwBCwBzWzAFAw8dBQwLGkEIQRMAEEEdQm5s. Contact: "sandbox" sip:tst6@10.0.3.175:5060. Expires: 30. User-Agent: Linksys/SPA962-6.1.3(a). Content-Length: 227. Content-Type: application/sdp.