Hi Aqs,

Maybe there is an error in the boxes.global.inc.php - be sure the box has and 'mi' connector and the indexing of the boxes is correct.

Just to be sure, do an update to the latest 8.2.4 code from git.

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  https://www.opensips-solutions.com
OpenSIPS Summit 2019
  https://www.opensips.org/events/Summit-2019Amsterdam/

On 01/25/2019 10:36 PM, Aqs Younas wrote:
Greetings list,

I am trying to execute mi commands from opensips-cp but looks like opensips-cp is unable to find the json URL and sending me the below error.

/16:06:52/  | *uptime*  |
------------------------------------------------------------------------
Unknwon/Unsupported type[] for MI URL <>

By looking at the below snippet of mi.php file, I see

if ($_GET['action']=="change_box" && !empty($_POST['box_val'])) {
        $current_box=$_POST['box_val'];
$_SESSION['mi_current_box']=$current_box ;
} else if (!empty($_SESSION['mi_current_box'])) {
$current_box=$_SESSION['mi_current_box'];
} else {
*$current_box="";*
}

Somehow variable current_box is being populated as empty.

My boxes.global.inc.php is configured like below.
$box_id=0;
//  MI connector (via JSON backend):  json:host:port/json
$boxes[$box_id]['mi']['conn']="json:127.0.0.1:8888/json <http://127.0.0.1:8888/json>";

And i am able to use mi commands from the terminal.

root@opensips:~# curl http://127.0.0.1:8888/json/uptime
{"Now": "Fri Jan 25 16:32:45 2019", "Up since": "Fri Jan 25 16:21:57 2019", "Up time": "648 [sec]"}root@opensips:~#

I am at lost where else i need to define my server json URL.

Any help is much appreciated.

Thanks.


_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to