Hi to all,
We use uac module to use remote registration but when I add a new user to uacreg table the change doesnt take effect until I restart kamailio service which is not convenient for us.Is there another way to achieve this without restarting service?
My configuration is below.Am I doing sth wrong?
modparam("rr", "enable_full_lr", 1)
# do not append from tag to the RR (no need for this script)
modparam("rr", "append_fromtag", 1)
# ------ uac params ------------------
modparam("uac", "reg_db_url",DBURL)
modparam("uac", "reg_timer_interval", 30)
modparam("uac", "reg_retry_interval", 60)
modparam("uac", "reg_db_table", "uacreg")
modparam("uac","restore_mode","auto")
modparam("uac", "reg_contact_addr","my ip")
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","credential","username:domain:password")
modparam("uac","restore_to_avp","$avp(original_uri_to)")
modparam("uac","restore_from_avp","$avp(original_uri_from)")
failure_route[REMOTE_AUTH]{
                xlog("L_INFO","REMOTE_AUTH:$fU:$si$rm:REGISTER");
         if ($T_reply_code == 401 or $T_reply_code == 407) {
                xlog("L_NOTICE", "Remote asked for authentication");
                        uac_auth();
         }
}
if(is_method("REGISTER")){
                  xlog("L_INFO","AUTH:$fU:$si$rm:REGISTER:Ru:$rU");
                  if(uac_reg_request_to("$fU","0")){
                          xlog("L_NOTICE", "Found remote user [$rU] on [$rd] via [$du]");
                          t_on_failure("REMOTE_AUTH");
                          t_relay();
                          exit;
                  }else{
                          xlog("L_INFO","AUTH:$fU:$si$rm:REGISTER:else");
                          if (!auth_check("$fd", "subscriber", "0")) {
                                  auth_challenge("$fd", "0");
                                  exit;
                          }
                  }
  }
Thanks in advance.