[OpenSIPS-Users] opensips-cli/Domain Issues

Mark Farmer farmorg at gmail.com
Mon Nov 11 11:04:47 EST 2019


Ah, now I understand.

Thank you.


On Mon, 11 Nov 2019 at 15:57, Răzvan Crainea <razvan at opensips.org> wrote:

> 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
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>


-- 
Mark Farmer
farmorg at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191111/1a1f00f3/attachment.html>


More information about the Users mailing list