<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <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 class="moz-cite-prefix">On 13.01.22 10:49, Denys Pozniak wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+x3AxrZDP5S7Z0nX+KwK_X48n9Umtn+4kMHN7Zt=ugA_5fptA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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" class="gmail_signature"
            data-smartmail="gmail_signature">
            <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 class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * <a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">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 class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - Online
  Feb 21-24, 2022 (America Timezone)
  * <a class="moz-txt-link-freetext" href="https://www.asipto.com/sw/kamailio-advanced-training-online/">https://www.asipto.com/sw/kamailio-advanced-training-online/</a></pre>
  </body>
</html>