<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <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")&amp;&amp;!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.00000608.02020304@ptcomm.ru" 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>
  </body>
</html>