<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hello,</p>
<p>it may be that the 200ok can be dropped only from core
reply_route {}, not from tm specific onreply_rouute[x].</p>
<p>Is it a retransmission of 200ok or a response from another
branch?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<br>
<div class="moz-cite-prefix">On 16.05.17 10:56, Stefano Bertuola
wrote:<br>
</div>
<blockquote
cite="mid:CAHeTMT7d1O7AdJomRp7uEb41Hh8zXy0JfSHRcBy9rzh7RzSvYA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:rgb(11,83,148)">Hi.</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:rgb(11,83,148)"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:rgb(11,83,148)">I
am trying to drop duplicated 200 OK on onreply_route(), but
Kamailio still delivering them:</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:rgb(11,83,148)">
<blockquote style="margin:0px 0px 0px
40px;border:none;padding:0px">
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:rgb(11,83,148)"><br>
</div>
<div class="gmail_default">
<div class="gmail_default"><font
style="background-color:rgb(255,255,255)"
color="#000000" face="monospace, monospace">if
(is_method("INVITE") && t_check_status("200")
&& sdp_content()) {</font></div>
</div>
<div class="gmail_default">
<div class="gmail_default"><font
style="background-color:rgb(255,255,255)"
color="#000000" face="monospace, monospace">
xlog("L_INFO", "200 OK Received\n");</font></div>
</div>
<div class="gmail_default">
<div class="gmail_default"><font
style="background-color:rgb(255,255,255)"
color="#000000" face="monospace, monospace"> if
(!isflagset(20)) {</font></div>
<div class="gmail_default"><font
style="background-color:rgb(255,255,255)"
color="#000000" face="monospace, monospace">
</font><span
style="color:rgb(0,0,0);font-family:monospace,monospace">xlog("L_INFO",
"200 OK Relayed\n");</span></div>
</div>
<div class="gmail_default">
<div class="gmail_default"><font
style="background-color:rgb(255,255,255)"
color="#000000" face="monospace, monospace">
setflag(20);</font></div>
</div>
<div class="gmail_default">
<div class="gmail_default"><span
style="color:rgb(0,0,0);font-family:monospace,monospace">
} else {</span><br>
</div>
</div>
<div class="gmail_default">
<div class="gmail_default"><font
style="background-color:rgb(255,255,255)"
color="#000000" face="monospace, monospace">
xlog("L_INFO", "200 OK Dropped\n");</font></div>
</div>
<div class="gmail_default">
<div class="gmail_default"><font
style="background-color:rgb(255,255,255)"
color="#000000" face="monospace, monospace">
drop;</font></div>
</div>
<div class="gmail_default">
<div class="gmail_default"><font
style="background-color:rgb(255,255,255)"
color="#000000" face="monospace, monospace"> }</font></div>
</div>
<div class="gmail_default">
<div class="gmail_default"><font
style="background-color:rgb(255,255,255)"
color="#000000" face="monospace, monospace">}</font></div>
</div>
</blockquote>
</div>
<div class="gmail_default">
<div class="gmail_default">
<div class="gmail_default"><br>
</div>
<div class="gmail_default"><font color="#0b5394"
face="verdana, sans-serif">From logs, I can see the
script is executed, but still 200 OK is relayed:</font></div>
<div class="gmail_default"><br>
</div>
</div>
</div>
<blockquote style="margin:0px 0px 0px
40px;border:none;padding:0px">
<div class="gmail_default">
<div class="gmail_default">
<div class="gmail_default"><font face="monospace,
monospace">INFO: <script>: 200 OK Received</font></div>
</div>
</div>
<div class="gmail_default">
<div class="gmail_default">
<div class="gmail_default"><font face="monospace,
monospace">INFO: <script>: 200 OK Dropped</font></div>
</div>
</div>
<div class="gmail_default">
<div class="gmail_default">
<div class="gmail_default"><font face="monospace,
monospace">DEBUG: tm [t_reply.c:1234]:
t_should_relay_response():
->>>>>>>>> T_code=200,
new_code=200</font></div>
</div>
</div>
<div class="gmail_default">
<div class="gmail_default">
<div class="gmail_default"><font face="monospace,
monospace">DEBUG: tm [t_reply.c:1239]:
t_should_relay_response(): DBG:
t_should_relay_response: 200 INV after final sent</font></div>
</div>
</div>
<div class="gmail_default">
<div class="gmail_default">
<div class="gmail_default"><font face="monospace,
monospace">DEBUG: tm [t_reply.c:1752]: relay_reply():
DEBUG: relay_reply: branch=0, save=0, relay=0 icode=0
[...]</font></div>
</div>
</div>
</blockquote>
<div class="gmail_default">
<div class="gmail_default">
<div class="gmail_default"><br>
</div>
<div class="gmail_default"><font color="#0b5394"
face="verdana, sans-serif">How can I proceed to get the
desired behavior?</font></div>
<div class="gmail_default"><font color="#0b5394"
face="verdana, sans-serif"><br>
</font></div>
<div class="gmail_default"><font color="#0b5394"
face="verdana, sans-serif">Br. Stefano</font></div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - May 22-24 (USA) - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - May 8-10, 2017 - <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>