<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi,<br>
<br>
Replace :<br>
<br>
<i> if (has_totag()) {</i><i><br>
</i><i> if (loose_route()) {</i><i><br>
</i><br>
<br>
with:<br>
<br>
<i> if (has_totag()) {</i><i><br>
</i><i> if (loose_route() || match_dialog()) {</i><i><br>
</i><br>
Regards,<br>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 07.08.2014 10:18, Лытаев Антон Викторович wrote:<br>
</div>
<blockquote cite="mid:53E32840.1000600@ptcomm.ru" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
<span id="result_box" class="short_text" lang="en"><span
class="hps">if </span><span class="hps">use the </span></span>topology_hiding()
<span id="result_box" class="short_text" lang="en"><span
class="hps">without</span> <span class="hps">match_dialog()</span>
<span class="hps">in</span> <span class="hps"></span></span>has_totag():<br>
<br>
<i> # account only INVITEs</i><i><br>
</i><i> if (is_method("INVITE")) {</i><i><br>
</i><i> if
(registered("location","$fu")&&!client_nat_test("8"))</i><i><br>
</i><i> {</i><i><br>
</i><i> topology_hiding();</i><i><br>
</i><i> setflag(1); # do accounting</i><i><br>
</i><i> }</i><i><br>
</i><i> else {</i><i><br>
</i><i> sl_send_reply("403","Forbidden auth ID
bla");</i><i><br>
</i><i> exit;</i><i><br>
</i><i> }</i><i><br>
</i><i> }</i><i><br>
</i><i>..............................</i><i><br>
</i><i> if (has_totag()) {</i><i><br>
</i><i> if (loose_route()) {</i><i><br>
</i><i> if (is_method("BYE")) {</i><i><br>
</i><i> setflag(1); # do accounting ...</i><i><br>
</i><i> setflag(3); # ... even if the transaction
fails</i><i><br>
</i><i> } else if (is_method("INVITE")) {</i><i><br>
</i><i> record_route();</i><i><br>
</i><i> }</i><i><br>
</i><i> route(1);</i><i><br>
</i><i> } else {</i><i><br>
</i><i> if ( is_method("ACK") ) {</i><i><br>
</i><i> if ( t_check_trans() ) {</i><i><br>
</i><i> t_relay();</i><i><br>
</i><i> exit;</i><i><br>
</i><i> } else {</i><i><br>
</i><i> exit;</i><i><br>
</i><i> }</i><i><br>
</i><i> }</i><i><br>
</i><i> sl_send_reply("404","Not here blabla");</i><i><br>
</i><i> }</i><i><br>
</i><i> exit;</i><i><br>
</i><i> }......................</i><i><br>
</i><br>
<span id="result_box" class="short_text" lang="en"><span
class="hps">then</span> </span><span id="result_box"
class="short_text" lang="en">capture of the call <span
class="hps">looks like this:</span></span><br>
<br>
<img src="cid:part1.05060607.00000708@opensips.org" alt=""><br>
<br>
<span id="result_box" class="" lang="en"><span class="hps">need to
change</span> <span class="hps">has_totag (),</span> <span
class="hps">adding</span> <span class="hps">match_dialog (),</span>
<span class="hps">but</span> <span class="hps">how to do it</span>
<span class="hps">right?</span></span><br>
<br>
<div class="moz-cite-prefix">06.08.2014 19:22, Bogdan-Andrei Iancu
пишет:<br>
</div>
<blockquote cite="mid:53E24838.1060908@opensips.org" type="cite">Hi,
<br>
<br>
Could you post a SIP capture of the call (showing both legs, on
the opensips machine) ? <br>
<br>
Regards, <br>
<br>
Bogdan-Andrei Iancu <br>
OpenSIPS Founder and Developer </blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>