Browse Source

call status req

4.3
lazedo 7 years ago
committed by Luis Azedo
parent
commit
fcc2d0904a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      kamailio/presence-fast-pickup.cfg

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

@ -130,11 +130,11 @@ route[PRESENCE_FAST_PICKUP_ATTEMPT]
if($(ru{uri.user}) =~ $var(park_extension) && !($rd =~ "[0-9]{1,3}\.[0-9]{1,3}.[0-9]{1,3}\.[0-9]{1,3}") ) {
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." + $(var(replaced_call_id){kz.encode});
$var(amqp_routing_key) = "call.status_req." + $(ci{kz.encode});
if(kazoo_query("callevt", $var(amqp_routing_key), $var(amqp_payload_request))) {
$du = $(kzR{kz.json,Channels[0].switch_url});
if($du != $null) {
xlog("L_INFO", "$ci|log|redirecting park request to $du, courtesy of kazoo\n");
xlog("L_INFO", "$ci|log|redirecting park request to $du from realtime query reply\n");
route(RELAY);
exit();
}


Loading…
Cancel
Save