$avp(s:callee_dom_unauth_in)

squeeze-backports
Victor Seva 12 years ago
parent 2037bd2322
commit 0191a29179

@ -641,7 +641,7 @@ route[ROUTE_AUTH]
xlog("L_INFO", "Authentication failed, unknown error (rc=$retcode) - [% logreq -%]\n");
break;
}
if(is_method("INVITE|BYE") && $avp(s:callee_dom_unauth_in) == 1 && $fd != $rd)
if(is_method("INVITE|BYE") && $xavp(callee_dom_prefs=>unauth_inbound_calls) == 1 && $fd != $rd)
{
xlog("L_INFO", "Allow unauthenticated request from domain '$fd' to local domain '$rd' - [% logreq -%]\n");
$avp(s:caller_uuid) = "0";

@ -552,10 +552,6 @@ route[ROUTE_LOAD_CALLEE_DOMAIN_PREF]
sl_send_reply("500", "Internal Error");
exit;
}
# we only load this specific dom-pref here because
# we need it for authentication.
avp_db_load("$ru/domain", "$avp(s:unauth_inbound_calls)/dom_preferences");
avp_copy("$avp(s:unauth_inbound_calls)", "$avp(s:callee_dom_unauth_in)/d");
}
########################################################################

Loading…
Cancel
Save