<html><body><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>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.<br></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br></div><div><br></div><hr id="zwchr" data-marker="__DIVIDER__"><div data-marker="__HEADERS__"><b>From: </b>"Scott Fertig" <scott@gotbrew.org><br><b>To: </b>"users" <users@lists.opensips.org><br><b>Sent: </b>Wednesday, July 26, 2017 5:37:30 PM<br><b>Subject: </b>[OpenSIPS-Users] Small problem with opensips-cp MI<br></div><div><br></div><div data-marker="__QUOTED_TEXT__"><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000"><div>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. <br></div><br><div>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. </div><br><div>When trying json my opensips-cp boxes.global.inc.php MI section looks as so:<br></div><br><div>$boxes[$box_id]['mi']['conn']="json:127.0.0.1:8888/JSON";</div><br><div>I have mi_json and json loaded after the http and httpd modules in opensips.cfg:<br></div><br><div>#### HTTPD module<br>loadmodule "httpd.so"<br>modparam("httpd", "port", 8888)<br></div><br><div>####  MI_HTTP module<br>loadmodule "json.so"<br>loadmodule "mi_http.so"<br>loadmodule "mi_json.so"<br></div><br><div>When I try to use the MI commands section in the control panel, I issue a command and get back the error:<br></div><div>"MI command failed with 400"</div><br><div>Also I can see opensips listening on port 8888:<br></div><div>tcp        0      0 0.0.0.0:8888            0.0.0.0:*               LISTEN      15232/opensips  <br></div><br><br><div>When I try to use fifo I get a different error, my boxes config looks like:<br></div><div>$boxes[$box_id]['mi']['conn']="fifo:/tmp/opensips_fifo";</div><br><div>I can verify that the file exits in /tmp with the correct name and that the fifo module is loaded:<br></div><div>ls -al /tmp/opensips_fifo <br>prw-rw-rw- 1 root root 0 Jul 26 16:40 /tmp/opensips_fifo<br></div><br><div>#### FIFO Management Interface<br>loadmodule "mi_fifo.so"<br>modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")<br>modparam("mi_fifo", "fifo_mode", 0666)<br></div><br><br><div>When trying to use fifo I get this error:<br></div><div>Unknwon/Unsupported type[fifo] for MI URL</div><br><br><div>Hopefully someone can point me in the right direction, I'm not exactly sure where to go next on this problem.<br></div><br><br><br></div><br>_______________________________________________<br>Users mailing list<br>Users@lists.opensips.org<br>http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br></div></div></body></html>