On May 27, 2010 at 11:50, Ernest Mavrel ernest.mavrel@novatel.si wrote:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
Please try to send mails as plain text and not as html.
Hello,<br>
<br> Kamailio v 1.4.2<br> I have problems with canceling calls. When CANCEL arrive to kamailio function t_check_trans always return false. Cancel message arrive after 75s. I was try with "<code></code>t_newtran", but without success. The only thing which I found that could be a problem is different branch on INVITE and CANCEL. I changed "via1_matching" to "0", but problem is still there.<br>
via1_matching is only for pre-3261 transactions to support broken UACs. This means it's used only if the via branch parameter _does_ _not_ start with "z9hG4bK". If the transaction is 3261-style, the via1_matching parameter is _ignored_. In your case the branch parameter does start with "z9hG4bK".
What could be wrong?<br>
The CANCEL via branch does not match the INVITE, so the CANCEL is not matched to the existing INVITE transaction. You need to fix your user agents.
[...]
Andrei
I just tested with Asterisk trunk version and it does not have this bug. Maybe you should update your Asterisk server.
regards klaus
Am 27.05.2010 11:50, schrieb Ernest Mavrel:
Internet Protocol, Src: 80.81.82.83 (80.81.82.83), Dst: 123.124.125.126 (123.124.125.126) User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060) Session Initiation Protocol Request-Line: CANCELsip:011231231@kamailio.test.com SIP/2.0 Message Header Via: SIP/2.0/UDP 80.81.82.83:5060;branch=z9hG4bK112a46cc;rport From: "Suzy Problem"sip:051277866563@kamailio.test.com;tag=as178aa982 To:sip:011231231@kamailio.test.com Call-ID:46333f4a74cd288a56622dab57960564@kamailio.test.com CSeq: 103 CANCEL User-Agent: Asterisk PBX Max-Forwards: 70 Content-Length: 0