From: Mark Michelson Date: Thu, 28 Aug 2014 15:49:44 +0000 (+0000) Subject: Fix bug that did not allow for multiple batched RLS notifications to be sent. X-Git-Tag: 13.0.0-beta2~2^2~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7918e67d3580585661eea8833d07a44ac8b47c49;p=thirdparty%2Fasterisk.git Fix bug that did not allow for multiple batched RLS notifications to be sent. A misunderstanding of how the scheduler worked caused further batched notifications beyond the first not to get scheduled. Now we reset our scheduler ID to -1 after the batched notification is sent. This way, further notifications can be scheduled when they arise. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@422239 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_pjsip_pubsub.c b/res/res_pjsip_pubsub.c index 530a3b81bc..fc4a940515 100644 --- a/res/res_pjsip_pubsub.c +++ b/res/res_pjsip_pubsub.c @@ -1988,6 +1988,7 @@ static int serialized_send_notify(void *userdata) } send_notify(sub_tree, 0); + sub_tree->notify_sched_id = -1; ao2_cleanup(sub_tree); return 0; }