[OpenSIPS-Users] opensips-cli/Domain Issues
Mark Farmer
farmorg at gmail.com
Mon Nov 11 10:47:58 EST 2019
Hi all
I'm still trying to figure out why my OpenSIPS 3.0.1 is not handling calls
between 2 registered users.The problem seems to be that the server does not
realise that it is responsible for the domain so I tried to use
opensips-cli to list the domains that the server is responsible for but I'm
getting an issue there too:
opensips-cli -d -x mi domain_dump
DEBUG: using config file /etc/opensips-cli.cfg
DEBUG: Loaded module 'database'
DEBUG: Loaded module 'diagnose'
DEBUG: Loaded module 'instance'
DEBUG: Loaded module 'mi'
DEBUG: sent command ':opensips_fifo_reply_12340:{"jsonrpc": "2.0", "id":
"16973", "method": "which", "params": []}'
DEBUG: Loaded module 'tls'
DEBUG: Loaded module 'trace'
DEBUG: Loaded module 'trap'
DEBUG: Loaded module 'user'
DEBUG: running in non-interactive mode '['mi', 'domain_dump']'
DEBUG: running command 'domain_dump' '[]'
DEBUG: named parameters are used
DEBUG: running command 'domain_dump' '{}'
DEBUG: sent command ':opensips_fifo_reply_32518:{"jsonrpc": "2.0", "id":
"24947", "method": "domain_dump", "params": {}}'
ERROR: command 'domain_dump' returned: 500: command not activated
I have the domain module loaded:
loadmodule "domain.so"
modparam("domain", "db_mode", 0)
modparam("domain", "db_url",
"mysql://opensips:mypassword@localhost/opensips3")
My opensips-cli.cfg
[default]
log_level: DEBUG
prompt_name: opensips-cli - treg1.tx
prompt_intro: Welcome to OpenSIPS Command Line Interface!
prompt_emptyline_repeat_cmd: False
history_file: ~/.opensips-cli.history
history_file_size: 1000
output_type: pretty-print
communication_type: fifo
fifo_file: /tmp/opensips_fifo
url: http://127.0.0.1:8888/mi
database_url=mysql://root:rootpasswd@localhost
database_name=opensips3
database_path=/usr/local/share/opensips/
domain=XXX.XXX.XXX.XXX
plain_text_passwords=false
According to the docs, it should work:
https://opensips.org/html/docs/modules/3.0.x/domain.html#mi_domain_dump
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191111/240649e9/attachment-0001.html>
More information about the Users
mailing list