Skip to content

Commit

Permalink
Update registrar-role.cfg (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
dschreiber authored and k-anderson committed Dec 21, 2016
1 parent 4704729 commit 071257d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kamailio/registrar-role.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ route[AUTHORIZATION_CHECK]
$xavp(regcfg=>match_received) = $su;
if(!(registered("location", "$fu", 2, 1) == 1 && $(xavp(ulattrs=>custom_channel_vars){s.len}) > 1)) {
xlog("L_INFO", "$ci|log|not authorized $fu from $si:$sp\n");
send_reply("500", "Not Registered");
send_reply("503", "Not Registered");
exit;
# route(ATTEMPT_AUTHORIZATION);
}
Expand Down Expand Up @@ -152,7 +152,7 @@ route[KAZOO_AUTHORIZATION]
if(kazoo_async_query("callmgr", $var(amqp_routing_key), $var(amqp_payload_request), "KAZOO_AUTHORIZATION_OK", "KAZOO_AUTHORIZATION_ERROR") != 1) {
xlog("L_INFO", "$ci|log|failed to send Kazoo query for authentication credentials for $Au $si:$sp\n");
append_to_reply("Retry-After: 60\r\n");
send_reply("500", "Retry Later");
send_reply("503", "Retry Later");
exit;
}
}
Expand All @@ -177,7 +177,7 @@ route[KAZOO_AUTHORIZATION_ERROR]
{
xlog("L_INFO", "$ci|log|failed to query Kazoo for authentication credentials for $Au $si:$sp\n");
append_to_reply("Retry-After: 60\r\n");
send_reply("500", "Retry Later");
send_reply("503", "Retry Later");
exit;
}

Expand Down

0 comments on commit 071257d

Please sign in to comment.