[OpenSIPS-Users] Small problem with opensips-cp MI

Scott Fertig scott at gotbrew.org
Wed Jul 26 17:37:30 EDT 2017

HI, first I apologize if this has been gone over already but I have been searching and have not been able to find an answer as of yet. 

Simply my problem is that I cannot seem to get the MI connection setup properly in opensips-cp. I have tried json as well as FIFO with no success and was wondering if someone could point out what I may be doing wrong here. I am using Opensips 2.2.5 and Opensips-cp 6.2. 

When trying json my opensips-cp boxes.global.inc.php MI section looks as so: 


I have mi_json and json loaded after the http and httpd modules in opensips.cfg: 

#### HTTPD module 
loadmodule "httpd.so" 
modparam("httpd", "port", 8888) 

#### MI_HTTP module 
loadmodule "json.so" 
loadmodule "mi_http.so" 
loadmodule "mi_json.so" 

When I try to use the MI commands section in the control panel, I issue a command and get back the error: 
"MI command failed with 400" 

Also I can see opensips listening on port 8888: 
tcp 0 0* LISTEN 15232/opensips 

When I try to use fifo I get a different error, my boxes config looks like: 

I can verify that the file exits in /tmp with the correct name and that the fifo module is loaded: 
ls -al /tmp/opensips_fifo 
prw-rw-rw- 1 root root 0 Jul 26 16:40 /tmp/opensips_fifo 

#### FIFO Management Interface 
loadmodule "mi_fifo.so" 
modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo") 
modparam("mi_fifo", "fifo_mode", 0666) 

When trying to use fifo I get this error: 
Unknwon/Unsupported type[fifo] for MI URL 

Hopefully someone can point me in the right direction, I'm not exactly sure where to go next on this problem. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170726/fb1a85b1/attachment-0001.html>

More information about the Users mailing list