|
@@ -205,16 +205,18 @@ route{
|
|
}else if ($? == -3){
|
|
}else if ($? == -3){
|
|
t_reply("400", "Bad Request");
|
|
t_reply("400", "Bad Request");
|
|
}else{
|
|
}else{
|
|
- if ($disgest_challenge)
|
|
|
|
|
|
+ if ($digest_challenge)
|
|
append_to_reply("%$digest_challenge");
|
|
append_to_reply("%$digest_challenge");
|
|
t_reply("401", "Unauthorized");
|
|
t_reply("401", "Unauthorized");
|
|
}
|
|
}
|
|
drop;
|
|
drop;
|
|
}
|
|
}
|
|
- if (!save_contacts("location")) {
|
|
|
|
|
|
+ if (!save_noreply("location")) {
|
|
t_reply("400", "Invalid REGISTER Request");
|
|
t_reply("400", "Invalid REGISTER Request");
|
|
drop;
|
|
drop;
|
|
}
|
|
}
|
|
|
|
+ append_to_reply("%$contact");
|
|
|
|
+ t_reply("$code", "$reason"); # no %, avps are used directly
|
|
drop;
|
|
drop;
|
|
}else{
|
|
}else{
|
|
if (!proxy_authenticate("my_realm", "credentials")){
|
|
if (!proxy_authenticate("my_realm", "credentials")){
|