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