<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Thank you Sagar,<br>
      <br>
      I see you use topology hiding - could you please disabled the
      dialog and TH support for the call and try it again ?<br>
      <br>
      Regards,<br>
    </tt>
    <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>

OpenSIPS Summit May 2017 Amsterdam
  <a class="moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2017Amsterdam.html">http://www.opensips.org/events/Summit-2017Amsterdam.html</a>
</pre>
    <div class="moz-cite-prefix">On 04/04/2017 03:39 PM, sagar malam
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAEZuF3tr-XEZ6v26cz4htrEXG1xv99aizP7Ahibi_EvzE5gqqw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div dir="ltr" class="gmail_msg"><br>
        </div>
        <div class="gmail_msg">Yes.</div>
        <div class="gmail_msg"><br>
        </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 moz-do-not-send="true"
              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">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_-5152116837928520041m_157646892518949888moz-signature gmail_msg" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a moz-do-not-send="true" class="m_-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 moz-do-not-send="true" class="m_-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_-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
                      moz-do-not-send="true"
                      href="mailto:bogdan@opensips.org"
                      class="gmail_msg" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bogdan@opensips.org">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_-5152116837928520041m_157646892518949888m_7496433786491369016moz-signature gmail_msg" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a moz-do-not-send="true" class="m_-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 moz-do-not-send="true" class="m_-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_-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_-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 moz-do-not-send="true" class="m_-5152116837928520041m_157646892518949888m_7496433786491369016moz-txt-link-abbreviated gmail_msg" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a moz-do-not-send="true" class="m_-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>
  </body>
</html>