Module: kamailio
Branch: master
Commit: 8e185ddf8e81af8d6283a87ec95116965235752a
URL:
https://github.com/kamailio/kamailio/commit/8e185ddf8e81af8d6283a87ec951169…
Author: Dmitri Savolainen <savolainen(a)erinaco.ru>
Committer: Dmitri Savolainen <savolainen(a)erinaco.ru>
Date: 2017-06-23T18:57:00+03:00
presence: subsription double delete fix
- if timeout_rm_subs parameter set to "1" and NOTIFY timeout about expired
subsription
---
Modified: src/modules/presence/notify.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8e185ddf8e81af8d6283a87ec951169…
Patch:
https://github.com/kamailio/kamailio/commit/8e185ddf8e81af8d6283a87ec951169…
---
diff --git a/src/modules/presence/notify.c b/src/modules/presence/notify.c
index e5cd1cdf42..63307c7e2e 100644
--- a/src/modules/presence/notify.c
+++ b/src/modules/presence/notify.c
@@ -1847,7 +1847,7 @@ void p_tm_callback( struct cell *t, int type, struct tmcb_params
*ps)
if(ps->code == 404
|| ps->code == 481
- || (ps->code == 408 && timeout_rm_subs)
+ || (ps->code == 408 && timeout_rm_subs && subs->status !=
TERMINATED_STATUS)
|| pres_get_delete_sub()) {
delete_subs(&subs->pres_uri, &subs->event->name,
&subs->to_tag, &subs->from_tag, &subs->callid);