[OpenSIPS-Users] opensips-cli/Domain Issues
Răzvan Crainea
razvan at opensips.org
Mon Nov 11 10:55:28 EST 2019
Hi, Mark!
If you're using db_mode = 0, OpenSIPS doesn't have any cache - it will
go to the database every time. Therefore OpenSIPS returns 500, because
it doesn't have any cache - the domains that he's using are in the
database. So you should check you DB, and if the domains are in there,
then your issue is somewhere else.
Best regards,
Razvan
On 11/11/19 5:47 PM, Mark Farmer wrote:
> 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
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Răzvan Crainea
OpenSIPS Core Developer
http://www.opensips-solutions.com
More information about the Users
mailing list