From 5fefde69655a5acfd1c9b0bb3d0d793f42c86ec2 Mon Sep 17 00:00:00 2001 From: lazedo Date: Fri, 22 Jun 2018 14:13:32 +0100 Subject: [PATCH] do not process pusher in default --- kamailio/default.cfg | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/kamailio/default.cfg b/kamailio/default.cfg index 15a117f..df1e3e6 100644 --- a/kamailio/default.cfg +++ b/kamailio/default.cfg @@ -652,7 +652,7 @@ route[INTERNAL_TO_EXTERNAL_RELAY] #!ifdef REGISTRAR_ROLE if ($hdr(X-KAZOO-AOR) != $null) { xlog("L_INFO", "$ci|log|using AOR $hdr(X-KAZOO-AOR)\n"); - if (lookup("location", "$hdr(X-KAZOO-AOR)") > 0) { + if(lookup("location", "$hdr(X-KAZOO-AOR)") > 0) { if ($hdr(X-KAZOO-INVITE-FORMAT) == "contact") { xlog("L_INFO", "$ci|end|routing to contact $ru\n"); } else { @@ -661,13 +661,7 @@ route[INTERNAL_TO_EXTERNAL_RELAY] $fs = $(ulc(callee=>socket)); reg_free_contacts("callee"); xlog("L_INFO", "$ci|log|routing $hdr(X-KAZOO-AOR) to $du via $fs\n"); - } - } else if ($hdr(X-KAZOO-PUSHER-Token-ID) != $null) { - xlog("L_INFO", "$ci|log|ignoring missing registration while waiting for push notification response\n"); - t_on_reply("EXTERNAL_REPLY"); - t_set_fr(0, 10000); - t_release(); - exit; + } } else { xlog("L_INFO", "$ci|end|user is not registered\n"); sl_send_reply("404", "Not registered");