[OpenSIPS-Users] Opensips 1.6.2 w/ Control Panel 4.0 - Problem w/ CDRViews and Dialog

Erick Chinchilla Berrocal erick at netcrc.net
Wed Apr 28 19:19:29 CEST 2010


 

 

From: Erick Chinchilla Berrocal [mailto:erick at netcrc.net] 
Sent: Wednesday, April 28, 2010 11:08 AM
To: 'OpenSIPS users mailling list'
Subject: RE: [OpenSIPS-Users] Opensips 1.6.2 w/ Control Panel 4.0 - Problem
w/ CDRViews and Dialog

 

Alex this is my current setup 

-          /var/www/opensips-cp/config/db.inc.php

//database driver mysql or pgsql

                $config->db_driver = "mysql";  

 

 //database host

 $config->db_host = "localhost";

 

 //database port - leave empty for default

 $config->db_port = "";

 

 //database connection user

                $config->db_user = "root";

 

 //database connection password

 $config->db_pass = "passwd root";

 

                //database name

                $config->db_name = "opensips";

 

 if (!empty($config->db_port) ) $config->db_host = $config->db_host . ":" .
$config->db_port;

 

?>

 

-          /var/www/opensips-cp/config/boxes.global.inc.php

/*==================== DEFINITION OF BOXES (servers)
========================*/

// each server is a box

 

$box_id=0;

 

// mi host:port pair || fifo_file

$boxes[$box_id]['mi']['conn']="/tmp/opensips_fifo";

 

// monit host:port

$boxes[$box_id]['monit']['conn']="127.0.0.1:2812";

$boxes[$box_id]['monit']['user']="admin";

$boxes[$box_id]['monit']['pass']="monit";

$boxes[$box_id]['monit']['has_ssl']=0;

 

 

// description (appears in mi , monit )

$boxes[$box_id]['desc']="Primary SIP server";

 

 

$boxes[$box_id]['assoc_id']=1;

 

// enable local smonitor charts on this box : 0=disabled 1=enabled

// (cron)

$boxes[$box_id]['smonitor']['charts']=1;

 

-          Opensips.cfg

-          # ----- mi_fifo params -----

-          modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")

-          modparam("mi_fifo", "fifo_mode", 0666)

 

Thanks

Erick Ch.

 

From: users-bounces at lists.opensips.org
[mailto:users-bounces at lists.opensips.org] On Behalf Of Alex Ionescu
Sent: Wednesday, April 28, 2010 3:07 AM
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] Opensips 1.6.2 w/ Control Panel 4.0 - Problem
w/ CDRViews and Dialog

 

Hi Erick,

The global db.inc.php (the one you have in /var/www/opensips-cp/config/) is
used by all the modules as long as they don't find something more specific
defined into their config files (like, for example, if you want a different
db setup for module domains you can edit
/var/www/opensips-cp/config/tools/system/domains/db.inc.php - and this will
override the global db setup ).

Dialog takes the call information using a MI command. So you must have
OpenSIPS Control Panel and OpenSIPS configured properly (you must choose
between xmlrpc and fifo) - see the OpenSIPS config file (to enable mi_xmlrpc
module or the mi_fifo) and also check the config/boxes.global.inc.php to
have the correct MI connection parameters set up.

Regards,
Alex







-- 
Alex Ionescu
www.voice-system.ro 





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20100428/ed51de82/attachment-0001.htm 


More information about the Users mailing list