<div dir="ltr"><div><div>while googling i found following suggestion which is provided by you and it is also not working, I did SIP trace on both asterisk and opensip and found asterisk doesn&#39;t know about transaction because missing VIA: and its not sending BYE but it is just sending INVITE and opensip sending 200OK back.. I don&#39;t know why Asterisk not sending BYE. <br>
<br></div>Note: if i remove topology_hiding() then asterisk sending proper BYE message and everything works!! <br><br></div>some how i am not seeing loose_route executing anytime in script, opensips doesn&#39;t touching loose_route function at all..  <br>
<div><div><div><br><pre>if (loose_route() || match_dialog()) {
         if ($DLG_status==NULL {
             xlog(&quot;Failed to match the sequential request to a known 
dialog\n&quot;);
         } else {
             if (!validate_dialog())
                 fix_route_dialog();

             # continue your in-dialog requests processing as usual
         }
     }</pre><br></div></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 26, 2014 at 8:38 AM, Satish Patel <span dir="ltr">&lt;<a href="mailto:satish.txt@gmail.com" target="_blank">satish.txt@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>I have tried your logic and it works but it is not handling BYE message, after caller hang up phone, caller not receiving BYE and caller phone is still in connected state not getting hung up. <br>
<br>Sent from my iPhone</div><div><div class="h5"><div><br>On Aug 26, 2014, at 5:09 AM, Vlad Paiu &lt;<a href="mailto:vladpaiu@opensips.org" target="_blank">vladpaiu@opensips.org</a>&gt; wrote:<br><br></div><blockquote type="cite">
<div>
  
    
  
  
    <div>Hello,<br>
      <br>
      You must call topology_hiding() before t_relay() - please try
      that.<br>
      Also, make sure to change your sequential request handling from<br>
      <br>
           if (loose_route())<br>
      <br>
      to<br>
      <br>
           if (loose_route() || match_dialog())<br>
      <br>
      <br>
      Best Regards,<br>
      <pre cols="72">Vlad Paiu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a> </pre>
      On 26.08.2014 06:48, Satish Patel wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div>
          <div>I have put topology_hiding() function at following place
            in script but its not hiding VIA header following is my
            senerio<br>
            <br>
          </div>
          [UA]--------&gt;[Opensips]-----------[Asterisk/SIP gateway]<br>
          <br>
        </div>
        I want to hind my UA IP address so Asterisk doesn&#39;t see them,
        currently my asterisk can see what IP address UA coming from,
        where should i put them generally <br>
        <br>
        <br>
        if (is_method(&quot;INVITE&quot;)) {<br>
        ...<br>
        ...<br>
        if  ( uri=~<a href="mailto:%5Esip:[0-9]*@.*" target="_blank">&quot;^sip:[0-9]*@.*&quot;</a>) {<br>
                uac_replace_from(&quot;<a href="mailto:sip%3A4545@65.111.170.127" target="_blank">sip:4545@65.111.170.127</a>&quot;);<br>
                t_on_failure(&quot;3&quot;);<br>
                resetflag(7);<br>
                t_relay( &quot;udp:<a href="http://65.111.170.127:5065" target="_blank">65.111.170.127:5065</a>&quot; );<br>
                 topology_hiding();<br>
                exit;<br>
                };<br>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  

</div></blockquote></div></div></div></blockquote></div><br></div>