OpenSIPS / opensips-cli

OpenSIPS CLI tool - an interactive command line tool that can be used to control and monitor OpenSIPS servers.
GNU General Public License v3.0
84 stars 46 forks source link

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 1 year ago

sunitha-ramki commented 1 year ago

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 commented 1 year ago

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?