Hi Diego,

Set debug = 4 and watch the logs from the uac_auth() function (also the return code) - I assume the function did not find any credentials (on the server side) to match the authentication challenge (the matching is done based on the realm).

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 05.03.2014 19:38, Diego Barberio wrote:
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 <[email protected] <mailto:[email protected]>> 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 Developer
http://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 list
    [email protected]  <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users



    _______________________________________________
    Users mailing list
    [email protected]  <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users


    _______________________________________________
    Users mailing list
    [email protected] <mailto:[email protected]>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users




_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to