<div dir="ltr"><div>Very interesting thing happened, If i am authentication trunk using uac_auth() function then it is not handling BYE from callee, but if i use IP base authentication on trunk between opensips and asterisk it works! and also handling BYE properly. Don&#39;t you think it is wired? <br>
<br></div>Here is my asterisk sip.conf  if i comment out permit ip and insecure=invite its works!  with BYE message also. Why it is not working properly with UAC authentication? <br><br>[4545]<br>type=friend<br>host=182.72.242.164<br>
context=office<br>;insecure=invite<br>;deny=<a href="http://0.0.0.0/0.0.0.0">0.0.0.0/0.0.0.0</a><br>;permit=182.xx.xx.xx/<a href="http://255.255.255.255">255.255.255.255</a><br>secret=password<br>allow=all<br>nat=yes<br>  <br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 28, 2014 at 8:40 AM, Vlad Paiu <span dir="ltr">&lt;<a href="mailto:vladpaiu@opensips.org" target="_blank">vladpaiu@opensips.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div>Hello,<br>
      <br>
      Please privately send me again the SIP trace for the call.<div class=""><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></div><div><div class="h5">
      On 28.08.2014 15:23, Satish Patel wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      
      <div>I have tried to remove RR but it didn&#39;t help :(  I have put
        top hide after RR no luck. <br>
        <br>
        Sent from my iPhone</div>
      <div><br>
        On Aug 28, 2014, at 3:16 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>
            When doing topology hiding, there&#39;s no need to call
            record_route() at all, so please remove the call to
            record_route() from your script, or move topology_hiding()
            after the record_route() function call.<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 27.08.2014 20:25, Satish Patel wrote:<br>
          </div>
          <blockquote type="cite">
            <div dir="ltr">
              <div>
                <div>
                  <div>Hi Vlad,<br>
                    <br>
                  </div>
                  I have created pastebin for Asterisk, Opensips and <a href="http://opensips.cf" target="_blank">opensips.cf</a>
                  file, I am going to send you in your private email
                  address because of security reason. <br>
                  <br>
                </div>
                Let me know if you see any issue in my configuration, or
                any kind of suggestion. <br>
                <br>
              </div>
              Appreciate your help. <br>
            </div>
            <div class="gmail_extra"><br>
              <br>
              <div class="gmail_quote">On Mon, Aug 25, 2014 at 11:48 PM,
                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="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>
                </blockquote>
              </div>
              <br>
            </div>
          </blockquote>
          <br>
        </div>
      </blockquote>
    </blockquote>
    <br>
  </div></div></div>

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