[SR-Users] core parameter onsend_route_reply=1 doesn't execute onsend_route block for received replies
Daniel-Constantin Mierla
miconda at gmail.com
Mon Sep 7 16:41:23 CEST 2015
Hello,
the onsend_route was not executed for the sip responses handled by tm
module.
There was a patch sent a while ago, but I forgot about it for a while. I
just pushed it along with another one to complete the usage of drop in
onsend_route. The corresponding commits are:
-
https://github.com/kamailio/kamailio/commit/2690a8c314d23406649dceaadce7032690500a6e
-
https://github.com/kamailio/kamailio/commit/4b2d6dd7ce1a61c964f7d996c2db4428010dd478
Testing and reporting the results would be appreciated.
Cheers,
Daniel
On 01/09/15 08:59, Daniel-Constantin Mierla wrote:
> Hello,
>
> then maybe the function from core that I spotted calling the
> onsend_route for replies is done only in stateless case. I will look
> at the tm code and come back with more details.
>
> Cheers,
> Daniel
>
> On 31/08/15 19:32, Julia Boudniatsky wrote:
>> Hello Daniel,
>>
>> When I run with debug=3, I don't see message with "reply forward to".
>>
>> That are received logs (without dialog part) in replay 183:
>>
>> Aug 31 19:47:21 KAMnet-JAF-TST-01 /usr/local/sbin/kamailio[9487]:
>> DEBUG: tm [t_reply.c:1311]: t_should_relay_response(): ->>>>>>>>>
>> T_code=100, new_code=183
>> Aug 31 19:47:21 KAMnet-JAF-TST-01 /usr/local/sbin/kamailio[9487]:
>> DEBUG: tm [t_reply.c:1829]: relay_reply(): DEBUG: relay_reply:
>> branch=1, save=0, relay=1 icode=0
>> Aug 31 19:47:21 KAMnet-JAF-TST-01 /usr/local/sbin/kamailio[9487]:
>> DEBUG: tm [t_hooks.c:288]: run_trans_callbacks_internal(): DBG:
>> trans=0x7fc307dcf4b8, callback type 32, id 0 entered
>> Aug 31 19:47:21 KAMnet-JAF-TST-01 /usr/local/sbin/kamailio[9487]:
>> DEBUG: <core> [msg_translator.c:2278]:
>> generate_res_buf_from_sip_res(): old size: 993, new size: 896
>> Aug 31 19:47:21 KAMnet-JAF-TST-01 /usr/local/sbin/kamailio[9487]:
>> DEBUG: <core> [msg_translator.c:2296]:
>> generate_res_buf_from_sip_res(): copied size: orig:446, new: 349,
>> rest: 547 msg=
>> SIP/2.0 183 Session Progress
>> Via:SIP/2.0/UDP
>> 192.168.180.1:5060;branch=z9hG4bK-61208600002ccddf-ac11bf17-1
>> From:<sip:506777498;ss7-cpc=10;cpc=ordinary at 192.168.180.1
>> <mailto:ordinary at 192.168.180.1>;user=phone>;tag=6998741155494809055
>> To:<sip:D39539988202 at 10.25.153.150
>> <mailto:sip%3AD39539988202 at 10.25.153.150>;user=phone>;tag=581042614-1441039641760
>> Call-ID:6998741155494809055-1441039607 at 172.17.191.23
>> <mailto:Call-ID%3A6998741155494809055-1441039607 at 172.17.191.23>
>> CSeq:1 INVITE
>> Contact:<sip:10.25.148.41:5060 <http://10.25.148.41:5060>>
>> Record-Route:<sip:10.25.153.150;lr;ftag=6998741155494809055>
>> Session: Media
>> RSeq:39056976
>> P-Asserted-Identity:"Test Julia"<sip:039988202 at 10.25.148.41
>> <mailto:sip%3A039988202 at 10.25.148.41>;user=phone>
>> Privacy:none
>> Require:100rel
>> Allow:ACK,BYE,CANCEL,INFO,INVITE,OPTIONS,PRACK,REFER,NOTIFY,UPDATE
>> Content-Type:application/sdp
>> Content-Length:198
>>
>> v=0
>> o=BroadWorks 209562 1 IN IP4 10.25.148.43
>> s=-
>> c=IN IP4 10.25.148.43
>> t=0 0
>> m=audio 15944 RTP/AVP 8 101
>> a=rtpmap:8 PCMA/8000
>> a=rtpmap:101 telephone-event/8000
>> a=fmtp:101 0-15
>> a=ptime:20
>> Aug 31 19:47:21 KAMnet-JAF-TST-01 /usr/local/sbin/kamailio[9487]:
>> DEBUG: tm [t_hooks.c:288]: run_trans_callbacks_internal(): DBG:
>> trans=0x7fc307dcf4b8, callback type 1048576, id 0 entered
>>
>>
>> Thank you,
>>
>> Julia
>>
>> On Mon, Aug 31, 2015 at 7:24 PM, Daniel-Constantin Mierla
>> <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>>
>> Hello,
>>
>> do you get any other log error message?
>>
>> If you run with debug=3, do you a message containing:
>>
>> ... reply forwarded to ...
>>
>> ?
>>
>> Cheers,
>> Daniel
>>
>>
>> On 30/08/15 14:55, Julia Boudniatsky wrote:
>>> Hello,
>>>
>>> I set some logs in onsend_route and it works fine for requests.
>>> With setting core parameter onsend_route_reply=1 ( yes, on), i
>>> expect to see logs for replays also, but it not occurs.
>>> Is this a bug or I miss something?
>>>
>>> version: kamailio 4.2.6 (x86_64/linux) db77ac
>>>
>>> BR,
>>> Julia
>>>
>>>
>>> _______________________________________________
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>> sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>> --
>> Daniel-Constantin Mierla
>> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
>> Book: SIP Routing With Kamailio - http://www.asipto.com
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
>> mailing list
>> sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>
> --
> Daniel-Constantin Mierla
> http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
> Book: SIP Routing With Kamailio - http://www.asipto.com
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com
Kamailio Advanced Training, Sep 28-30, 2015, in Berlin - http://asipto.com/u/kat
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150907/354507fd/attachment.html>
More information about the sr-users
mailing list