Browse Source

pusher external fault fix

* 408 should not be in the excluded reasons for sending the push
master
lazedo 6 years ago
parent
commit
52d859172c
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      kamailio/pusher-role.cfg

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

@ -37,15 +37,15 @@ route[PUSHER_TO_EXTERNAL_RELAY]
failure_route[PUSHER_EXTERNAL_FAULT]
{
if (!t_check_status("408|486|487|603") && $avp(push_sent) != 1) {
send_reply(182, "waking the dead guy");
if (!t_check_status("486|487|603") && $avp(push_sent) != 1) {
send_reply(182, "sending push notification");
route(PUSHER_SEND_PUSH_NOTIFICATION);
} else if (t_check_status("487")) {
xlog("L_INFO", "$ci|pusher|push transaction canceled\n");
t_reply("$T_reply_code", "Pusher Canceled");
t_reply("$T_reply_code", "pusher canceled");
} else {
xlog("L_INFO", "$ci|pusher|push transaction result - $T_reply_code\n");
t_reply("$T_reply_code", "Pusher Failed");
t_reply("$T_reply_code", "pusher failed");
}
}


Loading…
Cancel
Save