THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Pawel Sternal (Sternik) 

Attached to Project - sip-router
Summary - Handling t_on_reply when use in event_route
Task Type - Bug Report
Category - tm
Status - Unconfirmed
Assigned To - 
Operating System - Linux
Severity - Medium
Priority - Normal
Reported Version - 4.0
Due in Version - Undecided
Due Date - Undecided
Details - Hi. I'm not sure it's a bug but feature, but we noticed when 
switching from kamailio 3.3.0 to kamailio 4.0.4 that t_on_reply when we use in 
event_route[tm:local-request] not working. It's something like that:

event_route[tm:local-request]{
    if(method eq "PUBLISH"){t_on_reply("LOCAL_REQUEST_PUBLISH");}
}

On kamailio 3.3.0 logs (working). First NOTICE is from reply_route{} another 
from reply_route["LOCAL_REQUEST_PUBLISH"]:
{code}
Nov 15 11:39:27 node00 /usr/sbin/kamailio[9312]: NOTICE: <script>: 
LOG:[email protected] (reply route) Method: PUBLISH MB: SIP/2.0 200 OK  
Via: SIP/2.0/UDP 
10.0.3.40;branch=z9hG4bK45f2.edb9c4d6000000000000000000000000.0  From: 
sip:[email protected];tag=78c0a98dc9d6010ef4b40939a5cbeaaf-b84b  
To: 
sip:[email protected];tag=0cbb1bd16584f535642862c6bd5e73c4.a66f  
CSeq: 10 PUBLISH  Call-ID: [email protected]  Expires: 301  SIP-ETag: 
a.1384504071.25867.34.0  Server: kamailio (3.3.0 (i386/linux))  Content-Length: 0
Nov 15 11:39:27 node00 /usr/sbin/kamailio[9312]: DEBUG: <core> 
[parser/parse_hname2.c:211]: beginning of SIP-If-Match: yet=0x2d706973
Nov 15 11:39:27 node00 /usr/sbin/kamailio[9312]: DEBUG: <core> 
[parser/msg_parser.c:202]: DEBUG: get_hdr_body : content_length=0
Nov 15 11:39:27 node00 /usr/sbin/kamailio[9312]: DEBUG: <core> 
[parser/msg_parser.c:104]: found end of header
Nov 15 11:39:27 node00 /usr/sbin/kamailio[9312]: DEBUG: tm [t_lookup.c:1079]: 
DEBUG: t_check_msg: msg id=22 global id=21 T start=0xffffffff
Nov 15 11:39:27 node00 /usr/sbin/kamailio[9312]: DEBUG: tm [t_lookup.c:965]: 
DEBUG: t_reply_matching: hash 12116 label 0 branch 0
Nov 15 11:39:27 node00 /usr/sbin/kamailio[9312]: DEBUG: tm [t_lookup.c:1016]: 
DEBUG: t_reply_matching: reply matched (T=0xaab9f2a0)!
Nov 15 11:39:27 node00 /usr/sbin/kamailio[9312]: DEBUG: tm [t_lookup.c:1148]: 
DEBUG: t_check_msg: msg id=22 global id=22 T end=0xaab9f2a0
Nov 15 11:39:27 node00 /usr/sbin/kamailio[9312]: DEBUG: tm [t_reply.c:2081]: 
DEBUG: reply_received: org. status uas=0, uac[0]=100 local=2 is_invite=0)
Nov 15 11:39:27 node00 /usr/sbin/kamailio[9312]: NOTICE: <script>: 
LOG:[email protected] (reply route LOCAL_REQUEST_PUBLISH)

...
{code}

On kamailio 4.0.4:
{code}
Nov 15 11:40:56 node00 /usr/sbin/kamailio[26318]: NOTICE: <script>: 
LOG:[email protected] (reply route) Method: PUBLISH MB: SIP/2.0 200 OK  
Via: SIP/2.0/UDP 
10.0.6.40;branch=z9hG4bKdda8.9660eec7000000000000000000000000.0  From: 
sip:[email protected];tag=b9735e7ecaf301aba65dcb34e702074e-fc45 
 To: 
sip:[email protected];tag=f580a75e5a019550a9104768be7fc4fd.c482 
 CSeq: 10 PUBLISH  Call-ID: [email protected]  Expires: 301  SIP-ETag: 
a.1384504049.29255.110.0  Server: kamailio (4.0.2 (i386/linux))  
Content-Length: 0
Nov 15 11:40:56 node00 /usr/sbin/kamailio[26318]: DEBUG: <core> 
[parser/parse_hname2.c:189]: parse_hname2(): beginning of SIP-If-Match: 
yet=0x2d706973
Nov 15 11:40:56 node00 /usr/sbin/kamailio[26318]: DEBUG: <core> 
[parser/msg_parser.c:204]: get_hdr_field(): DEBUG: get_hdr_body : 
content_length=0
Nov 15 11:40:56 node00 /usr/sbin/kamailio[26318]: DEBUG: <core> 
[parser/msg_parser.c:106]: get_hdr_field(): found end of header
Nov 15 11:40:56 node00 /usr/sbin/kamailio[26318]: DEBUG: tm [t_lookup.c:1100]: 
t_check_msg(): DEBUG: t_check_msg: msg id=162 global id=161 T start=0xffffffff
Nov 15 11:40:56 node00 /usr/sbin/kamailio[26318]: DEBUG: tm [t_lookup.c:972]: 
t_reply_matching(): DEBUG: t_reply_matching: hash 35549 label 0 branch 0
Nov 15 11:40:56 node00 /usr/sbin/kamailio[26318]: DEBUG: tm [t_lookup.c:1032]: 
t_reply_matching(): DEBUG: t_reply_matching: reply matched (T=0xa62bf6d4)!
Nov 15 11:40:56 node00 /usr/sbin/kamailio[26318]: DEBUG: tm [t_lookup.c:1169]: 
t_check_msg(): DEBUG: t_check_msg: msg id=162 global id=162 T end=0xa62bf6d4
Nov 15 11:40:56 node00 /usr/sbin/kamailio[26318]: DEBUG: tm [t_reply.c:2089]: 
reply_received(): DEBUG: reply_received: org. status uas=0, uac[0]=100 local=2 
is_invite=0)
Nov 15 11:40:56 node00 /usr/sbin/kamailio[26318]: DEBUG: tm [t_reply.c:1211]: 
t_should_relay_response(): ->>>>>>>>> T_code=0, new_code=200
Nov 15 11:40:56 node00 /usr/sbin/kamailio[26318]: DEBUG: tm [t_reply.c:1969]: 
local_reply(): DEBUG: local_reply: branch=0, save=0, winner=0
Nov 15 11:40:56 node00 /usr/sbin/kamailio[26318]: DEBUG: tm [t_reply.c:2006]: 
local_reply(): DEBUG: local transaction completed

...
{code}

I'm looking at diff between 3.3.0 i 4.0.4 and I'm found something like this:
{code}
-       onreply_route=t->on_reply; 
+       onreply_route=uac->on_reply; 
{code}

>From 
>http://sip-router.1086192.n5.nabble.com/git-alexh-for4-0-modules-tm-Remember-per-branch-onreply-route-and-onfailure-route-settings-td66819.html

Unfortunately, when I'm recompile kamailio this isn't help. 

More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=371

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to