Hi list
i'm testing uac module with a did provider,
apparently it works the first register, when it's going to refresh the session the register packed don't send the proxy-authorization header.
My kamailio is 4.0, the debian wheezy repository
this is my parameter config:
#!ifdef WITH_UAC
#---------- uac params ----------#
modparam("uac", "reg_db_url",DBURL)
modparam("uac", "reg_timer_interval",60)
modparam("uac", "reg_retry_interval",120)
modparam("uac", "reg_db_table", "uacreg")
modparam("uac","credential","username:domain:password")
modparam("uac","auth_realm_avp","$avp(i:10)")
modparam("uac","auth_username_avp","$avp(i:11)")
modparam("uac","auth_password_avp","$avp(i:12)")
modparam("uac","restore_mode","auto")
modparam("uac", "reg_contact_addr", "xx.xx.xx:5060")
#!endif
this is the route block:
if(uac_reg_request_to("$fU", 1))
{
xlog("L_NOTICE", "Found remote user [$rU] on [$rd] via [$du]");
t_on_failure("REMOTE_AUTH");
t_relay();
}
inside route[LOCATION] at the end:
#!ifdef WITH_UAC
if(uac_reg_lookup("$rU", "$ru")) {
xlog("request from a remote SIP provider [$ou => $ru]\n");
}
lookup("location");
#!endif
failure_route[REMOTE_AUTH] {
if ($T_reply_code == 401 or $T_reply_code == 407) {
xlog("L_NOTICE", "Remote asked for authentication");
uac_auth();
}
}
this is the error log by syslog
ct 11 13:52:47 rene /usr/sbin/kamailio[7413]: INFO: <script>: Routing locally generated REGISTER to<sip:ippbx.xxxxx.com>
Oct 11 13:52:47 rene /usr/sbin/kamailio[7400]: ERROR: uac [uac_reg.c:537]: uac_reg_tm_callback(): authentication failed for <2127207679>