[Serusers] UAC module (backport to 0.9.0)

Michael Ulitskiy mdu113 at acedsl.com
Thu May 12 19:34:07 CEST 2005


Hello,

Has anyone succeeded in getting UAC authentication to work?
I'm doing the following:

route {
        resetflag(1);
        t_on_failure("1");
        route(1);
}

route[1]
{
        if (uri=~"[@:](192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.)") {
            sl_send_reply("479", "We don't forward to private IP addresses");
            break;
        };
        if (!t_relay()) {
                sl_reply_error();
        };
}

failure_route[1] {
        # authentication reply received?
        if ( t_check_status("401|407") ) {
                if (!isflagset(1) && uac_auth()) {
                        setflag(1);
                        t_on_failure("1");
                        append_branch();
                        route(1);
                } else {
                        t_reply("500","Error occurred");
                }
                break;
        }

}

When uac_auth() is called I get the following in the:
 0(28973) DEBUG:uac:uac_auth: picked reply is (nil), code 407
 0(28973) BUG:uac:uac_auth: empty reply on picked branch

Any suggestions or ideas?
Thank  you,

Michael




More information about the sr-users mailing list