Hi list<div><br></div><div>we have been testing the mtree module. We do periodical reloads of the mtree table with the &quot;mi mt_reload&quot; command through xmlrpc. It works fine except when the db is restarted. If we manually restart the db and then try the mt_reload commands we get this error:</div>
<div><div>Jan  4 09:13:17 server /usr/local/kamailio-3.1.1/sbin/kamailio[28534]: ERROR: db_postgres [km_dbase.c:152]: 0xa6a490 PQsendQuery Error: server closed the connection unexpectedly#012#011This probably means the server terminated abnormally#012#011before or while processing the request.#012 Query: select partition,prefix,route from trees  order by partition</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div>Jan  4 09:13:17 server /usr/local/kamailio-3.1.1/sbin/kamailio[28534]: ERROR: &lt;core&gt; [db_query.c:101]: error while submitting query</div><div>Jan  4 09:13:17 server /usr/local/kamailio-3.1.1/sbin/kamailio[28534]: ERROR: mtree [mtree_mod.c:622]: Error while querying db</div>
<div>Jan  4 09:13:17 server /usr/local/kamailio-3.1.1/sbin/kamailio[28534]: ERROR: mtree [mtree_mod.c:738]: cannot re-load info from database</div></div><div><br></div><div>Is there a way to reconnect to the db before sending that command?</div>
<div><br></div><div>Thanks in advance</div><div><br></div><div>Regards</div><div><br></div><div>Javi</div><div><br></div>