Module: kamailio
Branch: 5.0
Commit: d49131e05033a78585bebea1bce503e97274a24e
URL:
https://github.com/kamailio/kamailio/commit/d49131e05033a78585bebea1bce503e…
Author: Dmitri Savolainen <savolainen(a)erinaco.ru>
Committer: Juha Heinanen <jh(a)tutpro.com>
Date: 2017-06-26T18:06:39+03:00
presence: subsription double delete fix
- if timeout_rm_subs parameter set to "1" and NOTIFY timeout about expired
subsription
(cherry picked from commit 8e185ddf8e81af8d6283a87ec95116965235752a)
---
Modified: src/modules/presence/notify.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d49131e05033a78585bebea1bce503e…
Patch:
https://github.com/kamailio/kamailio/commit/d49131e05033a78585bebea1bce503e…
---
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);