diff --git a/kamailio/kamailio.cfg b/kamailio/kamailio.cfg index 74d8ec9..575349a 100644 --- a/kamailio/kamailio.cfg +++ b/kamailio/kamailio.cfg @@ -55,7 +55,7 @@ modparam("nathelper", "received_avp", "$avp(RECEIVED)") # --- htable für Credentials --- # Format: username => ha1_hash # HA1 = MD5(username:sip.toppyr.de:password) -modparam("htable", "htable", "credentials=>size=4;initval=0;") +modparam("htable", "htable", "credentials=>size=4;") # --- Credentials (HA1-Hashes) --- # tobias (Linphone iOS): hash von tobias:sip.toppyr.de:8pjd6eskjKmCihsu @@ -199,12 +199,12 @@ route[AUTH] { exit; } if (is_method("REGISTER")) { - if (!pv_www_authenticate("sip.toppyr.de", "$sht(credentials=>$au)", "0")) { + if (!pv_www_authenticate("sip.toppyr.de", "$sht(credentials=>$au)", "1")) { www_challenge("sip.toppyr.de", "0"); exit; } } else { - if (!pv_proxy_authenticate("sip.toppyr.de", "$sht(credentials=>$au)", "0")) { + if (!pv_proxy_authenticate("sip.toppyr.de", "$sht(credentials=>$au)", "1")) { proxy_challenge("sip.toppyr.de", "0"); exit; }