[sr-dev] pres_refresh_watchers
Luis Azedo
luis.azedo at factorlusitano.com
Thu Sep 4 00:38:52 CEST 2014
Hi Daniel,
the issue that i'm having with calling pres_refresh_watchers (invalid
connection when it calls get_p_notify_body) from a forked process from my
module disappears if i comment the lines 411 e 412 in presence.c
411 // pa_dbf.close(pa_db);
412 // pa_db = NULL;
i can achieve the desired result if i leave these lines intact and add
these lines to pres_refresh_watchers
if(pa_db == NULL && library_mode == 0) {
pa_db = pa_dbf.init(&db_url);
}
the first change is more global and will keep me from adding the same lines
in (2) to other functions like update_watchers_status.
i would like to see either of these changes merged in master and ready for
4.2.
with these changes and the db_text that i submitted earlier, i can then ask
to merge the main module db_kazoo into master.
Best
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20140903/e3f64a9f/attachment.html>
More information about the sr-dev
mailing list