<div dir="ltr">To confirm exactly what processes are being used, maybe check the log file and take note of process id at each log event. For example you could check the process id of the messages showing you the connection is null. Then run kamcmd ps to show the process list with a description of each Kamailio process. That will probably point you in the correct direction.<div>
<div><br></div><div>Cheers</div><div>Jason</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 29, 2014 at 3:53 PM, Luis Azedo <span dir="ltr"><<a href="mailto:luis.azedo@factorlusitano.com" target="_blank">luis.azedo@factorlusitano.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>i have a module that creates 1 extra process where it processes stuff in a loop.</div>
<div>on some condition i fire a route_event with a fakemsg and its up to the user of the module to take action, it tries to work like dispatcher module or htable (mod-init) events.</div>
<div><br></div><div>the problem that i have is that, if i call some function on some module that performs a database action, the connection is null when it calls use_table.</div><div><br></div><div>in this case i'm making this call</div>

<div>event_route[my_module:my_event]</div><div>{</div><div> $var(my_uri) = <<result of some operations>>;</div><div> pres_refresh_watchers("$var(my_uri)", "dialog", 1);</div><div>}</div><div>

presence module makes the call to use_table but this call fails because the connection is null. presence module is working fine besides this.</div><div><br></div><div>if i make this call inside event_route[dispatcher:dst-up] it works.</div>

<div><br></div><div>i think that dispatcher fires the event inside a callback from a registered timer, so, i think (may be wrong) that it comes from a different process ?</div><div><br></div><div>i wonder if i'm missing something from child_init ? need to register something ?</div>

<div><br></div><div>thanks for your help.</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>
<br>_______________________________________________<br>
sr-dev mailing list<br>
<a href="mailto:sr-dev@lists.sip-router.org">sr-dev@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev</a><br>
<br></blockquote></div><br></div>