[OpenSIPS-Users] Adding Proxy-Authorization header
Diego Barberio
diego.barberio at redmondsoftware.com
Wed Mar 5 18:38:56 CET 2014
Hi Stefano, Vlad
Thank you for your response I tried your suggestion but still doesn't work.
This is a snippet from my script:
modparam("uac_auth","credential","268:192.168.2.98:password")
t_on_failure("2");
t_relay();
failure_route[2] {
if(t_check_status("407")){
uac_auth();
xlog("In failure route 2\n");
}
}
According to the log, the uac_auth function is being called but the
following INVITEs doesn't include the Proxy-Authorization header
What am I missing?
Thanks
Diego
On Mon, Feb 24, 2014 at 2:12 PM, Vlad Paiu <vladpaiu at opensips.org> wrote:
> Hello,
>
> The registrant module is to be used only for generating REGISTER requests
> ( with auth included ).
> 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.
>
> [1] http://www.opensips.org/html/docs/modules/1.11.x/uac_auth.html
> [2] http://www.opensips.org/html/docs/modules/1.11.x/uac.html#id250288
>
> Best Regards
>
> Vlad Paiu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
> On 24.02.2014 17:33, Stefano Pisani wrote:
>
> You can use module UAC_AUTH
>
> Il 24/02/2014 16.18, Diego Barberio ha scritto:
>
> Hi all,
>
> 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.
>
> I'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.
>
> 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?
>
> Thanks
> Diego
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140305/e71ce552/attachment-0001.htm>
More information about the Users
mailing list