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";

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

Reply via email to