<div dir="ltr"><div><br></div>Do I understand correctly that if db_text is in caching mode ( db_mode=0 ), then changes in the dbtext/domain file are not updated by the <b>kamcmd domain.reload</b> command?<div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">чт, 13 янв. 2022 г. в 12:17, Denys Pozniak <<a href="mailto:denys.pozniak@gmail.com">denys.pozniak@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"><div dir="ltr">Thanks! Now it works!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">чт, 13 янв. 2022 г. в 11:55, Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com" target="_blank">miconda@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">
<div>
<p>Hello,</p>
<p>alias_db is for user aliases, not for host aliases. For
multi-domain support with database storage, use domain module and
set register myself mod param.</p>
<p>Anyhow, the domains won't show up in core.aliases_list rpc
response, that's only for host aliases set in config file, but
domain module has also rpc command for listing its records.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div>On 13.01.22 10:49, Denys Pozniak wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hello!
<div><br>
</div>
<div>
<div>I need help uploading a list of aliases through a dbtext
to use them via myself.<br>
It is likely that there is some configuration problem:<br>
</div>
<div><br>
</div>
<div><i>loadmodule "db_text.so"</i></div>
<div><i>modparam("db_text", "db_mode", 1)<br>
modparam("db_text", "emptystring", 1)<br>
</i></div>
<div><i><br>
</i></div>
<div><i>loadmodule "alias_db.so"<br>
modparam("alias_db", "db_url",
"text:///etc/kamailio/dbtext")<br>
</i></div>
<div><i><br>
</i></div>
<div><i>[root@kamailio]$ cat dbtext/dbaliases<br>
id(int,auto) alias_username(string) alias_domain(string)
username(string) domain(string)<br>
1::sip.test.local::<br>
<br>
</i></div>
<div><i>[root@kamailio]$ kamcmd core.aliases_list<br>
{<br>
myself_callbacks: yes<br>
aliases: {<br>
}<br>
}<br>
</i></div>
<div><br>
</div>
<div>If done through a script (alias=sip.test.local), then
everything works fine:<br>
</div>
<div><br>
</div>
<div><i>[root@kamailio]$ kamcmd core.aliases_list<br>
{<br>
myself_callbacks: yes<br>
aliases: {<br>
alias: {<br>
proto: *<br>
address: sip.test.local<br>
port: *<br>
}<br>
}<br>
}<br>
</i></div>
<div><br>
</div>
<div><br>
</div>
-- <br>
<div dir="ltr">
<div dir="ltr"><br>
<div>
<div>BR,</div>
<div>Denys Pozniak<br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset></fieldset>
<pre>__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
* <a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
* <a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre cols="72">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
Feb 21-24, 2022 (America Timezone)
* <a href="https://www.asipto.com/sw/kamailio-advanced-training-online/" target="_blank">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><br><div><div>BR,</div><div>Denys Pozniak<br></div><div><br></div><div><br></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><br><div><div>BR,</div><div>Denys Pozniak<br></div><div><br></div><div><br></div></div></div></div>