[SR-Users] Failing in dropping duplicated 200 OK on onreply_route()

Daniel-Constantin Mierla miconda at gmail.com
Tue May 16 14:59:00 CEST 2017


Hello,

it may be that the 200ok can be dropped only from core reply_route {},
not from tm specific onreply_rouute[x].

Is it a retransmission of 200ok or a response from another branch?

Cheers,
Daniel


On 16.05.17 10:56, Stefano Bertuola wrote:
> Hi.
>
> I am trying to drop duplicated 200 OK on onreply_route(), but Kamailio
> still delivering them:
>
>
>     if (is_method("INVITE") && t_check_status("200") && sdp_content()) {
>             xlog("L_INFO", "200 OK Received\n");
>             if (!isflagset(20)) {
>                     xlog("L_INFO", "200 OK Relayed\n");
>                     setflag(20);
>             } else {
>                     xlog("L_INFO", "200 OK Dropped\n");
>                     drop;
>             }
>     }
>
>
> From logs, I can see the script is executed, but still 200 OK is relayed:
>
>     INFO: <script>: 200 OK Received
>     INFO: <script>: 200 OK Dropped
>     DEBUG: tm [t_reply.c:1234]: t_should_relay_response(): ->>>>>>>>>
>     T_code=200, new_code=200
>     DEBUG: tm [t_reply.c:1239]: t_should_relay_response(): DBG:
>     t_should_relay_response: 200 INV after final sent
>     DEBUG: tm [t_reply.c:1752]: relay_reply(): DEBUG: relay_reply:
>     branch=0, save=0, relay=0 icode=0 [...]
>
>
> How can I proceed to get the desired behavior?
>
> Br. Stefano
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - May 22-24 (USA) - www.asipto.com
Kamailio World Conference - May 8-10, 2017 - www.kamailioworld.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170516/792fa5c8/attachment.html>


More information about the sr-users mailing list