Hello,
I am trying to implement uac authentication,
My flow is SIP -> Opensips -> PBX(Register extension as trunk) -> PBX send
407/401 send re-invite -> PBX send 403.
I have called uac_auth(); in failover, function using this Authentication token
header add in Invite but after PBX send 403.
Code snap.
loadmodule "uac.so"
loadmodule "uac_auth.so"
modparam("uac_auth","auth_realm_avp","$avp(10)")
modparam("uac_auth","auth_username_avp","$avp(11)")
modparam("uac_auth","auth_password_avp","$avp(12)")
onreply_route[external_reply]
{
if($rs == '407' || $rs == '401'){
t_on_failure("1");
return;
}
}
failure_route[1] {
$avp(10) = $avp(uac_realm);
$avp(11) = "USER_NAME";
$avp(12) = "PASSWORD";//Try with normal password and 0x HASH password as well.
if (uac_auth()) {
xlog ("$ci Authentication successfull\n");
t_relay();
exit;
} else {
xlog ("$ci Authentication FAILED\n");
}
}
I see in log uac_auth return success so it goes in if condition but fails two
authentications.
Can anyone help me to solve this issue?
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users