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

Scott Fertig scott at gotbrew.org
Wed Jul 26 18:08:14 EDT 2017


I apologize, I just found the issue on my own. Looks like it was because I left the default "JSON" in the json MI portion of the config, but I just found in the documentation the default is "json". I changed to all lower case and the issue is resolved. 





From: "Scott Fertig" <scott at gotbrew.org> 
To: "users" <users at lists.opensips.org> 
Sent: Wednesday, July 26, 2017 5:37:30 PM 
Subject: [OpenSIPS-Users] Small problem with opensips-cp MI 

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: 

$boxes[$box_id]['mi']['conn']="json:127.0.0.1:8888/JSON"; 

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 0.0.0.0:8888 0.0.0.0:* LISTEN 15232/opensips 


When I try to use fifo I get a different error, my boxes config looks like: 
$boxes[$box_id]['mi']['conn']="fifo:/tmp/opensips_fifo"; 

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. 




_______________________________________________ 
Users mailing list 
Users at lists.opensips.org 
http://lists.opensips.org/cgi-bin/mailman/listinfo/users 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170726/69401ab3/attachment.html>


More information about the Users mailing list