<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>There was a missing internal flag set at some point, but it
should be fixed in 5.5 branch as well, be sure you run the latest
version there.</p>
<p><br>
</p>
<p>Cheers,<br>
Daniel</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 04.07.22 10:52, Patrick Karton
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:AM0PR0402MB3778A55F2B5BFE7BEFEEAE6FDFBE9@AM0PR0402MB3778.eurprd04.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
on 5.5 kamailio wiki for core it is stated that return (0) is
the same as exit. but that's not true </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
request_route {
<div><br>
</div>
<div> if (route(POS)){</div>
<div> xlog("POS PASS\r\n");</div>
<div> }</div>
<div><br>
</div>
<div> if (!route(NEG)){</div>
<div> <span style="background-color:rgb(255, 255,
255);display:inline !important">
xlog</span>("NEG PASS\r\n");</div>
<div> }</div>
<div><br>
</div>
<div> if (!route(ZERO)) {</div>
<div> <span style="background-color:rgb(255, 255,
255);display:inline !important">
xlog</span>("ZERO PASS\r\n");</div>
<div> }</div>
<div><br>
</div>
<div> <span style="background-color:rgb(255, 255,
255);display:inline !important">
xlog</span>("AFTER ZERO\r\n");</div>
<div> send_reply("400","Error");</div>
<div> return;</div>
<div>}</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>route[POS]{</div>
<div> return 1;</div>
<div>}</div>
<div><br>
</div>
<div>route[NEG]{</div>
<div> return -1;</div>
<div>}</div>
<div><br>
</div>
<div>route[ZERO] {</div>
<div> return 0;</div>
}<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
for example from the config above not only <b>ZERO PASS</b>
will be printed but also
<b>all the actions after route(ZERO) are still executed.</b></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
instead if i replace return 0 with exit in route[ZERO]. this
work as expected.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* <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>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<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 - Online: June 20-23, 2022
* <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
</body>
</html>