From 1a62206f1ecff0328d8745dc567db6dc84f299fd Mon Sep 17 00:00:00 2001 From: Daniel Finke Date: Wed, 23 Aug 2017 10:13:39 -0700 Subject: [PATCH] Retain original pusher behaviour unless Simultaneous-Push-and-Invite is true --- kamailio/pusher-role.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kamailio/pusher-role.cfg b/kamailio/pusher-role.cfg index 71d374f..0eb8ab7 100644 --- a/kamailio/pusher-role.cfg +++ b/kamailio/pusher-role.cfg @@ -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()) {