[OpenSIPS-Users] How to dump dispatcher destinations from the db_text via opensips-cli?

Denys Pozniak denys.pozniak at gmail.com
Mon Jan 23 13:15:04 UTC 2023


Sorry for the noise, got the commands mixed up a bit:
*opensips-cli -x mi ds_list*

пн, 23 янв. 2023 г. в 15:09, Denys Pozniak <denys.pozniak at gmail.com>:

>
> 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 at localhost]# tree /etc/opensips/dbtext*
> */etc/opensips/dbtext*
> *├── dispatcher*
> *└── version*
>
>
> *[root at 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 at 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 at 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
>
>
>

-- 

BR,
Denys Pozniak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20230123/ddafc4b3/attachment.html>


More information about the Users mailing list