Browse Source

do not process pusher in default

drop_requests
lazedo 8 years ago
committed by Luis Azedo
parent
commit
5fefde6965
1 changed files with 2 additions and 8 deletions
  1. +2
    -8
      kamailio/default.cfg

+ 2
- 8
kamailio/default.cfg View File

@ -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");


Loading…
Cancel
Save