<div dir="ltr">Hi Daniel,<div><br></div><div>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</div>
<div><div><span class="" style="white-space:pre"><br></span></div><div><span class="" style="white-space:pre">411       // </span>pa_dbf.close(pa_db);</div><div><span class="" style="white-space:pre">412 // </span>pa_db = NULL;</div>
</div><div><br></div><div>i can achieve the desired result if i leave these lines intact and add these lines to pres_refresh_watchers</div><div><br></div><div><div><span class="" style="white-space:pre">        </span>if(pa_db == NULL && library_mode == 0) {</div>
<div><span class="" style="white-space:pre">            </span>pa_db = pa_dbf.init(&db_url);</div><div><span class="" style="white-space:pre">  </span>}</div></div><div><br></div><div>the first change is more global and will keep me from adding the same lines in (2) to other functions like update_watchers_status.</div>
<div><br></div><div>i would like to see either of these changes merged in master and ready for 4.2.</div><div>with these changes and the db_text that i submitted earlier, i can then ask to merge the main module db_kazoo into master.</div>
<div><br></div><div>Best</div><div><br></div><div> </div><div><br></div></div>