OpenSIPS / opensips-cli

OpenSIPS CLI tool - an interactive command line tool that can be used to control and monitor OpenSIPS servers.
GNU General Public License v3.0
84 stars 46 forks source link

'OpenSIPSCLI' object has no attribute 'do_user' #121

Open nselimovic opened 3 months ago

nselimovic commented 3 months ago

Hi, I've been having quite some issues with CLI working with my dockerized OpenSIPS deployment.

At first, I've installed OpenSIPS from https://github.com/OpenSIPS/docker-opensips project and tried using opensips-cli that comes with it. Connection to a local MySQL database was successful (I could create or delete a user from opensips-cli) but database commands (such as database create) resulted with 'OpenSIPSCLI' object has no attribute 'do_database' error.

Then I tried pulling opensips-cli from this project and ran it as explained in the installation section. I finally managed to solve the above mentioned error, and now I can create or drop databases. However, when I try to create a user now I get 'OpenSIPSCLI' object has no attribute 'do_user'.


root# opensips -V
version: opensips 3.4.4 (x86_64/linux) flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, 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: 036d02961 main.c compiled on with gcc 10

root# opensips-cli --v
OpenSIPS CLI 0.2.0


Can you pls help me understand if I'm doing something wrong?