<html><head></head><body><div class="ydpbe428d64yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;"><div></div>
<div dir="ltr" data-setdir="false">Hi,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Thanks for your reply. Some times we need to provide Initial Data in some tables so I think we can use something you suggested. </div><div dir="ltr" data-setdir="false"><br></div>
</div><div id="yahoo_quoted_4772722700" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
On Thursday, November 5, 2020, 06:00:23 PM GMT+5, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv0173044329"><div>
<div class="yiv0173044329moz-cite-prefix">Hello,</div>
<div class="yiv0173044329moz-cite-prefix"><br clear="none">
</div>
<div class="yiv0173044329moz-cite-prefix">if you put the sql to create the table
in share/kamailio/mysql/customtable-create.sql</div>
<div class="yiv0173044329moz-cite-prefix"><br clear="none">
</div>
<div class="yiv0173044329moz-cite-prefix">then you can run:</div>
<div class="yiv0173044329moz-cite-prefix"><br clear="none">
</div>
<div class="yiv0173044329moz-cite-prefix">kamdbctl add-tables customtable</div>
<div class="yiv0173044329moz-cite-prefix"><br clear="none">
</div>
<div class="yiv0173044329moz-cite-prefix">This has to be done after the kamdbctl
create command.</div>
<div class="yiv0173044329moz-cite-prefix"><br clear="none">
</div>
<div class="yiv0173044329moz-cite-prefix">If you plan for long term, also taking
in consideration the option to add management of customtable
records in the cli, I can recommend to look at kamcli:</div>
<div class="yiv0173044329moz-cite-prefix"><br clear="none">
</div>
<div class="yiv0173044329moz-cite-prefix"> * <a rel="nofollow" shape="rect" class="yiv0173044329moz-txt-link-freetext" target="_blank" href="https://github.com/kamailio/kamcli">https://github.com/kamailio/kamcli</a></div>
<div class="yiv0173044329moz-cite-prefix"><br clear="none">
</div>
<div class="yiv0173044329moz-cite-prefix">It can also create the customtable
using:</div>
<div class="yiv0173044329moz-cite-prefix"><br clear="none">
</div>
<div class="yiv0173044329moz-cite-prefix">kamcli db create-tables-group
customtable</div>
<div class="yiv0173044329moz-cite-prefix"><br clear="none">
</div>
<div class="yiv0173044329moz-cite-prefix">The 'kamcli db' offers what old
'kamdbctl' and 'kamctl db ...' do.</div>
<div class="yiv0173044329moz-cite-prefix"><br clear="none">
</div>
<div class="yiv0173044329moz-cite-prefix">But then you can just add your own
python file in 'kamcli/commands/cmd_customtable.py' to manage
records in that table (for example, you can use cmd_aliasdb.py as
a starting point).</div>
<div class="yiv0173044329moz-cite-prefix"><br clear="none">
</div>
<div class="yiv0173044329moz-cite-prefix">Cheers,<br clear="none">
Daniel<br clear="none">
</div>
<div class="yiv0173044329moz-cite-prefix"><br clear="none">
</div>
<div class="yiv0173044329yqt9388296344" id="yiv0173044329yqt17312"><div class="yiv0173044329moz-cite-prefix">On 05.11.20 13:40,
<a rel="nofollow" shape="rect" class="yiv0173044329moz-txt-link-abbreviated" ymailto="mailto:me.projects@yahoo.com" target="_blank" href="mailto:me.projects@yahoo.com">me.projects@yahoo.com</a> wrote:<br clear="none">
</div>
<blockquote type="cite">
</blockquote></div></div><div class="yiv0173044329yqt9388296344" id="yiv0173044329yqt58094"><div><div class="yiv0173044329yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:16px;">
<div dir="ltr">Hi,</div>
<div dir="ltr"><br clear="none">
</div>
<div dir="ltr">I want add some custom Table
Creation during installation of Kamailio. </div>
<div dir="ltr"><span><br clear="none">
</span></div>
<div dir="ltr"><span>I want to add my Custom
Table during the execution of </span></div>
<div dir="ltr"><span><br clear="none">
</span></div>
<div dir="ltr"><span><b>kamdbctl create</b></span><span><br clear="none">
</span></div>
<div dir="ltr"><span><br clear="none">
</span></div>
<div dir="ltr"><span>command. Currently I am
adding my script in </span></div>
<div dir="ltr"><span><br clear="none">
</span></div>
<div dir="ltr"><span><b>share/kamailio/mysql/auth_db-create.sql</b></span></div>
<div dir="ltr"><br clear="none">
</div>
<div dir="ltr">Thanks,</div>
</div>
<br clear="none">
<fieldset class="yiv0173044329mimeAttachmentHeader"></fieldset>
<pre class="yiv0173044329moz-quote-pre">_______________________________________________
Kamailio (SER) - Users Mailing List
<a rel="nofollow" shape="rect" class="yiv0173044329moz-txt-link-abbreviated" ymailto="mailto:sr-users@lists.kamailio.org" target="_blank" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a rel="nofollow" shape="rect" class="yiv0173044329moz-txt-link-freetext" target="_blank" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
<p><br clear="none">
</p>
<pre class="yiv0173044329moz-signature">--
Daniel-Constantin Mierla -- <a rel="nofollow" shape="rect" class="yiv0173044329moz-txt-link-abbreviated" target="_blank" href="http://www.asipto.com">www.asipto.com</a>
<a rel="nofollow" shape="rect" class="yiv0173044329moz-txt-link-abbreviated" target="_blank" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a rel="nofollow" shape="rect" class="yiv0173044329moz-txt-link-abbreviated" target="_blank" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Funding: <a rel="nofollow" shape="rect" class="yiv0173044329moz-txt-link-freetext" target="_blank" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
</div></div></div></div>
</div>
</div></body></html>