Browse Source

update parking regexp

update-rsyslog-config
lazedo 6 years ago
parent
commit
ad600c22ff
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      kamailio/presence-fast-pickup.cfg

+ 4
- 4
kamailio/presence-fast-pickup.cfg View File

@ -105,7 +105,7 @@ route[PRESENCE_FAST_PICKUP_ATTEMPT]
##### STAR 5 CHECK ####
if($sel(cfg_get.kazoo.presence_fast_pickup_star_5) == 1) {
if($(ru{uri.user}) =~ "\*5") {
if($(ru{uri.user}) =~ "^\*5") {
$var(park) = $_s(*3$(ru{uri.user}{s.substr,2,0})@$(ru{uri.domain}));
if($sht(park=>$var(park)) != $null) {
$du = $sht(park=>$var(park));
@ -126,11 +126,11 @@ route[PRESENCE_FAST_PICKUP_ATTEMPT]
}
##### CALL-PARK IN KAZOO ####
$var(park_extension) = "\*3";
$var(park_extension) = "^\*3";
if($sel(cfg_get.kazoo.presence_fast_pickup_star_5) == 1) {
$var(park_extension) = "\*[3,5]";
$var(park_extension) = "^\*[3,5]";
}
if($(ru{uri.user}) =~ $var(park_extension) && !($rd =~ "[0-9]{1,3}\.[0-9]{1,3}.[0-9]{1,3}\.[0-9]{1,3}") ) {
if($(ru{uri.user}) =~ $var(park_extension) && !is_ip($rd)) {
xlog("L_INFO", "$ci|log|checking park request to $(ru{uri.user})@$(ru{uri.domain})\n");
$var(amqp_payload_request) = '{"Event-Category" : "call_event" , "Event-Name" : "query_user_channels_req", "Username" : "*3$(ru{uri.user}{s.substr,2,0})", "Realm" : "$(ru{uri.domain})", "Active-Only" : true }';
$var(amqp_routing_key) = "call.status_req." + $(ci{kz.encode});


Loading…
Cancel
Save