[OpenSIPS-Users] OpenSIPS Control Panel

Iulia Bublea iulia at opensips.org
Fri Apr 24 12:30:21 CEST 2009



Michael Ciupka wrote:
> Hello,
>
> Can somebody please help me to configure the boxes.global.inc.php correctly.
> I have read the documentation but by this part i dont know what i must write: can you help me to set the variables correctly? because when i click on some buttons in der WI i get an endless loop and i think it must be the problem that my boxes.global.inc doesnt work correct.
> $box_id=0;
>   
$boxes[$box_id]['mi']['conn']="192.168.2.6:8080";
You should put here the IP of the server you want to monitor and the 
port should be the same as the one set in the opensips.cfg for the mi 
modules that you use.
For example:
        * in opensips-cp the  x.y.z.w:8000
        * in opensips.cfg modparam("mi_xmlrpc","port",8000)
> // mi host:port pair || fifo_file
> $boxes[$box_id]['mi']['conn']="192.168.2.6:8080";
>
>   
For the monit config use the same IP as for the mi
> // monit host:port
> $boxes[$box_id]['monit']['conn']="192.168.2.6:2812";
>   
user and password should be the same as the ones set in monit, if you 
have this utility installed.
> $boxes[$box_id]['monit']['user']="RPC2";
> $boxes[$box_id]['monit']['pass']="";
> $boxes[$box_id]['monit']['has_ssl']=1;
>
>   
$boxes[$box_id]['desc']="Primary Sip Server";
Just a description of what the server's main function is.
> // description (appears in mi , monit )
> $boxes[$box_id]['desc']="192.168.2.6";
>  
> $boxes[$box_id]['assoc_id']=1;
>
> // enable local smonitor charts on this box : 0=disabled 1=enabled
> $boxes[$box_id]['smonitor']['charts']=1;
> ---------------------------------------------------------------------------
> my opensips-mi-proxy:
> socket = /var/run/opensips/socket
> listen_url = http://192.168.2.6:8080
> xmlrpc_root = RPC2
> trusted = any
> reply_option = string
>
> Regards
> Michael
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   




More information about the Users mailing list