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

Stefano Bertuola stefano.bertuola at gmail.com
Tue May 16 10:56:32 CEST 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170516/ee0b8506/attachment.html>


More information about the sr-users mailing list