Browse Source

Retain original pusher behaviour unless Simultaneous-Push-and-Invite is true

4.2
Daniel Finke 8 years ago
committed by lazedo
parent
commit
1a62206f1e
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      kamailio/pusher-role.cfg

+ 4
- 0
kamailio/pusher-role.cfg View File

@ -12,6 +12,10 @@ route[PUSHER_ROUTE]
if ( (!is_method("INVITE")) || (!isflagset(FLAG_INTERNALLY_SOURCED)) || $hdr(X-KAZOO-PUSHER-Token-ID) == $null)
return;
if(registered("location") && $hdr(X-KAZOO-PUSHER-Simultaneous-Push-and-Invite) == null) {
return;
}
xlog("L_INFO", "$ci| pusher received request to wakeup $tu\n");
sl_send_reply(180, "waking the dead guy");
if (t_newtran()) {


Loading…
Cancel
Save