Module: kamailio Branch: master Commit: 0411c078b525ffa78b1bc252e161914205b6ac4b URL: https://github.com/kamailio/kamailio/commit/0411c078b525ffa78b1bc252e161914205b6ac4b
Author: lazedo <luis.az...@factorlusitano.com> Committer: GitHub <nore...@github.com> Date: 2017-03-11T16:04:32Z presence : fix fast_notify usage fast_notify not used when pres_notifier_processes > 0 --- Modified: src/modules/presence/subscribe.c --- Diff: https://github.com/kamailio/kamailio/commit/0411c078b525ffa78b1bc252e161914205b6ac4b.diff Patch: https://github.com/kamailio/kamailio/commit/0411c078b525ffa78b1bc252e161914205b6ac4b.patch --- diff --git a/src/modules/presence/subscribe.c b/src/modules/presence/subscribe.c index e8c9cea..8dab786 100644 --- a/src/modules/presence/subscribe.c +++ b/src/modules/presence/subscribe.c @@ -1114,7 +1114,7 @@ int handle_subscribe(struct sip_msg* msg, str watcher_user, str watcher_domain) goto error; } - if (pres_notifier_processes > 0 && pa_dbf.start_transaction) + if (pres_notifier_processes > 0 && !send_fast_notify && pa_dbf.start_transaction) { if (pa_dbf.use_table(pa_db, &active_watchers_table) < 0) { @@ -1241,7 +1241,7 @@ int handle_subscribe(struct sip_msg* msg, str watcher_user, str watcher_domain) LM_DBG("subscription status= %s - %s\n", get_status_str(subs.status), (found==0)?"inserted":"found in watcher table"); - if (pres_notifier_processes > 0) + if (pres_notifier_processes > 0 && !send_fast_notify) { if (update_subscription_notifier(msg, &subs, to_tag_gen, &sent_reply) < 0) @@ -1255,7 +1255,8 @@ int handle_subscribe(struct sip_msg* msg, str watcher_user, str watcher_domain) LM_ERR("in update_subscription\n"); goto error; } - if (pres_notifier_processes > 0 && pa_dbf.end_transaction) + + if (pres_notifier_processes > 0 && !send_fast_notify && pa_dbf.end_transaction) { if (pa_dbf.end_transaction(pa_db) < 0) { _______________________________________________ sr-dev mailing list sr-dev@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev