Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opensips-cli -x diagnose sip throws ERROR: Failed to subscribe for JSON-RPC events ERROR: Is the event_stream.so OpenSIPS module loaded? #101

Open
sunitha-ramki opened this issue Dec 18, 2022 · 1 comment
Assignees
Labels
invalid This doesn't seem right

Comments

@sunitha-ramki
Copy link

Hi,
I have installed Opensips 3.1.3 using Docker pull from dockerhub and after installing opensips-cli, when I run the command I get the following errors
opensips-cli -x diagnose sip

ERROR: Failed to subscribe for JSON-RPC events
ERROR: Is the event_stream.so OpenSIPS module loaded?

I followed the install instruction from
https://github.com/OpenSIPS/opensips-cli/blob/master/docs/INSTALLATION.md

from diagnose.py for sip diagnose.
when I print the version and events I get
['msg processing']
{'major': '3', 'minor': '1'}

I even restarted opensips with /etc/init.d/opensips restart (though it does not show any text on terminal after this command)

Can you please let me know whether I have to do something lese to get this working?

Thanks

ramki

@liviuchircu liviuchircu self-assigned this Dec 23, 2022
@liviuchircu
Copy link
Member

Hi, @sunitha-ramki! You must explicitly add a loadmodule "event_stream.so" line in your /etc/opensips/opensips.cfg file, before the diagnose feature can work, then restart the opensips. Did you perform this step?

@liviuchircu liviuchircu added the invalid This doesn't seem right label Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants