<div dir="ltr">Ah, now I understand.<div><br></div><div>Thank you.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 11 Nov 2019 at 15:57, Răzvan Crainea <<a href="mailto:razvan@opensips.org">razvan@opensips.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Hi, Mark!<br>
<br>
If you're using db_mode = 0, OpenSIPS doesn't have any cache - it will <br>
go to the database every time. Therefore OpenSIPS returns 500, because <br>
it doesn't have any cache - the domains that he's using are in the <br>
database. So you should check you DB, and if the domains are in there, <br>
then your issue is somewhere else.<br>
<br>
Best regards,<br>
Razvan<br>
<br>
On 11/11/19 5:47 PM, Mark Farmer wrote:<br>
> Hi all<br>
> <br>
> I'm still trying to figure out why my OpenSIPS 3.0.1 is not handling <br>
> calls between 2 registered users.The problem seems to be that the server <br>
> does not realise that it is responsible for the domain so I tried to use <br>
> opensips-cli to list the domains that the server is responsible for but <br>
> I'm getting an issue there too:<br>
> <br>
> opensips-cli -d -x mi domain_dump<br>
> DEBUG: using config file /etc/opensips-cli.cfg<br>
> DEBUG: Loaded module 'database'<br>
> DEBUG: Loaded module 'diagnose'<br>
> DEBUG: Loaded module 'instance'<br>
> DEBUG: Loaded module 'mi'<br>
> DEBUG: sent command ':opensips_fifo_reply_12340:{"jsonrpc": "2.0", "id": <br>
> "16973", "method": "which", "params": []}'<br>
> DEBUG: Loaded module 'tls'<br>
> DEBUG: Loaded module 'trace'<br>
> DEBUG: Loaded module 'trap'<br>
> DEBUG: Loaded module 'user'<br>
> DEBUG: running in non-interactive mode '['mi', 'domain_dump']'<br>
> DEBUG: running command 'domain_dump' '[]'<br>
> DEBUG: named parameters are used<br>
> DEBUG: running command 'domain_dump' '{}'<br>
> DEBUG: sent command ':opensips_fifo_reply_32518:{"jsonrpc": "2.0", "id": <br>
> "24947", "method": "domain_dump", "params": {}}'<br>
> ERROR: command 'domain_dump' returned: 500: command not activated<br>
> <br>
> I have the domain module loaded:<br>
> <br>
> loadmodule "domain.so"<br>
> modparam("domain", "db_mode", 0)<br>
> modparam("domain", "db_url",<br>
> "mysql://opensips:mypassword@localhost/opensips3")<br>
> <br>
> My opensips-cli.cfg<br>
> <br>
> [default]<br>
> log_level: DEBUG<br>
> prompt_name: opensips-cli - treg1.tx<br>
> prompt_intro: Welcome to OpenSIPS Command Line Interface!<br>
> prompt_emptyline_repeat_cmd: False<br>
> history_file: ~/.opensips-cli.history<br>
> history_file_size: 1000<br>
> output_type: pretty-print<br>
> communication_type: fifo<br>
> fifo_file: /tmp/opensips_fifo<br>
> url: <a href="http://127.0.0.1:8888/mi" rel="noreferrer" target="_blank">http://127.0.0.1:8888/mi</a><br>
> database_url=mysql://root:rootpasswd@localhost<br>
> database_name=opensips3<br>
> database_path=/usr/local/share/opensips/<br>
> domain=XXX.XXX.XXX.XXX<br>
> plain_text_passwords=false<br>
> <br>
> According to the docs, it should work:<br>
> <a href="https://opensips.org/html/docs/modules/3.0.x/domain.html#mi_domain_dump" rel="noreferrer" target="_blank">https://opensips.org/html/docs/modules/3.0.x/domain.html#mi_domain_dump</a><br>
> <br>
> <br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
> <br>
<br>
-- <br>
Răzvan Crainea<br>
OpenSIPS Core Developer<br>
<a href="http://www.opensips-solutions.com" rel="noreferrer" target="_blank">http://www.opensips-solutions.com</a><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Mark Farmer<br><a href="mailto:farmorg@gmail.com" target="_blank">farmorg@gmail.com</a></div>