[SR-Users] issue with tm callbacks / premature cancel

Daniel-Constantin Mierla miconda at gmail.com
Fri Aug 26 09:19:28 CEST 2011


Hello,

On 8/2/11 11:59 AM, Andrew Pogrebennyk wrote:
> Daniel,
>
> On 02.08.2011 11:35, Daniel-Constantin Mierla wrote:
>>> No, it does not (30 < 150). I've also tried settings max_inv_lifetime
>>> to even greater 300 seconds, no luck..
>> OK. Btw, do you set both parameters of t_set_fr(...)?
>
> I've tried adding a second parameter, also inserted t_reset_fr() 
> before the call to t_set_fr(), still no luck.
>
I found some time to look over the logs you sent to me. The cancel is 
for first branch, not the second. Can you send a sip trace to properly 
confirm that and see if something wrong there? From the logs:

Aug  2 15:44:00 localhost /usr/local/sbin/kamailio[32195]: DEBUG: <core> 
[parser/msg_parser.c:630]: SIP Request:
Aug  2 15:44:00 localhost /usr/local/sbin/kamailio[32195]: DEBUG: <core> 
[parser/msg_parser.c:632]:  method: <INVITE>
Aug  2 15:44:00 localhost /usr/local/sbin/kamailio[32195]: DEBUG: <core> 
[parser/msg_parser.c:634]:  uri: <sip:0115 at a.b.c.d:5060>
Aug  2 15:44:00 localhost /usr/local/sbin/kamailio[32195]: DEBUG: <core> 
[parser/msg_parser.c:636]:  version: <SIP/2.0>
Aug  2 15:44:00 localhost /usr/local/sbin/kamailio[32195]: DEBUG: <core> 
[parser/parse_via.c:1287]: Found param type 232, <branch> = 
<z9hG4bKa397.6dc05bd1.1>; state=16
...
Aug  2 15:44:00 localhost /usr/local/sbin/kamailio[32195]: DEBUG: tm 
[t_cancel.c:328]: DEBUG: cancel_branch: sending cancel...
Aug  2 15:44:00 localhost /usr/local/sbin/kamailio[32195]: DEBUG: <core> 
[parser/msg_parser.c:630]: SIP Request:
Aug  2 15:44:00 localhost /usr/local/sbin/kamailio[32195]: DEBUG: <core> 
[parser/msg_parser.c:632]:  method: <CANCEL>
Aug  2 15:44:00 localhost /usr/local/sbin/kamailio[32195]: DEBUG: <core> 
[parser/msg_parser.c:634]:  uri: <sip:0116 at a.b.c.d:5061>
Aug  2 15:44:00 localhost /usr/local/sbin/kamailio[32195]: DEBUG: <core> 
[parser/msg_parser.c:636]:  version: <SIP/2.0>
Aug  2 15:44:00 localhost /usr/local/sbin/kamailio[32195]: DEBUG: <core> 
[parser/parse_via.c:1287]: Found param type 232, <branch> = 
<z9hG4bKa397.6dc05bd1.0>; state=16

As you can see the branch parameter for cancel ends in .0, while the 
forwarded invite has .1

Cheers,
Daniel



More information about the sr-users mailing list