<div dir="ltr">Hello Bogdan,<div><br></div><div>Thank you so much for your support.</div><div><br></div><div>Yes we will test and revert.</div><div><br></div><div>One query : </div><div>Can you tell me in which version of OpenSIPs have you fixed this issue? Latest one 2.2.3?</div><div><br></div><div>Thanks</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Apr 5, 2017 at 4:48 PM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
    <tt class="gmail_msg">Hi Sagar,<br class="gmail_msg">
      <br class="gmail_msg">
      Thank you for your report and patience in troubleshooting this.
      Indeed, there was a bug - I just fixed it on GIT repo. <br class="gmail_msg">
      <br class="gmail_msg">
      IF you update from GIT and try again, it should be working fine.<br class="gmail_msg">
      <br class="gmail_msg">
      Please confirm.<br class="gmail_msg">
      <br class="gmail_msg">
      Many thanks and regards,<br class="gmail_msg">
    </tt></div><div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
    <pre class="m_-3371990894875916294moz-signature gmail_msg" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="m_-3371990894875916294moz-txt-link-freetext gmail_msg" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a class="m_-3371990894875916294moz-txt-link-freetext gmail_msg" href="http://www.opensips.org/events/Summit-2017Amsterdam.html" target="_blank">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre>
    </div><div bgcolor="#FFFFFF" text="#000000" class="gmail_msg"><div class="m_-3371990894875916294moz-cite-prefix gmail_msg">On 04/05/2017 09:16 AM, sagar malam
      wrote:<br class="gmail_msg">
    </div>
    <blockquote type="cite" class="gmail_msg">
      <div dir="ltr" class="gmail_msg">Hello Bogdan,
        <div class="gmail_msg"><br class="gmail_msg">
        </div>
        <div class="gmail_msg">Please find attached script.<br class="gmail_msg">
          <br class="gmail_msg">
          <div class="gmail_quote gmail_msg">
            <div dir="ltr" class="gmail_msg">On Tue, Apr 4, 2017 at 8:33 PM Bogdan-Andrei
              Iancu <<a href="mailto:bogdan@opensips.org" class="gmail_msg" target="_blank">bogdan@opensips.org</a>>
              wrote:<br class="gmail_msg">
            </div>
            <blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg"> <tt class="gmail_msg">Could you please send me (off list)
                  the script ? There is something really weird going on.<br class="gmail_msg">
                  <br class="gmail_msg">
                  Thanks,<br class="gmail_msg">
                </tt></div>
              <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
                <pre class="m_-3371990894875916294m_5337776797261573771moz-signature gmail_msg" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="m_-3371990894875916294m_5337776797261573771moz-txt-link-freetext gmail_msg" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a class="m_-3371990894875916294m_5337776797261573771moz-txt-link-freetext gmail_msg" href="http://www.opensips.org/events/Summit-2017Amsterdam.html" target="_blank">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre>
              </div>
              <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
                <div class="m_-3371990894875916294m_5337776797261573771moz-cite-prefix gmail_msg">On 04/04/2017 04:36 PM, sagar malam wrote:<br class="gmail_msg">
                </div>
                <blockquote type="cite" class="gmail_msg">
                  <div dir="ltr" class="gmail_msg">Hello Bogdan,
                    <div class="gmail_msg"><br class="gmail_msg">
                    </div>
                    <div class="gmail_msg">I disabled Dialog and TH
                      module but result is same.</div>
                    <div class="gmail_msg"><br class="gmail_msg">
                    </div>
                    <div class="gmail_msg">Please find attached file</div>
                    <br class="gmail_msg">
                    <div class="gmail_quote gmail_msg">
                      <div dir="ltr" class="gmail_msg">On Tue, Apr 4,
                        2017 at 6:42 PM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" class="gmail_msg" target="_blank"><a class="m_-3371990894875916294moz-txt-link-abbreviated gmail_msg" href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a></a>>
                        wrote:<br class="gmail_msg">
                      </div>
                      <blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                        <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg"> <tt class="gmail_msg">Thank
                            you Sagar,<br class="gmail_msg">
                            <br class="gmail_msg">
                            I see you use topology hiding - could you
                            please disabled the dialog and TH support
                            for the call and try it again ?<br class="gmail_msg">
                            <br class="gmail_msg">
                            Regards,<br class="gmail_msg">
                          </tt></div>
                        <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
                          <pre class="m_-3371990894875916294m_5337776797261573771m_-1381042270797165989moz-signature gmail_msg" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="m_-3371990894875916294m_5337776797261573771m_-1381042270797165989moz-txt-link-freetext gmail_msg" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a class="m_-3371990894875916294m_5337776797261573771m_-1381042270797165989moz-txt-link-freetext gmail_msg" href="http://www.opensips.org/events/Summit-2017Amsterdam.html" target="_blank">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre>
                        </div>
                        <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
                          <div class="m_-3371990894875916294m_5337776797261573771m_-1381042270797165989moz-cite-prefix gmail_msg">On 04/04/2017 03:39 PM, sagar
                            malam wrote:<br class="gmail_msg">
                          </div>
                          <blockquote type="cite" class="gmail_msg">
                            <div dir="ltr" class="gmail_msg">
                              <div dir="ltr" class="gmail_msg"><br class="gmail_msg">
                              </div>
                              <div class="gmail_msg">Yes.</div>
                              <div class="gmail_msg"><br class="gmail_msg">
                              </div>
                              <div class="gmail_msg">Please find
                                attached file.</div>
                              <br class="gmail_msg">
                              <div class="gmail_quote gmail_msg">
                                <div dir="ltr" class="gmail_msg">On Tue,
                                  Apr 4, 2017 at 5:06 PM Bogdan-Andrei
                                  Iancu <<a class="m_-3371990894875916294m_5337776797261573771moz-txt-link-abbreviated gmail_msg" href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>>
                                  wrote:<br class="gmail_msg">
                                </div>
                                <blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                  <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg"> <tt class="gmail_msg">Whatever headers
                                      are added in failure route are
                                      visible only to that particular
                                      branch, they are are not inherited
                                      by any future branch. So, if you
                                      do uac_auth() from failure route
                                      only, I do not see how the Auth
                                      hdr may propagate to other branch.<br class="gmail_msg">
                                      <br class="gmail_msg">
                                      Do you have a pcap or txt capture
                                      for the call flow ?<br class="gmail_msg">
                                      <br class="gmail_msg">
                                      Regards,<br class="gmail_msg">
                                    </tt></div>
                                  <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
                                    <pre class="m_-3371990894875916294m_5337776797261573771m_-1381042270797165989m_-5152116837928520041m_157646892518949888moz-signature gmail_msg" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="m_-3371990894875916294m_5337776797261573771m_-1381042270797165989m_-5152116837928520041m_157646892518949888moz-txt-link-freetext gmail_msg" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a class="m_-3371990894875916294m_5337776797261573771m_-1381042270797165989m_-5152116837928520041m_157646892518949888moz-txt-link-freetext gmail_msg" href="http://www.opensips.org/events/Summit-2017Amsterdam.html" target="_blank">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre>
                                  </div>
                                  <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
                                    <div class="m_-3371990894875916294m_5337776797261573771m_-1381042270797165989m_-5152116837928520041m_157646892518949888moz-cite-prefix gmail_msg">On 04/04/2017 01:54 PM,
                                      sagar malam wrote:<br class="gmail_msg">
                                    </div>
                                    <blockquote type="cite" class="gmail_msg">
                                      <div dir="ltr" class="gmail_msg">Hello
                                        Bodgan,
                                        <div class="gmail_msg"><br class="gmail_msg">
                                        </div>
                                        <div class="gmail_msg">Thanks
                                          for reply.</div>
                                        <div class="gmail_msg"><br class="gmail_msg">
                                        </div>
                                        <div class="gmail_msg"><span style="color:rgb(33,33,33);font-family:monospace;font-size:10.5625px" class="gmail_msg">Do you use
                                            the uac_auth() (which add
                                            the Auth hdr) only from
                                            failure route, right ?</span><br class="gmail_msg">
                                        </div>
                                        <div class="gmail_msg"><span style="color:rgb(33,33,33);font-family:monospace;font-size:10.5625px" class="gmail_msg">Yes
                                            exactly.</span></div>
                                        <div class="gmail_msg"><span style="color:rgb(33,33,33);font-family:monospace;font-size:10.5625px" class="gmail_msg"><br class="gmail_msg">
                                          </span></div>
                                        <div class="gmail_msg"><span style="color:rgb(33,33,33);font-family:monospace;font-size:10.5625px" class="gmail_msg">Also ,
                                            does your INVITE have any
                                            already populated Auth hdr
                                            (when received by OpenSIPS)
                                            ?</span><span style="color:rgb(33,33,33);font-family:monospace;font-size:10.5625px" class="gmail_msg"><br class="gmail_msg">
                                          </span></div>
                                        <div class="gmail_msg"><span style="color:rgb(33,33,33);font-family:monospace;font-size:10.5625px" class="gmail_msg">No,we are
                                            adding it using uac_auth
                                            function.</span></div>
                                        <div class="gmail_msg"><br class="gmail_msg">
                                        </div>
                                      </div>
                                      <br class="gmail_msg">
                                      <div class="gmail_quote gmail_msg">
                                        <div dir="ltr" class="gmail_msg">On
                                          Tue, Apr 4, 2017 at 4:18 PM
                                          Bogdan-Andrei Iancu <<a class="m_-3371990894875916294m_5337776797261573771m_-1381042270797165989moz-txt-link-abbreviated gmail_msg" href="mailto:bogdan@opensips.org" target="_blank"><a class="m_-3371990894875916294moz-txt-link-abbreviated gmail_msg" href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a></a>>
                                          wrote:<br class="gmail_msg">
                                        </div>
                                        <blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                          <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg"> <tt class="gmail_msg">Hello,<br class="gmail_msg">
                                              <br class="gmail_msg">
                                              Do you use the uac_auth()
                                              (which add the Auth hdr)
                                              only from failure route,
                                              right ?<br class="gmail_msg">
                                              <br class="gmail_msg">
                                              Also , does your INVITE
                                              have any already populated
                                              Auth hdr (when received by
                                              OpenSIPS) ?<br class="gmail_msg">
                                              <br class="gmail_msg">
                                              Best regards,<br class="gmail_msg">
                                            </tt>
                                            <pre class="m_-3371990894875916294m_5337776797261573771m_-1381042270797165989m_-5152116837928520041m_157646892518949888m_7496433786491369016moz-signature gmail_msg" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="m_-3371990894875916294m_5337776797261573771m_-1381042270797165989m_-5152116837928520041m_157646892518949888m_7496433786491369016moz-txt-link-freetext gmail_msg" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a>

OpenSIPS Summit May 2017 Amsterdam
  <a class="m_-3371990894875916294m_5337776797261573771m_-1381042270797165989m_-5152116837928520041m_157646892518949888m_7496433786491369016moz-txt-link-freetext gmail_msg" href="http://www.opensips.org/events/Summit-2017Amsterdam.html" target="_blank">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre>
                                          </div>
                                          <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
                                            <div class="m_-3371990894875916294m_5337776797261573771m_-1381042270797165989m_-5152116837928520041m_157646892518949888m_7496433786491369016moz-cite-prefix gmail_msg">On 04/03/2017
                                              11:26 AM, sagar malam
                                              wrote:<br class="gmail_msg">
                                            </div>
                                          </div>
                                          <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
                                            <blockquote type="cite" class="gmail_msg">
                                              <div dir="ltr" class="gmail_msg">Hello,
                                                <div class="gmail_msg"><br class="gmail_msg">
                                                </div>
                                                <div class="gmail_msg">I
                                                  am trying to configure
                                                  OpenSIPS to support
                                                  Username-password
                                                  based authentication
                                                  Gateway.</div>
                                                <div class="gmail_msg"><br class="gmail_msg">
                                                </div>
                                                <div class="gmail_msg">Hence
                                                  i am using uac_auth
                                                  function to generated
                                                  Authorization header
                                                  before relaying INVITE
                                                  packet to gateway.</div>
                                                <div class="gmail_msg"><br class="gmail_msg">
                                                </div>
                                                <div class="gmail_msg">I
                                                  am facing issue in
                                                  removing old
                                                  Authorization header
                                                  and append new
                                                  Authorization header
                                                  in Failure route
                                                  before trying next
                                                  gateway.</div>
                                                <div class="gmail_msg"><br class="gmail_msg">
                                                </div>
                                                <div class="gmail_msg">OpenSIPs
                                                  is not detecting old
                                                  Authorization headers
                                                  but when i see sip
                                                  trace ,headers are
                                                  present.</div>
                                                <div class="gmail_msg"><br class="gmail_msg">
                                                </div>
                                                <div class="gmail_msg"><br class="gmail_msg">
                                                </div>
                                                <div class="gmail_msg">Script
                                                  flow is something like
                                                  this : </div>
                                                <div class="gmail_msg">request_route{<br class="gmail_msg">
                                                </div>
                                                <div class="gmail_msg"> 
                                                   select_gateway</div>
                                                <div class="gmail_msg"> 
                                                  relay_route</div>
                                                <div class="gmail_msg">}</div>
                                                <div class="gmail_msg">relay_route{</div>
                                                <div class="gmail_msg">t_relay</div>
                                                <div class="gmail_msg">}</div>
                                                <div class="gmail_msg"><br class="gmail_msg">
                                                </div>
                                                <div class="gmail_msg">failure_route{</div>
                                                <div class="gmail_msg">Remove
                                                  old Authirization
                                                  header</div>
                                                <div class="gmail_msg"> on,407
                                                  or 401,Add
                                                  Authorization header
                                                  using uac_auth</div>
                                                <div class="gmail_msg">select_next
                                                  gateway</div>
                                                <div class="gmail_msg">relay_route</div>
                                                <div class="gmail_msg">}</div>
                                                <div class="gmail_msg"><br class="gmail_msg">
                                                </div>
                                                <div class="gmail_msg">In
                                                  Users mailing list i
                                                  read that headers
                                                  added in request route
                                                  cannot be removed
                                                  later,hence i need to
                                                  add headers during
                                                  branch route but
                                                  uac_auth function
                                                  works only in failure
                                                  route.</div>
                                                <div class="gmail_msg"><br class="gmail_msg">
                                                </div>
                                                <div class="gmail_msg">Please
                                                  help me on this.</div>
                                                <div class="gmail_msg"><br class="gmail_msg">
                                                </div>
                                                <div class="gmail_msg">Thanks
                                                  in advance</div>
                                                <div class="gmail_msg"><br class="gmail_msg">
                                                </div>
                                                <div class="gmail_msg">   </div>
                                              </div>
                                              <br class="gmail_msg">
                                              <fieldset class="m_-3371990894875916294m_5337776797261573771m_-1381042270797165989m_-5152116837928520041m_157646892518949888m_7496433786491369016mimeAttachmentHeader gmail_msg"></fieldset>
                                              <br class="gmail_msg">
                                            </blockquote>
                                          </div>
                                          <div bgcolor="#FFFFFF" text="#000000" class="gmail_msg">
                                            <blockquote type="cite" class="gmail_msg">
                                              <pre class="gmail_msg">_______________________________________________
Users mailing list
<a class="m_-3371990894875916294m_5337776797261573771m_-1381042270797165989m_-5152116837928520041m_157646892518949888m_7496433786491369016moz-txt-link-abbreviated gmail_msg" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_-3371990894875916294m_5337776797261573771m_-1381042270797165989m_-5152116837928520041m_157646892518949888m_7496433786491369016moz-txt-link-freetext gmail_msg" 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 class="gmail_msg">
                                          </div>
                                        </blockquote>
                                      </div>
                                    </blockquote>
                                    <br class="gmail_msg">
                                  </div>
                                </blockquote>
                              </div>
                            </div>
                          </blockquote>
                          <br class="gmail_msg">
                        </div>
                      </blockquote>
                    </div>
                  </div>
                </blockquote>
                <br class="gmail_msg">
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <br class="gmail_msg">
  </div></blockquote></div>