<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hello,<br>
      <br>
      Do you use the uac_auth() (which add the Auth hdr) only from
      failure route, right ?<br>
      <br>
      Also , does your INVITE have any already populated Auth hdr (when
      received by OpenSIPS) ?<br>
      <br>
      Best 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/03/2017 11:26 AM, sagar malam
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAEZuF3uyts0rCW4tprtOHJWfOtn8SDRsHXDF_0tT0b5-6VXB6w@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hello,
        <div><br>
        </div>
        <div>I am trying to configure OpenSIPS to support
          Username-password based authentication Gateway.</div>
        <div><br>
        </div>
        <div>Hence i am using uac_auth function to generated
          Authorization header before relaying INVITE packet to gateway.</div>
        <div><br>
        </div>
        <div>I am facing issue in removing old Authorization header and
          append new Authorization header in Failure route before trying
          next gateway.</div>
        <div><br>
        </div>
        <div>OpenSIPs is not detecting old Authorization headers but
          when i see sip trace ,headers are present.</div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Script flow is something like this : </div>
        <div>request_route{<br>
        </div>
        <div>   select_gateway</div>
        <div>  relay_route</div>
        <div>}</div>
        <div>relay_route{</div>
        <div>t_relay</div>
        <div>}</div>
        <div><br>
        </div>
        <div>failure_route{</div>
        <div>Remove old Authirization header</div>
        <div> on,407 or 401,Add Authorization header using uac_auth</div>
        <div>select_next gateway</div>
        <div>relay_route</div>
        <div>}</div>
        <div><br>
        </div>
        <div>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><br>
        </div>
        <div>Please help me on this.</div>
        <div><br>
        </div>
        <div>Thanks in advance</div>
        <div><br>
        </div>
        <div>   </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>