<div dir="ltr"><div><div>Hi Stefano, Vlad<br><br></div>Thank you for your response I tried your suggestion but still doesn&#39;t work. This is a snippet from my script:<br><span style="font-family:courier new,monospace"><br>
modparam(&quot;uac_auth&quot;,&quot;credential&quot;,&quot;268:192.168.2.98:password&quot;)<br><br>t_on_failure(&quot;2&quot;);<br>t_relay();<br><br>failure_route[2] {<br>        if(t_check_status(&quot;407&quot;)){<br>                uac_auth();<br>
                xlog(&quot;In failure route 2\n&quot;);<br>        }<br>}<br><br></span></div><div>According to the log, the uac_auth function is being called but the following INVITEs doesn&#39;t include the Proxy-Authorization header<span style="font-family:courier new,monospace"><br>
</span></div><span style="font-family:courier new,monospace"><br></span><div>What am I missing?<br><br></div><div>Thanks<br>Diego<br></div><div><span style="font-family:courier new,monospace"></span></div><div><span style="font-family:courier new,monospace"><br>
</span></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 24, 2014 at 2:12 PM, 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>
      The registrant module is to be used only for generating REGISTER
      requests ( with auth included ).<br>
      For proxied calls, you need to use the uac and uac_auth modules (
      [1] ) for adding the auth headers - call uac_auth() ( [2] )
      function within failure route when receiving a challenge.<br>
      <br>
      [1] <a href="http://www.opensips.org/html/docs/modules/1.11.x/uac_auth.html" target="_blank">http://www.opensips.org/html/docs/modules/1.11.x/uac_auth.html</a><br>
      [2]
      <a href="http://www.opensips.org/html/docs/modules/1.11.x/uac.html#id250288" target="_blank">http://www.opensips.org/html/docs/modules/1.11.x/uac.html#id250288</a><br>
      <br>
      Best Regards<span class="HOEnZb"><font color="#888888"><br>
      <pre cols="72">Vlad Paiu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a> </pre></font></span><div><div class="h5">
      On 24.02.2014 17:33, Stefano Pisani wrote:<br>
    </div></div></div><div><div class="h5">
    <blockquote type="cite">
      
      <div>You can use module UAC_AUTH<br>
        <br>
        Il 24/02/2014 16.18, Diego Barberio ha scritto:<br>
      </div>
      <blockquote type="cite">
        <div dir="ltr">
          <div>
            <div>
              <div>
                <div>Hi all,<br>
                  <br>
                </div>
                I have opensips registered to an IP-PBX using registrant
                module and I want to make an outbound call to that PBX
                through the proxy. <br>
                <br>
              </div>
              I&#39;m sending and INVITE from my application to the proxy
              with a From that is actually registered by the proxy,
              however OpenSIPs is not adding the Proxy-Authorization
              header so the INVITE is rejected with a 401 Unauthorized
              and that response is forwarded to my application.<br>
              <br>
            </div>
            I just want opensips to add the Proxy-Authorization header
            so the call is not rejected by the IP-PBX. Is it possible to
            achieve this?<br>
            <br>
          </div>
          Thanks<br>
          Diego<br>
        </div>
        <br>
        <fieldset></fieldset>
        <br>
        <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a 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>
  </div></div></div>

<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>