Hello! I need help understanding how I can use the dispatcher module in conjunction with db_text (I usually use a list file, but on this version, it is no longer possible). My database consists of two tables/files: version and dispatcher:
*[root@localhost]# tree /etc/opensips/dbtext* */etc/opensips/dbtext* *├── dispatcher* *└── version* *[root@localhost]# cat /etc/opensips/dbtext/dispatcher* *id(int,auto) setid(int) destination(string) socket(string,null) state(int) probe_mode(int) weight(string) priority(int) attrs(string) description(string)* *1:1:sip\:127.0.0.1::1:2:3:4:'':''* When I try to display the entire structure of SIP peers, I always get "OK" only, although I would expect to see a list of destination/s: *[root@localhost]# opensips-cli -x mi dbt_dump* *"OK"* Script snippet: *loadmodule "db_text.so"* *modparam("db_text", "db_mode", 0)* *loadmodule "dispatcher.so"* *modparam("dispatcher", "db_url", "text:///etc/opensips/dbtext")* Version: *[root@localhost]# opensips -V* *version: opensips 3.4.0-dev (x86_64/linux)* *flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, CC_O0, FAST_LOCK-ADAPTIVE_WAIT* *ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535* *poll method support: poll, epoll, sigio_rt, select.* *git revision: 42c8a20eb* *main.c compiled on 05:49:47 Jan 22 2023 with gcc 4.8.5* -- BR, Denys Pozniak
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users