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