[SR-Users] Massive uploading of aliases through a dbtext

Denys Pozniak denys.pozniak at gmail.com
Thu Jan 13 10:49:45 CET 2022


Hello!

I need help uploading a list of aliases through a dbtext to use them via
myself.
It is likely that there is some configuration problem:

*loadmodule "db_text.so"*


*modparam("db_text", "db_mode", 1)modparam("db_text", "emptystring", 1)*



*loadmodule "alias_db.so"modparam("alias_db", "db_url",
"text:///etc/kamailio/dbtext")*





*[root at kamailio]$ cat dbtext/dbaliasesid(int,auto) alias_username(string)
alias_domain(string) username(string) domain(string)1::sip.test.local::*






*[root at kamailio]$ kamcmd core.aliases_list{        myself_callbacks: yes
    aliases: {        }}*

If done through a script (alias=sip.test.local), then everything works fine:












*[root at kamailio]$ kamcmd core.aliases_list{        myself_callbacks: yes
    aliases: {                alias: {                        proto: *
                  address: sip.test.local                        port: *
            }        }}*


-- 

BR,
Denys Pozniak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220113/c2fe9e38/attachment.htm>


More information about the sr-users mailing list