<div dir="ltr">Hello Bodgan,<div><br></div><div>Thanks for reply.</div><div><br></div><div><span style="color:rgb(33,33,33);font-family:monospace;font-size:10.5625px">Do you use the uac_auth() (which add the Auth hdr) only from failure route, right ?</span><br></div><div><span style="color:rgb(33,33,33);font-family:monospace;font-size:10.5625px">Yes exactly.</span></div><div><span style="color:rgb(33,33,33);font-family:monospace;font-size:10.5625px"><br></span></div><div><span style="color:rgb(33,33,33);font-family:monospace;font-size:10.5625px">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"><br></span></div><div><span style="color:rgb(33,33,33);font-family:monospace;font-size:10.5625px">No,we are adding it using uac_auth function.</span></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Apr 4, 2017 at 4:18 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">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_7496433786491369016moz-signature gmail_msg" cols="72">Bogdan-Andrei Iancu
  OpenSIPS Founder and Developer
  <a class="m_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_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_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_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_7496433786491369016moz-txt-link-abbreviated gmail_msg" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_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>