Browse Source

do not send 100 twice

drop_requests
lazedo 8 years ago
committed by GitHub
parent
commit
df59cbb322
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      kamailio/pusher-role.cfg

+ 2
- 1
kamailio/pusher-role.cfg View File

@ -17,7 +17,7 @@ route[PUSHER_ROUTE]
} }
xlog("L_INFO", "$ci|pusher received request to wakeup $(tu{s.tolower})\n"); xlog("L_INFO", "$ci|pusher received request to wakeup $(tu{s.tolower})\n");
sl_send_reply(100, "waking the dead guy");
send_reply(100, "waking the dead guy");
t_set_fr(0, 20000); t_set_fr(0, 20000);
if (t_newtran()) { if (t_newtran()) {
route(SEND_PUSH_NOTIFICATION); route(SEND_PUSH_NOTIFICATION);
@ -25,6 +25,7 @@ route[PUSHER_ROUTE]
t_on_reply("EXTERNAL_REPLY"); t_on_reply("EXTERNAL_REPLY");
t_save_lumps(); t_save_lumps();
ts_store("$(tu{s.tolower})"); ts_store("$(tu{s.tolower})");
t_set_auto_inv_100(0);
t_suspend(); t_suspend();
} else { } else {
sl_send_reply(500, "error creating transaction for waking the dead guy"); sl_send_reply(500, "error creating transaction for waking the dead guy");


Loading…
Cancel
Save