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-boun...@lists.opensips.org [mailto:users-boun...@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 On 4/27/2010 18:24, Erick Chinchilla Berrocal wrote: FYI According the manual http://opensips-cp.sourceforge.net/ Dialog Module (dialog) one option is change the setup in the file /opensips-cp/config/tools/system/dialog/db.inc.php in the configuration I don't have this file only those following. Please confirm if need the file db.inc.php /etc/opensips# ls -al /var/www/opensips-cp/config/tools/system/dialog/ total 16 drwxr-xr-x 2 www-data www-data 4096 2010-04-26 13:46 . drwxr-xr-x 16 www-data www-data 4096 2010-04-26 11:49 .. -rw-r--r-- 1 www-data www-data 1243 2010-03-08 12:54 local.inc.php -rw-r--r-- 1 www-data www-data 1094 2010-03-08 12:54 menu.inc.php Look this file in the other modules and get. In the modules./tools/. are in default setup /etc/opensips# find / -name db.inc.php /var/www/opensips-cp/config/tools/admin/add_admin/db.inc.php /var/www/opensips-cp/config/tools/admin/list_admins/db.inc.php /var/www/opensips-cp/config/tools/users/user_management/db.inc.php /var/www/opensips-cp/config/tools/users/alias_management/db.inc.php /var/www/opensips-cp/config/tools/system/smonitor/db.inc.php /var/www/opensips-cp/config/tools/system/cdrviewer/db.inc.php /var/www/opensips-cp/config/tools/system/permissions/db.inc.php /var/www/opensips-cp/config/tools/system/domains/db.inc.php /var/www/opensips-cp/config/tools/system/loadbalancer/db.inc.php /var/www/opensips-cp/config/tools/system/drouting/db.inc.php /var/www/opensips-cp/config/tools/system/siptrace/db.inc.php /var/www/opensips-cp/config/tools/system/pdt/db.inc.php /var/www/opensips-cp/config/tools/system/nathelper/db.inc.php /var/www/opensips-cp/config/tools/system/dialplan/db.inc.php /var/www/opensips-cp/config/tools/system/dispatcher/db.inc.php /var/www/opensips-cp/config/db.inc.php Now, I understand that if only changed this file is ok for all modules, can you confirm if is correct /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 = password for root; //database name $config-db_name = opensips; if (!empty($config-db_port) ) $config-db_host = $config-db_host . : . $config-db_port; I want to test
Re: [OpenSIPS-Users] Opensips 1.6.2 w/ Control Panel 4.0 - Problem w/ CDRViews and Dialog
From: Erick Chinchilla Berrocal [mailto:er...@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-boun...@lists.opensips.org [mailto:users-boun...@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 ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Opensips 1.6.2 w/ Control Panel 4.0 - Problem w/ CDRViews and Dialog
FYI According the manual http://opensips-cp.sourceforge.net/ Dialog Module (dialog) one option is change the setup in the file /opensips-cp/config/tools/system/dialog/db.inc.php in the configuration I don't have this file only those following. Please confirm if need the file db.inc.php /etc/opensips# ls -al /var/www/opensips-cp/config/tools/system/dialog/ total 16 drwxr-xr-x 2 www-data www-data 4096 2010-04-26 13:46 . drwxr-xr-x 16 www-data www-data 4096 2010-04-26 11:49 .. -rw-r--r-- 1 www-data www-data 1243 2010-03-08 12:54 local.inc.php -rw-r--r-- 1 www-data www-data 1094 2010-03-08 12:54 menu.inc.php Look this file in the other modules and get. In the modules /tools/ are in default setup /etc/opensips# find / -name db.inc.php /var/www/opensips-cp/config/tools/admin/add_admin/db.inc.php /var/www/opensips-cp/config/tools/admin/list_admins/db.inc.php /var/www/opensips-cp/config/tools/users/user_management/db.inc.php /var/www/opensips-cp/config/tools/users/alias_management/db.inc.php /var/www/opensips-cp/config/tools/system/smonitor/db.inc.php /var/www/opensips-cp/config/tools/system/cdrviewer/db.inc.php /var/www/opensips-cp/config/tools/system/permissions/db.inc.php /var/www/opensips-cp/config/tools/system/domains/db.inc.php /var/www/opensips-cp/config/tools/system/loadbalancer/db.inc.php /var/www/opensips-cp/config/tools/system/drouting/db.inc.php /var/www/opensips-cp/config/tools/system/siptrace/db.inc.php /var/www/opensips-cp/config/tools/system/pdt/db.inc.php /var/www/opensips-cp/config/tools/system/nathelper/db.inc.php /var/www/opensips-cp/config/tools/system/dialplan/db.inc.php /var/www/opensips-cp/config/tools/system/dispatcher/db.inc.php /var/www/opensips-cp/config/db.inc.php - Now, I understand that if only changed this file is ok for all modules, can you confirm if is correct o /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 = password for root; § § //database name § $config-db_name = opensips; § § if (!empty($config-db_port) ) $config-db_host = $config-db_host . : . $config-db_port; I want to test the Opensips-Control Panel but for the modules CDR Views and Dialog don't get any information, the same with the module SIPTrace Her you can help me I appreciate it Thanks Erick Ch. From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Erick Chinchilla Berrocal Sent: Monday, April 26, 2010 11:35 AM To: 'OpenSIPS users mailling list' Subject: [OpenSIPS-Users] Opensips 1.6.2 w/ Control Panel 4.0 - Problem w/ CDRViews and Dialog FYI I tried to get (look) the calls in the modules CDRViewer and Dialog and not is possible. The following files have the default configuration and the MySQL tables is according the script. /var/www/opensips-cp/config/tools/system/cdrviewer/local.inc.php /var/www/opensips-cp/config/tools/system/dialog/local.inc.php This is the configuration for the modules in the file opensips.cfg # loadmodule db_mysql.so loadmodule signaling.so loadmodule sl.so loadmodule tm.so loadmodule rr.so loadmodule maxfwd.so loadmodule usrloc.so loadmodule registrar.so loadmodule textops.so loadmodule mi_fifo.so loadmodule uri.so loadmodule xlog.so loadmodule acc.so # # - usrloc params - /* uncomment the following lines if you want to enable DB persistency for location entries */ modparam(usrloc, db_mode, 2) modparam(usrloc, db_url, mysql://opensips:opensip...@localhost/opensips) modparam(usrloc, use_domain, 1) modparam(usrloc, nat_bflag, 3) modparam(usrloc, user_column, username) modparam(usrloc, domain_column, domain) modparam(usrloc, contact_column, contact) modparam(usrloc, expires_column, expires) modparam(usrloc, q_column, q) modparam(usrloc, callid_column, callid) modparam(usrloc, cseq_column, cseq) modparam(usrloc, methods_column, methods) modparam(usrloc, flags_column, flags) modparam(usrloc, cflags_column, cflags) modparam(usrloc, user_agent_column, user_agent) modparam(usrloc, received_column, received) modparam(usrloc, socket_column, socket) modparam(usrloc, path_column, path) modparam(usrloc, use_domain, 1) modparam(usrloc, desc_time_order, 1) modparam(usrloc, timer_interval, 120) modparam(usrloc, matching_mode, 1) ## # - acc params - /* what sepcial events should be accounted ? */ modparam(acc, early_media, 1) modparam(acc, report_ack, 1) modparam(acc, report_cancels, 1) /* by default ww do not adjust the direct of the sequential requests. if you enable this parameter, be sure the enable append_fromtag in rr module */ modparam(acc
Re: [OpenSIPS-Users] Problem with Opensips-Location tables-users
IS working Thanks -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Monday, April 26, 2010 5:06 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Problem with Opensips-Location tables-users Hi Erick, Erick Chinchilla Berrocal wrote: I have the following problem According the manual modparam(usrloc, db_mode, 0) The modparam directive configures the corresponding module. The usrloc module in the line is responsible for the location service. In other words, when a UAC registers to an SIP proxy, the OpenSIPS will save their contact information, also known as address-of-record (AOR) to the location indicated by the db_mode parameter. The location of this table depends on the value of the db_mode parameter. A db_mode parameter set to 0 indicates that this data would not be saved into a database. In other words, if OpenSIPS is turned off, all the records will be lost. Now this is the situation I can see the users registered with the opensipsctl script With the Control Panel not is possible look the registered users. As CP takes user registration form DB, you need to use for usrloc db_mode something different than 0 (to get DB persistence). If we are looking in the database opensips in the following tables - Subscriber o Find the correct information for the users (username, domain,password) - Location o Find the correct information for the users are online, but don't have the information for the location , column domain say NULL the other information is correct column Contact,expires o Now if modified the column Domain and insert the domain, for example ABC.com, we can see the USERS ONLINE CP is designed to work into a multi domain environment, so it requires a domain value in usrloc (like you have in subscriber table). For this, in opensips, add: modparam(usrloc, use_domain, 1) Regards, Bogdan In the file opensips.cfg # - usrloc params - modparam(usrloc, db_mode, 0) /* uncomment the following lines if you want to enable DB persistency for location entries */ modparam(usrloc, db_mode, 2) modparam(usrloc, db_url, mysql://opensips:opensip...@localhost/opensips) In the Module Statics Monitor , we can look the locations-users Thanks __ Information from ESET NOD32 Antivirus, version of virus signature database 3997 (20090409) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Bogdan-Andrei Iancu www.voice-system.ro ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users __ Information from ESET NOD32 Antivirus, version of virus signature database 3997 (20090409) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 3997 (20090409) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Opensips Control Panel - User
Alex I explain the situation with more detail. But dont is working the opensips control-panel With the opensips I can register phones (X-Lite), make calls, add, remove with the application opensipsctl opensipsctl monitor [cycle #: 4; if constant make sure server lives] Server:: OpenSIPS (1.6.2-notls (i386/linux)) Now:: Thu Apr 15 09:35:01 2010 Up since:: Thu Apr 15 09:21:31 2010 Up time:: 810 [sec] Transaction Statistics: tm:UAS_transactions = 3 tm:UAC_transactions = 0 tm:inuse_transactions = 0 Stateless Server Statistics: sl:sent_replies = 524 sl:sent_err_replies = 0 sl:received_ACKs = 0 UsrLoc Stats: usrloc:registered_users = 2 usrloc:location-users = 2 usrloc:location-contacts = 2 usrloc:location-expires = 0 With the Opensips Control Panel Module USER - I can register phones (X-Lite), add, remove - USER Management o Can see all user, with the options All User o When search the Online USER and put the boton Search , don't look any register - System o CDRViewer § don't look any register o Dialog § don't look any calls in progress - MySql o The user opensips work well with the default password o We can see the user in ./subscriber/username o Table in Opensips § +--+ § | Tables_in_opensips | § +--+ § | acc | § | active_watchers | § | address | § | aliases | § | carrierfailureroute | § | carrierroute | § | cdrs | § | cpl | § | dbaliases| § | dialog | § | dialplan | § | dispatcher | § | domain | § | domainpolicy | § | dr_gateways | § | dr_groups| § | dr_gw_lists | § | dr_rules | § | globalblacklist | § | grp | § | gw | § | imc_members | § | imc_rooms| § | lcr | § | load_balancer| § | location | § | missed_calls | § | monitored_stats | § | monitoring_stats | § | nh_sockets | § | ocp_admin_privileges | § | pdt | § | presentity | § | pua | § | re_grp | § | rls_presentity | § | rls_watchers | § | route_tree | § | silo | § | sip_trace| § | speed_dial | § | subscriber | § | uri | § | userblacklist| § | usr_preferences | § | version | § | watchers | § | xcap | § +--+ § 48 rows in set (0.00 sec) ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Opensips Control Panel - User
Hi This is my current setup In the attachment can you see the setup. This module are working # - usrloc params - /* uncomment the following lines if you want to enable DB persistency for location entries */ modparam(usrloc, db_mode, 2) modparam(usrloc, db_url, mysql://opensips:opensip...@localhost/opensips) _ The module dialog don't work loadmodule tm.so loadmodule rr.so # - dialog params - #modparam(dialog, enable_stats, 1) #modparam(dialog, dlg_flag, 4) #modparam(dialog, db_mode, 1) #modparam(dialog, db_url, #mysql://opensips:opensip...@localhost/opensips) _ Thanks -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Friday, April 16, 2010 5:29 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Opensips Control Panel - User Hi Erick, Erick Chinchilla Berrocal wrote: Alex I explain the situation with more detail. But dont is working the opensips control-panel With the opensips I can register phones (X-Lite), make calls, add, remove with the application opensipsctl opensipsctl monitor [cycle #: 4; if constant make sure server lives] Server:: OpenSIPS (1.6.2-notls (i386/linux)) Now:: Thu Apr 15 09:35:01 2010 Up since:: Thu Apr 15 09:21:31 2010 Up time:: 810 [sec] Transaction Statistics: tm:UAS_transactions = 3 tm:UAC_transactions = 0 tm:inuse_transactions = 0 Stateless Server Statistics: sl:sent_replies = 524 sl:sent_err_replies = 0 sl:received_ACKs = 0 UsrLoc Stats: usrloc:registered_users = 2 usrloc:location-users = 2 usrloc:location-contacts = 2 usrloc:location-expires = 0 With the Opensips Control Panel Module USER - I can register phones (X-Lite), add, remove - USER Management o Can see all user, with the options All User o When search the Online USER and put the boton Search , don't look any register What db_mode are you using for USRLOC module (http://www.opensips.org/html/docs/modules/1.6.x/usrloc.html#id271279) - if USRLOC does not write the registrations in DB, the CP will not see them. - System o CDRViewer § don't look any register Have you properly installed the cdr mysql procedure to generate CDRS ? also, do you have any ACC data (in acc table) - maybe you are not doing acc in your opensips script. o Dialog § don't look any calls in progress have you loaded and triggered the dialog module - http://www.opensips.org/html/docs/modules/1.6.x/dialog.html#id226120 Regards, Bogdan - MySql o The user opensips work well with the default password o We can see the user in ./subscriber/username __ Information from ESET NOD32 Antivirus, version of virus signature database 3997 (20090409) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Bogdan-Andrei Iancu www.voice-system.ro ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users __ Information from ESET NOD32 Antivirus, version of virus signature database 3997 (20090409) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 3997 (20090409) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com opensips.cfg Description: Binary data ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Opensips Control Panel - Statistics Monitor - Statistics Charts
Alex I can fix this issue Thanks for your help I made the following change according your recommendation chown www-data:www-data /var/www/opensips-cp/web/tools/system/smonitor/generated -R /var/www/opensips-cp/web/tools/system/smonitor/generated# ls -al total 32 drwxr-xr-x 2 www-data www-data 4096 2010-04-15 08:40 . drwxr-xr-x 7 root root 4096 2010-03-08 12:54 .. -rw-r--r-- 1 www-data www-data 5664 2010-04-15 08:40 core:bad_msg_hdr.png -rw-r--r-- 1 www-data www-data 5700 2010-04-15 08:40 core:bad_URIs_rcvd.png -rw-r--r-- 1 www-data www-data 5312 2010-04-15 08:40 core:drop_replies.png Thanks Erick Ch. From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Alex Ionescu Sent: Thursday, April 15, 2010 3:01 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Opensips Control Panel - Statistics Monitor - Statistics Charts Hi Erick, I think I have a solution for you problem. You need to give apache/httpd write permissions on the folder ../opensips-cp/web/tools/system/smonitor/generated This is because apache is trying to create a png file in that folder. Let me know if you succeeded. Regards, Alex On 4/14/2010 22:46, Erick Chinchilla Berrocal wrote: agepng($this-img, $fileName); /var/www/opensips-cp/web/tools/system/smonitor/lib/libchart/classes/view/plo t# vim Plot.php please let me know what is the procedure for fix the problem Thanks -- Alex Ionescu www.voice-system.ro __ Information from ESET NOD32 Antivirus, version of virus signature database 3997 (20090409) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Opensips Control Panel - Statistics Monitor - Statistics Charts
FYI I have the following problem with the Opensips-Control Panel With the module Static Monitor I can select the module to see the statics, for example Module:net and select waiting_udp y waiting_tcp or any other options. The problem is the select the Static Charts and need to see the statistics Select any options for example core:bad_msg_hdr and get the following message Warning: imagepng() [function.imagepng]: Unable to open 'generated/core:bad_msg_hdr.png' for writing: Permission denied in /var/www/opensips-cp/web/tools/system/smonitor/lib/libchart/classes/view/plo t/Plot.php on line 256 Line chart The line 256 says imagepng($this-img, $fileName); /var/www/opensips-cp/web/tools/system/smonitor/lib/libchart/classes/view/plo t# vim Plot.php please let me know what is the procedure for fix the problem Thanks Erick Ch. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSISP 1.6.2 / Control Panel 1.4 - Installation problems
Alex I will installing the OpenSIPS Control Panel 4.0 (date 03-24-2010) Can you explain me with more detail the procedure for SMONITOR and CDR modules With this version don't need run the patch (opensips-cp_4.0.patch) Thanks Erick Ch. From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Alex Ionescu Sent: Wednesday, March 24, 2010 5:35 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] OpenSISP 1.6.2 / Control Panel 1.4 - Installation problems Hi, There has been made a fix for the add user issue. There were some non-existent fields in the insert query. Please download latest version and it should work. For the Smonitor : - you must add in the crontab the php script get_opensips_stats.php (you'll find it in the folder CRON_JOB). - also, do not forget to edit the paths in the script above (you'll see that there is a path to the smonitor module that you have to change); - for the CDR module - there is also a script for that (can also be found in CRON_JOB - and this script calls a stored procedure) - if you carefully read the INSTALL file you'll find explanations there. Regards, Alex On 3/23/2010 23:44, Christian Vo wrote: doesn't generate any info -- Alex Ionescu www.voice-system.ro __ Information from ESET NOD32 Antivirus, version of virus signature database 3997 (20090409) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] opensips updates
FYI Before, I read about the link to update the opensips ,add the information in the file /etc/apt/sources.list If can send me the correct link. I remember about this o similar. deb http://opensips.org/ lenny/updates main Thanks Erick Ch. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] OpenSISP 1.6.2 / Control Panel 1.4 - Installation problems
This is the history I installed Opensips Version 1.6.2 (2010-03-11) w/ Control Panel 4.0 (2010-03-18) . We used the default user and password for access the MYSQL We can register phone with opesipsctl , opensips running ok The audio is only in one way In the Control Panel Access with the login and password admin is ok Modules - Admin - We can create and modify new users - User - I don't add new user, get the following message Warning: array_unshift() [function.array-unshift]: The first argument should be an array in /var/www/opensips-cp/web/tools/users/user_management/lib/functions.inc.php on line 231 But we can with the opensipsctl - Systems 1-CDRViewer = No search the calls 2- Monit - when select the options Process - Opensips get the messages Warning: require_once(../../../../config/tools/monit/local.inc.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/opensips-cp/web/tools/system/monit/monit_proxyfy.php on line 26 Fatal error: require_once() [function.require]: Failed opening required '../../../../config/tools/monit/local.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/opensips-cp/web/tools/system/monit/monit_proxyfy.php on line 26 3 - Statics Monitor - Select in the modules for see the statistics, but when select the options Statics Chart don't see any information. ##Log Information Mar 23 13:49:45 erick-server /sbin/opensips[2910]: ERROR:mi_fifo:mi_fifo_server: command ds_list is not available Mar 23 13:49:45 erick-server /sbin/opensips[2910]: ERROR:mi_fifo:mi_fifo_server: command ds_reload is not available I tried but no idea how fix this problem Thanks Erick Ch. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSISP 1.6.2 / Control Panel 1.4 - Installation problems
Christian - For Smonitor o I tried with your recommendation , but only this work § // mi host:port pair || fifo_file § $boxes[$box_id]['mi']['conn']=127.0.0.1:8080; § $boxes[$box_id]['mi']['conn']=/tmp/opensips_fifo; - Config.cfg o Use your recommendation § § # - mi_fifo params - § modparam(mi_fifo, fifo_name, /tmp/opensips_fifo) § modparam ( mi_fifo, fifo_mode, 0666) - Add User o Module USER § USER Manager ( see the current users (example 1001,1002, 1003, etc.) · Add new o This is the error Fatal error: Call to undefined method MDB2_Error::execute() in /var/www/opensips-cp/web/tools/users/user_management/user_management.php on line 223 - CDR o This is the log information § Mar 23 15:34:58 net /sbin/opensips[2688]: new branch at sip:1...@192.168.50.50:42819;rinstance=725d381a0d15922f § Mar 23 15:34:58 net /sbin/opensips[2693]: incoming reply § Mar 23 15:35:04 net /sbin/opensips[2691]: incoming reply § Mar 23 15:35:46 net /sbin/opensips[2691]: new branch at sip:1...@192.168.50.50:40546;rinstance=d71a676a33fe5610 § Mar 23 15:35:46 net /sbin/opensips[2691]: incoming reply § Mar 23 15:35:47 net /sbin/opensips[2693]: incoming reply o But I'm looking this in the CDR Module and dont see any information. - Log Error o Mar 23 14:50:22 net /sbin/opensips[2699]: ERROR:mi_fifo:mi_fifo_server: command dlg_list is not available o Mar 23 14:50:23 net /sbin/opensips[2699]: ERROR:mi_fifo:mi_fifo_server: command dlg_list is not available o Mar 23 14:50:23 net /sbin/opensips[2699]: ERROR:mi_fifo:mi_fifo_server: command dlg_list is not available o Mar 23 14:50:26 net /sbin/opensips[2699]: ERROR:mi_fifo:mi_fifo_server: command dlg_list is not available o Mar 23 14:50:29 net /sbin/opensips[2699]: ERROR:mi_fifo:mi_fifo_server: command dlg_list is not available o Mar 23 14:51:39 net /sbin/opensips[2699]: ERROR:mi_fifo:mi_fifo_server: command ds_list is not available o Mar 23 14:51:39 net /sbin/opensips[2699]: ERROR:mi_fifo:mi_fifo_server: command ds_reload is not available o Mar 23 14:52:49 net /sbin/opensips[2699]: ERROR:mi_fifo:mi_fifo_server: command sip_trace is not available Thanks Erick Ch. From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Christian Vo Sent: Tuesday, March 23, 2010 3:17 PM To: 'OpenSIPS users mailling list' Subject: Re: [OpenSIPS-Users] OpenSISP 1.6.2 / Control Panel 1.4 - Installation problems I recently installed same as yourself, heres what I found: 1) For Smonitor Are you using $boxes[$box_id]['mi']['conn']=/tmp/opensips_fifo; For opensips-cp/config/ boxes.global.inc.php? If so, ake sure modparam(mi_fifo, fifo_name, /tmp/opensips_fifo) modparam(mi_fifo, fifo_mode, 0666) is set under your opensips.cfg file 2) For adding users- - theres a bug, they know the problem 3) Im not seeing CDRs neither, nor able to see any meaningful SIP traces I need to play with this a little further From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Erick Chinchilla Berrocal Sent: Tuesday, March 23, 2010 1:57 PM To: 'OpenSIPS users mailling list' Subject: [OpenSIPS-Users] OpenSISP 1.6.2 / Control Panel 1.4 - Installation problems This is the history I installed Opensips Version 1.6.2 (2010-03-11) w/ Control Panel 4.0 (2010-03-18) . We used the default user and password for access the MYSQL We can register phone with opesipsctl , opensips running ok The audio is only in one way In the Control Panel Access with the login and password admin is ok Modules - Admin - We can create and modify new users - User - I don't add new user, get the following message Warning: array_unshift() [function.array-unshift]: The first argument should be an array in /var/www/opensips-cp/web/tools/users/user_management/lib/functions.inc.php on line 231 But we can with the opensipsctl - Systems 1-CDRViewer = No search the calls 2- Monit - when select the options Process - Opensips get the messages Warning: require_once(../../../../config/tools/monit/local.inc.php) [function.require-once]: failed to open stream: No such file or directory in /var/www/opensips-cp/web/tools/system/monit/monit_proxyfy.php on line 26 Fatal error: require_once() [function.require]: Failed opening required '../../../../config/tools/monit/local.inc.php' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/opensips-cp/web/tools/system/monit/monit_proxyfy.php on line 26 3 - Statics Monitor - Select in the modules for see the statistics, but when select the options Statics Chart don't see any information. ##Log Information Mar 23 13:49:45 erick-server /sbin/opensips[2910]: ERROR:mi_fifo:mi_fifo_server: command ds_list is not available Mar 23 13:49:45 erick-server /sbin/opensips[2910
Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo
Bogdan I have good new This is the history 1- Install the patch cd /var/www tar -xvzf /path/to/opensips-cp.tgz cd opensips-cp patch -p1 /path/to/opensips-cp_4.0.patch 2- Re-configure the Control-Panel File 3- Access the control panel http://192.168.50.10/cp/ - Access is ok 4- Check each module - Only the module MI Commands = did't work, said /tmp/opensips_fifo - Check the link http://opensips-cp.sourceforge.net/index.php?req=documentation - and check the line in the file boxes.global.inc.php Before // mi host:port pair || fifo_file $boxes[$box_id]['mi']['conn']=/tmp/opensips_fifo; After // mi host:port pair || fifo_file $boxes[$box_id]['mi']['conn']=127.0.0.1:8080; -Checked again the Control Panel and don't report problems with the modules. 5- Now the next step is test the installation and connect other gateways. Please if you have any procedure for check the correct operation for the control panel , please let me know. I have confusion with the modules MI Commands and Statics Monitor, no reports problems but don't get information Reference http://opensips-cp.sourceforge.net/ Statistics Monitor Module (smonitor) ##Static Chart Failed to issue query, error message : MDB2 Error: syntax error Another things We use the same procedure with Opensips 1.6.2 and Control Panel 4.0, but the problem continues. See below. Thanks for your help Erick Ch. -Original Message- From: Erick Chinchilla Berrocal [mailto:er...@netcrc.net] Sent: Wednesday, March 17, 2010 10:39 AM To: 'OpenSIPS users mailling list' Subject: RE: [OpenSIPS-Users] Problem with /tmp/opensips_fifo Bogdan My comments I made the following changes (step by step) 1- Check the Opensips Status - # opensips -h version: opensips 1.6.1-notls (i386/linux) -# ps -ef | grep opensips netcrc4776 1 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4777 4776 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4778 4776 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4779 4776 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4780 4776 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4781 4776 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4782 4776 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4783 4776 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4784 4776 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4785 4776 0 Mar16 ?00:00:01 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4786 4776 0 Mar16 ?00:00:01 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4787 4776 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4788 4776 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4790 4776 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4793 4776 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4794 4776 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4798 4776 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4800 4776 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc netcrc4801 4776 0 Mar16 ?00:00:00 /sbin/opensips -P /var/run/opensips/opensips.pid -m 128 -u netcrc -g netcrc root 5533 5529 0 11:19 pts/000:00:00 grep opensips - # /etc/init.d/opensips status Status of opensips: opensips is running. -opensipsctl online database engine 'MYSQL' loaded Control engine 'FIFO' loaded 1001 -# opensips -c Listening on udp: 127.0.0.1 [127.0.0.1]:5060 udp: 192.168.50.10 [192.168.50.10]:5060 tcp: 127.0.0.1 [127.0.0.1]:5060 tcp:192.168.50.20 [192.168.50.10]:5060 Aliases: tcp: net:5060 tcp: net.dominio.com:5060 tcp: localhost:5060 udp: net:5060 udp: net.dominio.com:5060 udp: localhost:5060 Mar 17 11:21:33 [5567] NOTICE:core:main: config file ok, exiting... - # monit
Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo
: Permission denied in /var/www/opensips-cp/web/common/mi_comm.php on line 91 Array ( [0] = sorry -- cannot open write fifo ) -Domian = OK -Dymanic Routing = OK -Load Balancer= ok -MI Commands = /tmp/opensips_fifo Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed to open stream: Permission denied in /var/www/opensips-cp/web/common/mi_comm.php on line 91 sorry -- cannot open write fifo -Monit= ok -Nathelper= ok -Permissions = OK -Prefix 2 Domain = OK -SIP trace = Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed to open stream: Permission denied in /var/www/opensips-cp/web/common/mi_comm.php on line 91 Array ( [0] = sorry -- cannot open write fifo ) -Statistics Monitor = Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed to open stream: Permission denied in /var/www/opensips-cp/web/common/mi_comm.php on line 91 sorry -- cannot open write fifo 6- Enable the following modules in opensips.cfg - loadmodule dialog.so - loadmodule drouting.so #--- dialog - modparam(dialog, db_url, mysql://opensips:opensip...@localhost/opensips) modparam(dialog, dlg_flag, 4) #--- drouting modparam(drouting, db_url, mysql://opensips:opensip...@localhost/opensips) 7- Log Mar 17 11:07:23 erick-server /sbin/opensips[4331]: INFO:xlog:mod_init: initializing... Mar 17 11:07:23 erick-server /sbin/opensips[4331]: INFO:acc:mod_init: initializing... Mar 17 11:07:23 erick-server /sbin/opensips[4331]: INFO:dialog:mod_init: Dialog module - initializing Mar 17 11:07:23 erick-server /sbin/opensips[4331]: INFO:drouting:dr_init: Dynamic-Routing - initializing Mar 17 11:07:23 erick-server /sbin/opensips[4331]: INFO:auth:mod_init: initializing... Mar 17 11:07:23 erick-server /sbin/opensips[4331]: INFO:auth_db:mod_init: initializing... Mar 17 11:07:23 erick-server /sbin/opensips[4331]: INFO:alias_db:mod_init: initializing... Mar 17 11:07:23 erick-server /sbin/opensips[4331]: INFO:core:probe_max_receive_buffer: using a UDP receive buffer of 218 kb Mar 17 11:07:23 erick-server /sbin/opensips[4331]: INFO:core:probe_max_receive_buffer: using a UDP receive buffer of 218 kb Mar 17 11:07:23 erick-server /sbin/opensips[4332]: WARNING:drouting:dr_load_routing_info: table dr_gateways empty Mar 17 11:07:23 erick-server /sbin/opensips[4332]: WARNING:drouting:dr_load_routing_info: no valid destinations set - ignoring the routing rules Mar 17 12:11:54 erick-server /sbin/opensips[4339]: new branch at sip:1...@192.168.50.211:47966;rinstance=4c55623c92dd123b Mar 17 12:11:54 erick-server /sbin/opensips[4338]: incoming reply Mar 17 12:11:57 erick-server /sbin/opensips[4339]: incoming reply (END) Bodgan in two installations I have the similar problem , I don't have any idea , can you check the step by step are the correct o let me know what is my problem. Thanks Erick Ch. -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Tuesday, March 16, 2010 11:16 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo yes, re-install OpenSIPS-CP either from SVN, either from tarballs. See download section on http://opensips-cp.sourceforge.net/ Regards, Bogdan Erick Chinchilla Berrocal wrote: Alex Can you send me the procedure. Only re-install? In my information have the following: http://opensips-cp.sourceforge.net/ Book Building Telephony Systems with OpenSIPS 1.6, / Chapter 6 / pages 128. Use the Opensips 1.6.1 and Control Panel 4.0 Thanks Erick Ch. -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Alex Ionescu Sent: Tuesday, March 16, 2010 9:19 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo Hi Erik, I have fixed the bug. If you want you can update your CP version and everything will work fine. Regards, Alex On 3/16/2010 00:05, erik pepermans wrote: some variables are empty in the function write2fifo_new in module web/common/mi_comm.php : -- Bogdan-Andrei Iancu www.voice-system.ro ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users __ Information from ESET NOD32 Antivirus, version of virus signature database 3997 (20090409) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 3997 (20090409
Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo
Alex Can you send me the procedure. Only re-install? In my information have the following: http://opensips-cp.sourceforge.net/ Book Building Telephony Systems with OpenSIPS 1.6, / Chapter 6 / pages 128. Use the Opensips 1.6.1 and Control Panel 4.0 Thanks Erick Ch. -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Alex Ionescu Sent: Tuesday, March 16, 2010 9:19 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo Hi Erik, I have fixed the bug. If you want you can update your CP version and everything will work fine. Regards, Alex On 3/16/2010 00:05, erik pepermans wrote: some variables are empty in the function write2fifo_new in module web/common/mi_comm.php : -- Alex Ionescu www.voice-system.ro ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users __ Information from ESET NOD32 Antivirus, version of virus signature database 3997 (20090409) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 3997 (20090409) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo
Hi Bogdan The problem continues I have these modules ## /lib/opensips/modules# ls aaa_radius.so call_control.so diversion.so load_balancer.so options.sorr.so textops.so acc.socfgutils.so domainpolicy.so localcache.so path.so seas.sotm.so alias_db.so closeddial.sodomain.somangler.sopdt.so signaling.so uac_redirect.so auth_aaa.so db_flatstore.so drouting.so maxfwd.so peering.sosiptrace.souac.so auth_db.sodb_mysql.so enum.so mediaproxy.so permissions.sosl.so uri.so auth_diameter.so db_text.so exec.so mi_datagram.so pike.so sms.so userblacklist.so auth.so db_virtual.sogflags.somi_fifo.so presence_xcapdiff.so speeddial.so usrloc.so avpops.so dialog.sogroup.so msilo.so qos.so sst.so xlog.so b2b_entities.so dialplan.so imc.so nathelper.so ratelimit.so statistics.so benchmark.so dispatcher.solcr.so nat_traversal.so registrar.so stun.so ## /etc/opensips/opensips.cfg /* uncomment next line for MySQL DB support */ loadmodule db_mysql.so loadmodule signaling.so loadmodule sl.so loadmodule tm.so loadmodule rr.so loadmodule maxfwd.so loadmodule usrloc.so loadmodule registrar.so loadmodule textops.so modparam(dialog, db_mode, 1) loadmodule mi_fifo.so loadmodule uri.so loadmodule xlog.so loadmodule acc.so loadmodule dialog.so #--- dialog - modparam(dialog, db_url, mysql://(username):(password)@localhost/opensips) modparam(dialog, dlg_flag, 4) Reference: http://www.opensips.org/Resources/PuaDialoinfoConfig I tried with this options and get the same problem # DIALOG # loadmodule dialog.so modparam(dialog, enable_stats, 1) modparam(dialog, default_timeout, 21600) modparam(dialog, db_url, mysql://opensips:opens...@database/opensips) modparam(dialog, db_mode, 1) modparam(dialog, dlg_flag, 4) Reference http://gventure.wordpress.com/2009/03/30/opensips-installation/ ## opensips -c Listening on udp: 127.0.0.1 [127.0.0.1]:5060 udp: 192.168.50.10 [192.168.50.10]:5060 tcp: 127.0.0.1 [127.0.0.1]:5060 tcp: 192.168.50.10 [192.168.50.10]:5060 Aliases: tcp: net:5060 tcp: server.dominio.com:5060 tcp: localhost:5060 udp: server:5060 udp: server.dominio.com:5060 udp: localhost:5060 Mar 15 13:06:03 [3014] NOTICE:core:main: config file ok, exit ## # opensipsctl online database engine 'MYSQL' loaded Control engine 'FIFO' loaded 1001 ## In the control panel Module Diallog = Array ( [0] = sorry -- reply fifo opening error ) Any ideas Thanks Erick -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Monday, March 15, 2010 3:47 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo Hi Erick, For the failing tools, do you have the corresponding opensips modules loaded ? Like, for Dialog tool, do you have the dialog module loaded ? Regards, Bogdan Erick Chinchilla Berrocal wrote: Bodgan I made the following change in the file etc/monit/monitrc The manual said insert the line check process opensips with pidfile /var/run/opensips.pid and i changed to check process opensips with pidfile /var/run/opensips/opensips.pid with this change in the control panel the module MONIT is working well with this change in the control panel the module MONIT is working well now the problem continues with the following modules, please let me know if you have idea, I read the manual for several times and no - CDRViever = ok - Dialog = Array ( [0] = sorry -- reply fifo opening error ) - DialPlan = ok - Dispatcher = Array ( [0] = sorry -- reply fifo opening error [1] = sorry -- reply fifo opening error ) - Domain = ok - Dymanic Routing = ok - Load Balancer = ok - MI Comands = /tmp/opensips_fifo - Monit = ok - Nathelper = ok - Permissions = ok - Prefix 2 Domain = ok - SIP Trace = Array ( [0] = sorry -- reply fifo opening error ) - Static Monitor = sorry -- reply fifo opening error I understand the important for the files db.inc.php and boxes.global.inc.php , my current setup is the example in the book charpter 6, page 132. the only difference is the password, the primary name server This is the log Mar 12 17:44:42 net /sbin/opensips[2922]: ERROR:mi_fifo:mi_fifo_server: cannot open reply pipe (null) Mar 12 18:04:22 net /sbin/opensips[2922]: ERROR:mi_fifo:mi_fifo_server: command dlg_list is not available Mar 12 18:04:22 net /sbin/opensips[2922]: ERROR:mi_fifo:mi_fifo_server: cannot open reply pipe (null) Mar 12 18:04:32 net /sbin/opensips[2922
Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo
Sorry, this is the error /var/log/opensips.log 13:09:06 net /sbin/opensips[2940]: ERROR:mi_fifo:mi_fifo_server: cannot open reply pipe (null) (END) -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Monday, March 15, 2010 11:50 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo Erick, For the CP error: ## In the control panel Module Diallog = Array ( [0] = sorry -- reply fifo opening error ) what is the corresponding error in opensips logs ? Regards, Bogdan Erick Chinchilla Berrocal wrote: Hi Bogdan The problem continues I have these modules ## /lib/opensips/modules# ls aaa_radius.so call_control.so diversion.so load_balancer.so options.sorr.so textops.so acc.socfgutils.so domainpolicy.so localcache.so path.so seas.sotm.so alias_db.so closeddial.sodomain.somangler.so pdt.so signaling.so uac_redirect.so auth_aaa.so db_flatstore.so drouting.so maxfwd.so peering.sosiptrace.souac.so auth_db.sodb_mysql.so enum.so mediaproxy.so permissions.sosl.so uri.so auth_diameter.so db_text.so exec.so mi_datagram.so pike.so sms.so userblacklist.so auth.so db_virtual.sogflags.somi_fifo.so presence_xcapdiff.so speeddial.so usrloc.so avpops.so dialog.sogroup.so msilo.so qos.so sst.so xlog.so b2b_entities.so dialplan.so imc.so nathelper.so ratelimit.so statistics.so benchmark.so dispatcher.solcr.so nat_traversal.so registrar.so stun.so ## /etc/opensips/opensips.cfg /* uncomment next line for MySQL DB support */ loadmodule db_mysql.so loadmodule signaling.so loadmodule sl.so loadmodule tm.so loadmodule rr.so loadmodule maxfwd.so loadmodule usrloc.so loadmodule registrar.so loadmodule textops.so modparam(dialog, db_mode, 1) loadmodule mi_fifo.so loadmodule uri.so loadmodule xlog.so loadmodule acc.so loadmodule dialog.so #--- dialog - modparam(dialog, db_url, mysql://(username):(password)@localhost/opensips) modparam(dialog, dlg_flag, 4) Reference: http://www.opensips.org/Resources/PuaDialoinfoConfig I tried with this options and get the same problem # DIALOG # loadmodule dialog.so modparam(dialog, enable_stats, 1) modparam(dialog, default_timeout, 21600) modparam(dialog, db_url, mysql://opensips:opens...@database/opensips) modparam(dialog, db_mode, 1) modparam(dialog, dlg_flag, 4) Reference http://gventure.wordpress.com/2009/03/30/opensips-installation/ ## opensips -c Listening on udp: 127.0.0.1 [127.0.0.1]:5060 udp: 192.168.50.10 [192.168.50.10]:5060 tcp: 127.0.0.1 [127.0.0.1]:5060 tcp: 192.168.50.10 [192.168.50.10]:5060 Aliases: tcp: net:5060 tcp: server.dominio.com:5060 tcp: localhost:5060 udp: server:5060 udp: server.dominio.com:5060 udp: localhost:5060 Mar 15 13:06:03 [3014] NOTICE:core:main: config file ok, exit ## # opensipsctl online database engine 'MYSQL' loaded Control engine 'FIFO' loaded 1001 ## In the control panel Module Diallog = Array ( [0] = sorry -- reply fifo opening error ) Any ideas Thanks Erick -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Monday, March 15, 2010 3:47 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo Hi Erick, For the failing tools, do you have the corresponding opensips modules loaded ? Like, for Dialog tool, do you have the dialog module loaded ? Regards, Bogdan Erick Chinchilla Berrocal wrote: Bodgan I made the following change in the file etc/monit/monitrc The manual said insert the line check process opensips with pidfile /var/run/opensips.pid and i changed to check process opensips with pidfile /var/run/opensips/opensips.pid with this change in the control panel the module MONIT is working well with this change in the control panel the module MONIT is working well now the problem continues with the following modules, please let me know if you have idea, I read the manual for several times and no - CDRViever = ok - Dialog = Array ( [0] = sorry -- reply fifo opening error ) - DialPlan = ok - Dispatcher = Array ( [0] = sorry -- reply fifo opening error [1] = sorry -- reply fifo opening error ) - Domain = ok - Dymanic Routing = ok - Load Balancer = ok - MI Comands = /tmp/opensips_fifo - Monit = ok - Nathelper = ok
Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo
(rr, append_fromtag, 0) # - registrar params - /* uncomment the next line not to allow more than 10 contacts per AOR */ #modparam(registrar, max_contacts, 10) # - usrloc params - modparam(usrloc, db_mode, 0) /* uncomment the following lines if you want to enable DB persistency for location entries */ modparam(usrloc, db_mode, 2) modparam(usrloc, db_url, mysql://opensips:(mysqlpassword)@localhost/opensips) Another things This is my first time with this application, but I like. Can you help with the SerMyAdmin , I do not understand the setup in the step 2 (pag.136) /usr/local/apache-tomcat-6.0.16/webapps/serMyAdmin/WEB-INF/spring/resource.x ml I can look the web page, but the user and password don't work username: ad...@setup password: secret username: ad...@sermyadmin.org password: secret Can you send me a example please. This is the default configuration ?xml version=1.0 encoding=UTF-8? beans xmlns=http://www.springframework.org/schema/beans; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd; bean id=smtpAuthenticator class=SmtpAuthenticator constructor-arg value=em...@sermyadmin.org / constructor-arg value=password / /bean bean id=mailSession class=javax.mail.Session factory- method=getInstance constructor-arg props prop key=mail.smtp.authtrue/prop prop key=mail.smtp.socketFactory.port465/prop prop key=mail.smtp.socketFactory.class javax.net.ssl.SSLSocketFactory /prop prop key=mail.smtp.socketFactory.fallbackfalse/prop /props /constructor-arg constructor-arg ref=smtpAuthenticator / /bean bean id=mailSender class=org.springframework.mail.javamail.JavaMailSenderImpl property name=host value=smtp.gmail.com / property name=session ref=mailSession / /bean bean id=mailMessage class=org.springframework.mail.SimpleMailMessage property name=from value=em...@sermyadmin.org / /bean /beans I know my questions can be a bit silly, but I read a lot of the manual, I've also installed several times the server and not where I'm making mistakes. I am also doing a translation of the manual installation (summary) in Spanish, maybe you can serve others people. Thanks for your help Erick Ch. -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Friday, March 12, 2010 6:19 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo Hi Erick, er...@netcrc.net wrote: I have with the following problem: The file /tmp/opensips_fifo for any reason disappears for example if send the command for reboot the server. The opensips using mi_fifo module. With the command opensips -c said is ok opensipsctl moni said (if not find the file) ERROR: Error opening OpenSIPS's FIFO /tmp/opensips_fifo ERROR: Make sure you have the line 'modparam(mi_fifo, fifo_name, /tmp/opensips_fifo)' in your config ERROR: and also have loaded the mi_fifo module. But for fix this problem I made the following touch /tmp/opensips_fifo chmod 755 /tmp/opensips_fifo DO NOT DO THAT!! the fifo file must be created by opensips daemon - if you do not have it , it means: - opensips is not running - mi_fifo module is not loaded - the fifo_name (in opensips.cfg) is configured to a different name than /tmp/opensips_fifo this is temporary but it works. Another things is with the Control Panel 4.0 I have problems with the following modules and this is the message of each -Dialog = Array ( [0] = Cannot connect to OpenSIPS Server via Management Interface (/tmp/opensips_fifo) ) - Dispatcher = Array ( [0] = Cannot connect to OpenSIPS Server via Management Interface (/tmp/opensips_fifo) [1] = Cannot connect to OpenSIPS Server via Management Interface (/tmp/opensips_fifo) ) - MI Commands = /tmp/opensips_fifo - Monit = Process - Opensips / Status - Execution failed - SIP Trace = Array ( [0] = Cannot connect to OpenSIPS Server via Management Interface (/tmp/opensips_fifo) ) - Statistics Monitor = Cannot connect to OpenSIPS Server via Management Interface (/tmp/opensips_fifo) The common problem is /tmp/opensips_fifo yes, because you created a bogus file which does not provide communication with opensips :) Regards, Bogdan Thanks Erick ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Bogdan-Andrei Iancu www.voice-system.ro ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo
Bogan More info, according remember, before you install the Control Panel 4.0 , The OpenSIPS 1.6.1 worked well, phone register and tests. But not for now does not work. I reviewed the manual step by step and find nothing different from what the manual says opensipsctl restart database engine 'MYSQL' loaded Control engine 'FIFO' loaded INFO: Restarting OpenSIPS : ERROR: No PID file found (/var/run/opensips.pid)! OpenSIPS probably not running INFO: Starting OpenSIPS : ERROR: PID file /var/run/opensips.pid does not exist -- OpenSIPS start failed -Original Message- From: Erick Chinchilla Berrocal [mailto:er...@netcrc.net] Sent: Friday, March 12, 2010 7:43 AM To: 'OpenSIPS users mailling list' Subject: RE: [OpenSIPS-Users] Problem with /tmp/opensips_fifo Hi Bogan The problem continuos My comments I use Opensips 1.6.1 with Control Panel 4.0 - Opensisps Status # /etc/init.d/opensips status Status of opensips: opensips is not running. # /etc/init.d/opensips start Starting opensips: opensipsListening on udp: 127.0.0.1 [127.0.0.1]:5060 udp: x.x.x.x [x.x.x.x]:5060 tcp: 127.0.0.1 [127.0.0.1]:5060 tcp: x.x.x.x [x.x.x.x]:5060 Aliases: tcp: abc:5060 tcp: abc.domian.net:5060 tcp: localhost:5060 udp: net:5060 udp: abc.domain.net:5060 udp: localhost:5060 #/etc/init.d/opensips status Status of opensips: opensips is not running. PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/sbin/opensips NAME=opensips DESC=opensips HOMEDIR=/var/run/opensips PIDFILE=$HOMEDIR/$NAME.pid DEFAULTS=/etc/default/opensips RUN_OPENSIPS=yes - mi_fifo module /lib/opensips/modules# ls aaa_radius.so call_control.so diversion.so load_balancer.so options.sorr.so textops.so acc.socfgutils.so domainpolicy.so localcache.so path.so seas.sotm.so alias_db.so closeddial.sodomain.somangler.sopdt.so signaling.so uac_redirect.so auth_aaa.so db_flatstore.so drouting.so maxfwd.so peering.sosiptrace.souac.so auth_db.sodb_mysql.so enum.so mediaproxy.so permissions.sosl.so uri.so auth_diameter.so db_text.so exec.so mi_datagram.so pike.so sms.so userblacklist.so auth.so db_virtual.sogflags.somi_fifo.so presence_xcapdiff.so speeddial.so usrloc.so avpops.so dialog.sogroup.so msilo.so qos.so sst.so xlog.so b2b_entities.so dialplan.so imc.so nathelper.so ratelimit.so statistics.so benchmark.so dispatcher.solcr.so nat_traversal.so registrar.so stun.so - the fifo_name (in opensips.cfg) is configured to a different name than /tmp/opensips_fifo This is the same in the book (Building Telepfohne System qith OpenSIPS 1.6), Chart 5 Full script with all the resources above pag.119 to 124 - /etc/opensips/opensips.cfg (my current setup) fork=yes children = 4 #total number of UDP SIP worker processes per interface tcp_children=6 #total number of TCP SIP worker processes in total disable_tcp=no #disable_tls=no ### Modules Section #set module path mpath=//lib/opensips/modules/ /* uncomment next line for MySQL DB support */ loadmodule db_mysql.so loadmodule signaling.so loadmodule sl.so loadmodule tm.so loadmodule rr.so loadmodule maxfwd.so loadmodule usrloc.so loadmodule registrar.so loadmodule textops.so loadmodule mi_fifo.so loadmodule uri.so loadmodule xlog.so loadmodule acc.so /* uncomment next lines for MySQL based authentication support NOTE: a DB (like db_mysql) module must be also loaded */ loadmodule auth.so loadmodule auth_db.so /* uncomment next line for aliases support NOTE: a DB (like db_mysql) module must be also loaded */ loadmodule alias_db.so /* uncomment next line for multi-domain support NOTE: a DB (like db_mysql) module must be also loaded NOTE: be sure and enable multi-domain support in all used modules (see multi-module params section ) */ loadmodule domain.so
Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo
+)+\\/string\/',$xml,$matches); for ($j=0;$jcount($matches[0]);$j++){ $temp = substr($matches[0][$j],8); $str = $str.substr($temp,0,-9); } } else { preg_match_all('/\string\.*\\/string\/',$xml,$matches); $temp = substr($matches[0][0],8); $errors[] = ERROR: .substr($temp,0,-9); } return $str ; } function mi_command($command,$errors,$status){ global $comm_type ; global $xmlrpc_host ; global $xmlrpc_port ; global $fifo_file ; $config-reply_fifo_filename=webfifo_.rand(); $config-reply_fifo_path=/tmp/.$config-reply_fifo_filename; $buf=; if (strtolower($comm_type)==fifo){ $buf=write2fifo_new($command, $errors, $status); } if (strtolower($comm_type)==xmlrpc){ $buf=write2xmlrpc($command,$errors,$status); } return $buf ; } ? (END) -Original Message- From: Erick Chinchilla Berrocal [mailto:er...@netcrc.net] Sent: Friday, March 12, 2010 9:22 AM To: 'OpenSIPS users mailling list' Subject: RE: [OpenSIPS-Users] Problem with /tmp/opensips_fifo Bogan More info, according remember, before you install the Control Panel 4.0 , The OpenSIPS 1.6.1 worked well, phone register and tests. But not for now does not work. I reviewed the manual step by step and find nothing different from what the manual says opensipsctl restart database engine 'MYSQL' loaded Control engine 'FIFO' loaded INFO: Restarting OpenSIPS : ERROR: No PID file found (/var/run/opensips.pid)! OpenSIPS probably not running INFO: Starting OpenSIPS : ERROR: PID file /var/run/opensips.pid does not exist -- OpenSIPS start failed -Original Message- From: Erick Chinchilla Berrocal [mailto:er...@netcrc.net] Sent: Friday, March 12, 2010 7:43 AM To: 'OpenSIPS users mailling list' Subject: RE: [OpenSIPS-Users] Problem with /tmp/opensips_fifo Hi Bogan The problem continuos My comments I use Opensips 1.6.1 with Control Panel 4.0 - Opensisps Status # /etc/init.d/opensips status Status of opensips: opensips is not running. # /etc/init.d/opensips start Starting opensips: opensipsListening on udp: 127.0.0.1 [127.0.0.1]:5060 udp: x.x.x.x [x.x.x.x]:5060 tcp: 127.0.0.1 [127.0.0.1]:5060 tcp: x.x.x.x [x.x.x.x]:5060 Aliases: tcp: abc:5060 tcp: abc.domian.net:5060 tcp: localhost:5060 udp: net:5060 udp: abc.domain.net:5060 udp: localhost:5060 #/etc/init.d/opensips status Status of opensips: opensips is not running. PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/sbin/opensips NAME=opensips DESC=opensips HOMEDIR=/var/run/opensips PIDFILE=$HOMEDIR/$NAME.pid DEFAULTS=/etc/default/opensips RUN_OPENSIPS=yes - mi_fifo module /lib/opensips/modules# ls aaa_radius.so call_control.so diversion.so load_balancer.so options.sorr.so textops.so acc.socfgutils.so domainpolicy.so localcache.so path.so seas.sotm.so alias_db.so closeddial.sodomain.somangler.sopdt.so signaling.so uac_redirect.so auth_aaa.so db_flatstore.so drouting.so maxfwd.so peering.sosiptrace.souac.so auth_db.sodb_mysql.so enum.so mediaproxy.so permissions.sosl.so uri.so auth_diameter.so db_text.so exec.so mi_datagram.so pike.so sms.so userblacklist.so auth.so db_virtual.sogflags.somi_fifo.so presence_xcapdiff.so speeddial.so usrloc.so avpops.so dialog.sogroup.so msilo.so qos.so sst.so xlog.so b2b_entities.so dialplan.so imc.so nathelper.so ratelimit.so statistics.so benchmark.so dispatcher.solcr.so nat_traversal.so registrar.so stun.so - the fifo_name (in opensips.cfg) is configured to a different name than /tmp/opensips_fifo This is the same in the book (Building Telepfohne System qith OpenSIPS 1.6), Chart 5 Full script with all the resources above pag.119 to 124 - /etc/opensips/opensips.cfg (my current setup) fork=yes children = 4 #total number of UDP SIP worker processes per interface tcp_children=6 #total number of TCP SIP worker processes in total disable_tcp=no #disable_tls=no ### Modules Section #set module path mpath=//lib/opensips/modules/ /* uncomment next line for MySQL DB support */ loadmodule db_mysql.so loadmodule signaling.so loadmodule sl.so loadmodule tm.so loadmodule rr.so
Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo
) 2008 Voice Sistem SRL * * This file is part of opensips-cp, a free Web Control Panel Application for * OpenSIPS SIP server. * * opensips-cp is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * opensips-cp is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* 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; (default user and password) $boxes[$box_id]['monit']['has_ssl']=0; // description (appears in mi , monit ) $boxes[$box_id]['desc']=190.x.x.x; (IP address) $boxes[$box_id]['assoc_id']=1; // enable local smonitor charts on this box : 0=disabled 1=enabled // (cron) $boxes[$box_id]['smonitor']['charts']=1; /*-- - $box_id=1; // mi host:port pair || fifo_file $boxes[$box_id]['mi']['conn']=192.168.0.2:8080; // monit host:port $boxes[$box_id]['monit']['conn']=192.168.0.2:2812; $boxes[$box_id]['monit']['user']=admin; $boxes[$box_id]['monit']['pass']=pass; $boxes[$box_id]['monit']['has_ssl']=1; // description (appears in mi , monit ) $boxes[$box_id]['desc']=Presence server; $boxes[$box_id]['assoc_id']=2; // enable local smonitor charts on this box : 0=disabled 1=enabled // (cron) $boxes[$box_id]['smonitor']['charts']=1; */ /* DEFINITION OF SYSTEMS */ // each system is a set of servers with the same // functionality on the platform (like sets of // SIP servers, sets of Load-Balancers, sets of // Presence agents, etc) $_system_id=0; $systems[$_system_id]['name']=SIP Servers; $systems[$_system_id]['desc']=OpenSIPS SIP server cluster; //boxes with this assoc_id are assigned to this system $systems[$_system_id]['assoc_id']=1; // 1= sip proxies pair , 2 = databases , 3 = media servers , etc.. $systems[$_system_id]['system_type_id']=1; /*-- - $_system_id=1; $systems[$_system_id]['name']=Presence Servers; $systems[$_system_id]['desc']=OpenSIPS Presence server cluster; //boxes with this assoc_id are assigned to this system $systems[$_system_id]['assoc_id']=2; // 1= sip proxies pair , 2 = databases , 3 = media servers , etc.. $systems[$_system_id]['system_type_id']=5; */ ? (END) Thanks Erick Ch. -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Friday, March 12, 2010 11:55 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo Erick, as probably you run opensips as user root, the fifo file is owned by root, so opensips-cp (run by apache, with user apache/www-data) has no permission to write into the fifo. A simple solution will be to grant larger permissions to the fifo file (in opensips.cfg): modparam(mi_fifo, fifo_mode, 0666) http://www.opensips.org/html/docs/modules/1.6.x/mi_fifo.html#id227261 you need to restart opensips! Regards, Bogdan Erick Chinchilla Berrocal wrote: Now the problem with the Control Panel 4.0 continues This is the situation with each module -Dialog= Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed to open stream: Permission denied in /var/www/opensips- cp/web/common/mi_comm.php on line 147 Array ( [0] = sorry -- cannot open write fifo ) -Dispatcher = Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed to open stream: Permission denied in /var/www/opensips-cp/web/common/mi_comm.php on line 147 Array ( [0] = sorry -- cannot open write fifo ) Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed to open stream: Permission denied in /var/www/opensips- cp/web/common/mi_comm.php on line 147 Array ( [0] = sorry -- cannot open write fifo [1] = sorry -- cannot open write fifo ) -MI Commands = /tmp/opensips_fifo Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed to open stream: Permission denied in /var/www/opensips-cp/web/common/mi_comm.php on line 147 -Monit = Process - opensips Status - Execution Failed
Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo
is a set of servers with the same // functionality on the platform (like sets of // SIP servers, sets of Load-Balancers, sets of // Presence agents, etc) $_system_id=0; $systems[$_system_id]['name']=SIP Servers; $systems[$_system_id]['desc']=OpenSIPS SIP server cluster; //boxes with this assoc_id are assigned to this system $systems[$_system_id]['assoc_id']=1; // 1= sip proxies pair , 2 = databases , 3 = media servers , etc.. $systems[$_system_id]['system_type_id']=1; /* --- $_system_id=1; $systems[$_system_id]['name']=Presence Servers; $systems[$_system_id]['desc']=OpenSIPS Presence server cluster; //boxes with this assoc_id are assigned to this system $systems[$_system_id]['assoc_id']=2; // 1= sip proxies pair , 2 = databases , 3 = media servers , etc.. $systems[$_system_id]['system_type_id']=5; */ ? (END) Thanks Erick Ch. -Original Message- From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu Sent: Friday, March 12, 2010 11:55 AM To: OpenSIPS users mailling list Subject: Re: [OpenSIPS-Users] Problem with /tmp/opensips_fifo Erick, as probably you run opensips as user root, the fifo file is owned by root, so opensips-cp (run by apache, with user apache/www-data) has no permission to write into the fifo. A simple solution will be to grant larger permissions to the fifo file (in opensips.cfg): modparam(mi_fifo, fifo_mode, 0666) http://www.opensips.org/html/docs/modules/1.6.x/mi_fifo.html#id227261 you need to restart opensips! Regards, Bogdan Erick Chinchilla Berrocal wrote: Now the problem with the Control Panel 4.0 continues This is the situation with each module -Dialog= Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed to open stream: Permission denied in /var/www/opensips- cp/web/common/mi_comm.php on line 147 Array ( [0] = sorry -- cannot open write fifo ) -Dispatcher = Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed to open stream: Permission denied in /var/www/opensips-cp/web/common/mi_comm.php on line 147 Array ( [0] = sorry -- cannot open write fifo ) Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed to open stream: Permission denied in /var/www/opensips- cp/web/common/mi_comm.php on line 147 Array ( [0] = sorry -- cannot open write fifo [1] = sorry -- cannot open write fifo ) -MI Commands = /tmp/opensips_fifo Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed to open stream: Permission denied in /var/www/opensips-cp/web/common/mi_comm.php on line 147 -Monit = Process - opensips Status - Execution Failed -SIP Trace = Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed to open stream: Permission denied in /var/www/opensips-cp/web/common/mi_comm.php on line 147 Array ( [0] = sorry -- cannot open write fifo ) -Statics Monitor = Warning: fopen(/tmp/opensips_fifo) [function.fopen]: failed to open stream: Permission denied in /var/www/opensips-cp/web/common/mi_comm.php on line 147 sorry -- cannot open write fifo -- Bogdan-Andrei Iancu www.voice-system.ro ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users __ Information from ESET NOD32 Antivirus, version of virus signature database 3997 (20090409) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __ Information from ESET NOD32 Antivirus, version of virus signature database 3997 (20090409) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Problem with OpenSIPS Control Panel 4.0
Thanks for your help, It's working, I will continue testing. Regards Erick Ch. Hi, Had the same problem, change $config-admin_passwd_mode=1; to $config-admin_passwd_mode=0; in opensips-cp/config/globals.php and it worked. I dont know is this is the right way. regards On Thu, Mar 11, 2010 at 2:29 AM, er...@netcrc.net wrote: I have the following problem With install OpenSIPS 1.6 and Control Panel 4.0. When try the access the Control Panel didn't accept the user o password (Invalid Username / Password) With the commands opensips-c, monit-t said that the configuration files are fine. I can register phone. The question is how do I know the password to the web interface, try to file db.inc.php, boxes.global.inc.php, or if I have to change something in the database The reference for the installation of the control panel are Book OpenSIPS 1.6 and the link http://opensips-cp.sourceforge.net/ , but both have differences This is my first time with OpenSIPS I appreciate the help Thanks Erick Ch. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- TC ___ 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
[OpenSIPS-Users] Problem with /tmp/opensips_fifo
I have with the following problem: The file /tmp/opensips_fifo for any reason disappears for example if send the command for reboot the server. The opensips using mi_fifo module. With the command opensips -c said is ok opensipsctl moni said (if not find the file) ERROR: Error opening OpenSIPS's FIFO /tmp/opensips_fifo ERROR: Make sure you have the line 'modparam(mi_fifo, fifo_name, /tmp/opensips_fifo)' in your config ERROR: and also have loaded the mi_fifo module. But for fix this problem I made the following touch /tmp/opensips_fifo chmod 755 /tmp/opensips_fifo this is temporary but it works. Another things is with the Control Panel 4.0 I have problems with the following modules and this is the message of each -Dialog = Array ( [0] = Cannot connect to OpenSIPS Server via Management Interface (/tmp/opensips_fifo) ) - Dispatcher = Array ( [0] = Cannot connect to OpenSIPS Server via Management Interface (/tmp/opensips_fifo) [1] = Cannot connect to OpenSIPS Server via Management Interface (/tmp/opensips_fifo) ) - MI Commands = /tmp/opensips_fifo - Monit = Process - Opensips / Status - Execution failed - SIP Trace = Array ( [0] = Cannot connect to OpenSIPS Server via Management Interface (/tmp/opensips_fifo) ) - Statistics Monitor = Cannot connect to OpenSIPS Server via Management Interface (/tmp/opensips_fifo) The common problem is /tmp/opensips_fifo Thanks Erick ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Problem with OpenSIPS Control Panel 4.0
I have the following problem With install OpenSIPS 1.6 and Control Panel 4.0. When try the access the Control Panel didn't accept the user o password (Invalid Username / Password) With the commands opensips-c, monit-t said that the configuration files are fine. I can register phone. The question is how do I know the password to the web interface, try to file db.inc.php, boxes.global.inc.php, or if I have to change something in the database The reference for the installation of the control panel are Book OpenSIPS 1.6 and the link http://opensips-cp.sourceforge.net/ , but both have differences This is my first time with OpenSIPS I appreciate the help Thanks Erick Ch. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Problem with OpenSIPS Control Panel 4.0
I have the following problem With install OpenSIPS 1.6 and Control Panel 4.0. When try the access the Control Panel didn't accept the user o password (Invalid Username / Password) With the commands opensips-c, monit-t said that the configuration files are fine. I can register phone. The question is how do I know the password to the web interface, try to file db.inc.php, boxes.global.inc.php, or if I have to change something in the database The reference for the installation of the control panel are Book OpenSIPS 1.6 and the link http://opensips-cp.sourceforge.net/ , but both have differences This is my first time with OpenSIPS I appreciate the help Thanks Erick Ch. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users