Browse Source

KAZOO-3840: remove ua check and updated log line

3.20
karl anderson 11 years ago
parent
commit
3bb7c6e927
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      kamailio/default.cfg

+ 3
- 3
kamailio/default.cfg View File

@ -519,10 +519,10 @@ route[PREPARE_INITIAL_REQUESTS]
if (loose_route()) { if (loose_route()) {
$xavp(regcfg=>match_received) = $su; $xavp(regcfg=>match_received) = $su;
$xavp(regcfg[0]=>match_contact) = $(ct{nameaddr.uri}); $xavp(regcfg[0]=>match_contact) = $(ct{nameaddr.uri});
if(registered("location", "$rz:$Au", 6) == 1 && ($ua =~ "Grandstream") ) {
xlog("L_INFO", "$ci|chk|allowing initial route-set for $Au");
if(registered("location", "$rz:$Au", 6) == 1) {
xlog("L_INFO", "$ci|log|allowing initial route-set for $Au");
} else { } else {
xlog("L_WARN", "$ci|end|denying initial request with route-set");
xlog("L_WARN", "$ci|end|dropping initial request with route-set");
sl_send_reply("403", "No pre-loaded routes"); sl_send_reply("403", "No pre-loaded routes");
exit(); exit();
} }


Loading…
Cancel
Save