<div dir="ltr"><div dir="ltr"><div dir="ltr">Hello Olli,<div><br></div><div>i did that the opposite way.</div><div>I trigger an mysql-procedure evers 300 seconds and i fill in and reload my dialplan.</div><div>Maybe an idea for you.</div><div><br></div><div><div>loadmodule "rtimer.so"</div><div>loadmodule "sqlops.so"</div></div><div>(and jsonsrpc etc).</div><div><br></div><div><div>modparam("rtimer", "timer", "name=refreshdialplan;interval=300;mode=1;")</div><div>modparam("rtimer", "exec", "timer=refreshdialplan;route=REFRESHDIALPLAN")</div><div>modparam("sqlops", "sqlcon", "cb=>mysql://someuser:somedbpass@somehost/kamailio")</div><div><br></div><div>#!ifdef WITH_REFRESHDIALPLAN</div><div>route[REFRESHDIALPLAN] {</div><div>        sql_query("cb","call  refresh_dialplan()","rb");</div><div>        jsonrpc_exec('{"jsonrpc": "2.0","method": "dialplan.reload"}');</div><div>        jansson_get("result", $jsonrpl(body), "$var(dialplanresult)");</div><div>        xlog("L_INFO", "call refresh_dialplan() mysql procedure, jsonrpc dialplan.reload result $var(dialplanresult)\n");</div><div>}</div><div>#!endif</div></div><div><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Fr., 8. März 2019 um 08:45 Uhr schrieb Olli Attila <<a href="mailto:attiolli@gmail.com">attiolli@gmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello,<br>
<br>
I was wondering that is there a command / procedure available in<br>
Kamailio that would do dialplan.dump on a certain dialplan and then<br>
export/write  the output to another sql database where another<br>
dialplan table is present? This would be a sort of backup procedure<br>
that I'm planning.<br>
<br>
Cheers,<br>
Olli<br>
<br>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Mit freundlichen Grüßen<br>*Karsten Horsmann*<br></div>