Re: [OpenSIPS-Users] OpenSIPS Control Panel 6.1
Hi Bill, Sorry for my late answer, I was on holiday. If you can attach a patch I can take a look over it and if it is good for the project I can submit the code. Regards, Alex On 14.08.2015 10:32, Bill Shirley wrote: Sorry Alex; I didn't mean to rile you. Remember I DID say I was grateful for all the work that has gone into free software development. That includes OpenSIPS CP. There are a few places where assumptions are made about the PHP configuration: 1) not all shops allow the shortcut code it http://php.net/manual/en/ini.core.php#ini.short-open-tag 2) not all shops run with "display_errors = Off"; there are a lot of uninitialized variables Set these in your php.ini and then run the CP: short_open_tag = Off display_errors = On No, it's not hard for me to give a helping hand. I have been editing the code extensively and would like to share my changes. Any suggestions on how to do this? Bill On 8/10/2015 1:35 AM, Alex Ionescu wrote: Hi, There are many using CP 6.1 with success. It may not be the best piece of software in the world but it does its job. You say it's full of security holes and exposed to sql injection. I invite you to try making some sql injections and come back here with the proof. Also, there are lots of security holes everywhere. If you think you've spotted some big ones in CP please point them out so we can fix them. That's the whole idea with open source software and the user community, right ? It's easy to point fingers but hard to give a helping hand, right ? Regards, Alex Ionescu On August 10, 2015 4:47:25 AM Bill Shirley <b...@philly.polymerindustries.biz> wrote: Is anyone running the 6.1 CP? It's full of bugs and security holes. Whoever thought it wise to code: extract($_POST); Also, the input stored in the database is not sanitized plus a whole lot more errors. https://xkcd.com/327/ We had a 'professional' company write a web portal for us that didn't sanitize their input. I actually did do a "'; DROP TABLE `customer`;" on the database. I even emailed them before hand pointing out the problem. I don't want to sound harsh or ungrateful. I run a lot of free software that enables me to earn a living. I'm thankful for all the people that labored to produce the software. I'm also guessing that CP 6.1 not meant to be run with the Fedora 22 version of OpenSIPS: [0:root@jabba lib]$ rpm -q php httpd opensips php-5.5.20-2.fc19.x86_64 httpd-2.4.9-1.fc19.x86_64 opensips-1.10.1-1.fc19.x86_64 I'm trying to set up a SIP proxy to route calls from my network to Cisco CUCM on another network. Any pointers are appreciated. Bill ___ Users mailing list Users@lists.opensips.org <mailto:Users%40lists.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
Re: [OpenSIPS-Users] OpenSIPS Control Panel 6.1
Hi, There are many using CP 6.1 with success. It may not be the best piece of software in the world but it does its job. You say it's full of security holes and exposed to sql injection. I invite you to try making some sql injections and come back here with the proof. Also, there are lots of security holes everywhere. If you think you've spotted some big ones in CP please point them out so we can fix them. That's the whole idea with open source software and the user community, right ? It's easy to point fingers but hard to give a helping hand, right ? Regards, Alex Ionescu On August 10, 2015 4:47:25 AM Bill Shirley b...@philly.polymerindustries.biz wrote: Is anyone running the 6.1 CP? It's full of bugs and security holes. Whoever thought it wise to code: extract($_POST); Also, the input stored in the database is not sanitized plus a whole lot more errors. https://xkcd.com/327/ We had a 'professional' company write a web portal for us that didn't sanitize their input. I actually did do a '; DROP TABLE `customer`; on the database. I even emailed them before hand pointing out the problem. I don't want to sound harsh or ungrateful. I run a lot of free software that enables me to earn a living. I'm thankful for all the people that labored to produce the software. I'm also guessing that CP 6.1 not meant to be run with the Fedora 22 version of OpenSIPS: [0:root@jabba lib]$ rpm -q php httpd opensips php-5.5.20-2.fc19.x86_64 httpd-2.4.9-1.fc19.x86_64 opensips-1.10.1-1.fc19.x86_64 I'm trying to set up a SIP proxy to route calls from my network to Cisco CUCM on another network. Any pointers are appreciated. Bill -- ___ 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
Re: [OpenSIPS-Users] OpenSIPS-CP + SQLite. Possible?
Hi, Actually it should be very possible. OpenSIPS-CP uses Pear MDB2 database abstraction layer. So all you need to do is installing Pear MDB2 SQLite driver. (https://pear.php.net/package/MDB2_Driver_sqlite) and adjust the (config/db.inc.php) accordingly ($config-db_driver = sqllite;) The guys from Pear say that MDB2 currently supported database backends are: fbsql - FrontBase ibase - InterBase / Firebird (requires PHP 5) mssql - Microsoft SQL Server (NOT for Sybase. Compile PHP --with-mssql) mysql - MySQL mysqli - MySQL (supports new authentication protocol) (requires PHP 5) oci8 - Oracle 7/8/9/10 pgsql - PostgreSQL querysim - QuerySim sqlite - SQLite 2 I haven't tested this but if you do it just let us know how it went. Hope this helps you. Best regards, Alex On 20.07.2015 23:10, Rodrigo Pimenta Carvalho wrote: Hi. Just to confirm: Nowadays it is not possible to use OpenSIPS Control Panel and SQLite, is it? Regards. RODRIGO PIMENTA CARVALHO Inatel Competence Center Software Ph: +55 35 3471 9200 RAMAL 979(Brasil) ___ 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
Re: [OpenSIPS-Users] [opensips] [control panel]: change of admin password irgnores by cp - and strange error messages
Hi, Why don't you try changing the password using the interface (Admin - List Admins - Edit Info). For the MI tool you need to configure the proper path to your fifo file - I guess the default one is not the good one. For the callcenter module you need to deploy the necessary DB tables but if you don't need that module you can always disable that module (or any module) in CP by editing /var/www/opensips-cp/config/modules.inc.php file - you will find out it is very intuitive. If you have any other questions please let me know. Regards, Alex On 01/15/2015 11:12 AM, Markus Klaus Schäffauer wrote: Hello, when I change the admin password (in the database), this is ignored completely by the control panel. But I cannot work seriously with a openly known password... so why my control panel is ignoring that in the database I made a password change? And another thing: In the control panel, section system, I get (for example) the following errors: Dialog: Array ( [0] = Cannot connect to OpenSIPS Server via Management Interface (/tmp/opensips_proxy_fifo) ) Callcenter: Failed to issue query, error message : MDB2 Error: no such table[select id,agentid,location,logstate,skills from cc_agents where 1 = 1 order by id LIMIT 5 OFFSET 0] There seem to be still some errors, although I am able to register clients correctly. Sounds really strange. Regards, Markus ___ 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
Re: [OpenSIPS-Users] [opensips_cp]: It works! EUREKA!
Hi Markus, I am glad to hear that you got it working. - opensipsctlrc is not related to OpenSIPS CP in any way (I mean changing things there will not affect OpenSIPS CP in any way) - regarding the firewall (iptables): sure, you can protect OpenSIPS, usually you need to open the firewall port 5060 (both inbound and outbound for everybody or just for your trusted peers); Regards, Alex Ionescu On 01/13/2015 06:42 PM, Markus Klaus Schäffauer wrote: Hi all, thanks to your help, the opsensips control panel is working now - so far as I can see! What was the problem? I still do not know it. I followed the recomendation and echoed the values of $dns - there everything was correct. Then I changed the name of the opensips database to ___opensips as recomended, too. The error message was the same. So I gave up until a few minutes ago, when I simply changed the name back to opensips for trying another thing. Only for curiosity I wanted to see wether I could login or not. I couldn't in the first attempt, but got a wrong password message. And when I repeated the login with the right password admin, voilà, the menu is there and I succeded finally to login. What was the matter? No idea. May be I had written wrong the name of the database? But in the script of opensipsctlrc I can verify that there is correctly indicated DBNAME=opensips... So I still have no idea, what was going wrong, but I adored your help! And it helped me to get the thing working. One last question: Do I have to open a particular firewall-port (I am using IPTABLES) and do speciall stuff for securing opensips? Thanks a lot to you all! Regards, Markus Am 13.01.2015 um 11:07 schrieb Alex Ionescu: Hi, One last thought. If you use localhost as hostname try replacing it with 127.0.0.1 and creating the appropriate user for mysql. It might be just a DNS problem. Regards, Alex On 01/13/2015 10:33 AM, Markus Klaus Schäffauer wrote: Hello, I changed the name of the database opensips to ___opensips. The message I got after trying to login is still the same: Error while connecting : MDB2 Error: connect failed Isn't this substantiating my suspicion that the MDB2-driver is wrong? Regards, Markus ___ 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 ___ 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
Re: [OpenSIPS-Users] [opensips_cp]: Blank Page after Login ERROR-messages POSDATA
Hi Markus, I know that this may sound awkward but, are you sure your database credentials are correct? It is not actually saying that the connection failed, it just said that you've got no access. Print all the $dsn variable used to connect - it is above the code you have inserted yesterday. Check it to be correct. Please try using a different mysql server, on another machine. The only thing you need in order to login is the ocp_admin_privileges table, so no need to deploy all OpenSIPS DB just for testing this. I am guessing that you have a redhad based operating system, and pretty often the Pear mdb2 mysql driver installs differently. But that doesn't seem to be your issue. If you say selinux is not blocking your connection to the DB (by the way, have you checked that?). If you have a Debian based operating system please try to see if apparmor is not blocking your connection to the DB. Also, check your local firewall (iptables rules). Do a ngrep trage on the mysql listening port and see if it is being reached by OCP. Eventually if none of these works you could try deploying CP on a different operating system ? Best regards, Alex Ionescu On 01/13/2015 10:33 AM, Markus Klaus Schäffauer wrote: Hello, I changed the name of the database opensips to ___opensips. The message I got after trying to login is still the same: Error while connecting : MDB2 Error: connect failed Isn't this substantiating my suspicion that the MDB2-driver is wrong? Regards, Markus ___ 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
Re: [OpenSIPS-Users] [opensips_cp]: Blank Page after Login ERROR-messages POSDATA
Hi, One last thought. If you use localhost as hostname try replacing it with 127.0.0.1 and creating the appropriate user for mysql. It might be just a DNS problem. Regards, Alex On 01/13/2015 10:33 AM, Markus Klaus Schäffauer wrote: Hello, I changed the name of the database opensips to ___opensips. The message I got after trying to login is still the same: Error while connecting : MDB2 Error: connect failed Isn't this substantiating my suspicion that the MDB2-driver is wrong? Regards, Markus ___ 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
Re: [OpenSIPS-Users] [opensips_cp]: Blank Page after Login ERROR-messages
Hi Markus, Please paste here the content of the file /var/www/opensips-cp/config/db.inc.php Also paste the output of the command pear list From my experience, 99% of the times that error is generated because of the wrong credentials. But it might be something different this time. Regards, Alex Ionescu On 01/12/2015 11:52 AM, Markus Klaus Schäffauer wrote: Hello, thank you for your feedback Bogdan-Andrei! This is what I get in /var/log/apache2/error.log when trying to access the web-interface: [Mon Jan 12 10:26:08 2015] [error] [client xx.xx.xx.xx] PHP Warning: Creating default object from empty value in /var/www/opensips-cp/config/db.inc.php on line 25, referer: http://domain.de/opensips-cp/web/ [Mon Jan 12 10:26:08 2015] [error] [client xx.xx.xx.xx] PHP Fatal error: Call to undefined method MDB2_Error::setFetchMode() in /var/www/opensips-cp/web/db_connect.php on line 31, referer: http://domain.de/opensips-cp/web/ In lin 25 of db.in.php you will find the declaration of the database-driver = mysql - the following error-message (undefined method) seems to depend on this, too. So may it be possible that the missing pear/MDB2#mysql driver is the problem? I managed to install this driver via pear (not the usual way: pear install pear/MDB2#mysql, but that way: pear install MDB2_Driver_mysql), although originally I thougt that it was already served by php-mdb2-driver-mysql. No way, there is only showing up the blank page. The password of the db.inc.php is without relevance (changing it, will not alter the appearance of the blank page, only when putting the mysql-root-password, then I get an message that login was wrong. Somebody can tell me how to get the correct pear/MDB2#mysql? Thanks a lot, Markus PD: Strange behaviour... and it is not very helpfull that in the db.inc.php the database user must be root (and not opensips) - then it should be called correctly the database root user as in opensipsctrl too! ___ 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
Re: [OpenSIPS-Users] [opensips_cp]: Blank Page after Login
Hi Markus, You DB config and pear modules look just fine. I've just made some tests. I try to make a mistake in my DB config and I get this: Warning: Creating default object from empty value in /home/alex/_work/opensips_cp_full/opensips-cp-code/branches/6.0/config/db.inc.php on line 25 Fatal error: Call to undefined method MDB2_Error::setFetchMode() in /home/alex/_work/opensips_cp_full/opensips-cp-code/branches/6.0/web/db_connect.php on line 31 Try to editing the file : /var/www/opensips-cp/web/db_connect.php and make it look like this : ?php require_once(../config/db.inc.php); require_once(MDB2.php); global $config; $dsn = $config-db_driver.'://' . $config-db_user.':'.$config-db_pass . '@' . $config-db_host . '/'. $config-db_name.''; $link = MDB2::connect($dsn); if(PEAR::isError($link)) { die(Error while connecting : . $link-getMessage()); } $link-setFetchMode(MDB2_FETCHMODE_ASSOC); if(PEAR::isError($link)) { die(Error while connecting : . $link-getMessage()); } ? This will give you some extra information why the connection is not working. If you do not get any relevant information, for example I have altered the DB name on purpose and I get Error while connecting : MDB2 Error: no such database, please try checking for selinux policy. Just do a setenforce 0 as root and check again if you still experience the issue. If you don't then it's selinux. I hope this will solve your problem. Regards, Alex Ionescu I just made some tests. If I do a On 01/12/2015 02:11 PM, Markus Klaus Schäffauer wrote: Hello, this is the relevant part of my /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 = opensipsrw; //database name $config-db_name = opensips; if (!empty($config-db_port) ) $config-db_host = $config-db_host . : . $config-db_port; ? And this is what pear list is listing: Installed packages, channel pear.php.net: = Package Version State Archive_Tar 1.3.12 stable Auth 1.6.2 stable Auth_SASL 1.0.4 stable Console_Getopt1.3.1 stable HTTP_Request2 2.1.1 stable Log 1.12.8 stable MDB2 2.5.0b5 beta MDB2_Driver_mysql 1.5.0b4 beta Mail 1.2.0 stable Mail_Mime 1.8.4 stable Mail_mimeDecode 1.5.5 stable Net_LDAP2 2.0.9 stable Net_SMTP 1.6.1 stable Net_Socket1.0.9 stable Net_URL 1.0.15 stable Net_URL2 2.0.0 stable PEAR 1.9.5 stable Structures_Graph 1.0.4 stable XML_Util 1.2.3 stable Is that MDB2_Driver_mysql wrong here? As I told before, I am not able to get pear/MDB2#mysql: pear install MDB2#mysql Skipping package pear/MDB2, already installed as version 2.5.0b5 No valid packages found install failed I have no idea why pear does not find any valid packages of MDB2#mysql. With kind regards, Markus ___ 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
Re: [OpenSIPS-Users] OpenSIPS 1.11.1 and Control Panel 5 - php warning notice being logged
Hi, You should try using OpenSIPS CP 6.0 with OpenSIPS 1.11. Anyway, that NOTICE is just a notice, not a warning or error. You can just ignore it. Best regards, Alex On 07/28/2014 07:33 PM, Gary Patton wrote: Good afternoon. I keep getting this PHP warning and notice every time my get_opensips_stats.php cron job runs: PHP Warning: Creating default object from empty value in /var/www/5.0/config/db.inc.php on line 25 PHP Notice: Undefined variable: arg_list in /var/www/5.0/web/common/mi_comm.php on line 79 = Here's the warning and a snippet from the file it points to: PHP Warning: Creating default object from empty value in /var/www/5.0/config/db.inc.php on line 25 [SNIP] 23 | 24 | //database driver mysql or pgsql 25 | $config-db_driver = mysql; 26 | [SNIP] I'm pretty sure that Line 25 is *not* an empty value. Plus, I'm pretty sure the driver is correct since I'm using MySQL on Debian 7.5, and I followed the instructions in INSTALL that came with the CP 5.0 source files. = Here's the notice and a snippet from the file it points to: PHP Notice: Undefined variable: arg_list in /var/www/5.0/web/common/mi_comm.php on line 79 [SNIP] 54 | 55 |if ($arg==){ 56 |/* no args */ 57 |/*if the command contains delimiter ':' , then return , or else bad things happen */ 58 | 59 | $found_delimiter=strpos($cmd,:); 60 |if ( $found_delimiter === false ) 61 |{ 62 |// mkay 63 |} 64 | 65 | else 66 | 67 | { 68 | $err=Bad command. character ':' not permited here.; 69 | $status=$err; 70 | return $err ; 71 | 72 | } 73 | 74 | $fifo_cmd=:.$cmd.:.$reply_fifo_filename.\n; 75 | 76 |} else { 77 |/* command with args */ 78 | foreach($command_args as $key=$val){ 79 | $arg_list.=$val.\n; 80 |} 81 | $fifo_cmd=:.$cmd.:.$reply_fifo_filename.\n.$arg_list; 82 | 83 | 84 |} 85 | [SNIP] I'm totally clueless on this notice. I don't even know where the arg_list variable is being declared or where the arg_list array is located. Do I need to fix it or can I safely ignore the notice? OpenSIPS seems to be working (I can make 1=to-1 and 1-to-many calls between softphone UACs within my network) despite the notice and warning. Can someone point me in the right direction on either of these? Thank you. Regards Gary ___ 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
Re: [OpenSIPS-Users] error after opensips installation
Hi, Most probably you do not have the necessary DB tables in your database. When you install CP you have to point it to an OpenSIPS Database. Please check if you have in your DB tables like : dialplan, domain, disapatcher etc. in your DB and if yes make sure OpenSIPS CP is able to view these tables. Check credentials in config/db.inc.php Best regards, Alex Ionescu On 06/30/2014 03:12 PM, Kaustav De wrote: Hi, We had installed opensips in our server. After installation, when I try to navigate the System section in the control panel, I get the following error: *Failed to issue query, error message: MDB2 Error: no such table* * * Any section under the system menu which I navigate I get this type of error messages. (Image attached) Can you please help me out with this problem ? -- Thanks and Regards, *Kaushtuv De* Project Manager * Navigators Software Pvt. Ltd. ** * 86A Topsia Road #205 Haute Street Kolkata -- 700 046 India Telephone: +91 (0) 33 40259595 Fax: +91 (0) 33 40019981 Website: www.navsoft.in http://www.navsoft.in/ www.boostmysale.com http://www.boostmysale.com/ - India's ONLY multi marketplace integrators An Emerge 50 product - NASSCOM MICROSOFT PARTNER Join Us@ http://www.facebook.com/navsoftin Join Us@ http://www.linkedin.com/companies/561740_ _Follow Us@ http://twitter.com/navsoftin ___ 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] OpenSIPS Control Panel v. 6.0 released
Hi all, OpenSIPS Control Panel version 6.0 has been released. This version is fully compatible with OpenSIPS Proxy 1.11.x and offers the user the ability to access via web some of the important new features in version 1.11. This new version includes the following important features / changes: - new Callcenter module - new TViewer module (much improved compared to the old one) - Dynamic routing module updated to fit OpenSIPS Proxy 1.11 - Dispatcher module updated to fit OpenSIPS Proxy 1.11 - Nathelper module is now called RTPProxy (improved and more compact) - support for MI DATAGRAM and HTTP JSON - various bug fixes - some CSS changes We encourage you to download it (tarball http://sourceforge.net/projects/opensips-cp/files/opensips-cp/6.0/opensips-cp_6.0.tgz/download), and share your opinions and suggestions with us. Best regards, Alex Ionescu ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Problem with Opensips CP
Dear Vishnu, I agree with Sam, you should go with version 5.0 on OpenSIPS-CP. It is better and more bug free than version 4.0 If you still encounter difficulties in installation please let me know, I will help you with the installation process. Regards, Alex Ionescu On 11/13/2013 12:07 AM, Sam Montour wrote: Why not install version 5.0? It is the latest I believe. I installed it with opensips 1.8 few weeks back and everything worked just fine. *From:*users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] *On Behalf Of *Vishnu Vardhan *Sent:* Tuesday, November 12, 2013 11:53 AM *To:* OpenSIPS users mailling list *Subject:* [OpenSIPS-Users] Problem with Opensips CP Hi , I installed opensips 1.8 with opensips cp 4.0 in centos 6.4.Opensips is installed and the service is running perfectly.After the installtion of opensips CP,i am trying to run that from my browser,the login page is coming with username and password after i entered that next blank page is coming nothing showing in that.Can you please suggest me whats the problem here,i structed here for a long time,i didn't get the solution to come out here,pls suggest me to get out of this problem. Regards, Vishnu ___ 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
Re: [OpenSIPS-Users] High CPS Media Solution
Hi Doc, What exactly do you mean when you say high CPS ? Give us some numbers and also explain a bit the way you have set up your scenario. If you can also attach your opensips config file, or at least part of it we would be able to tell if you are using OpenSIPS in the best way. Also, same for RTP Proxy, how do you start it ? Have you check it's logs, are you sure that OpenSIPS is the bottle neck and not the RTPProxy ? Because usually the media proxy is the bottle neck, not the signalling. So, give us some more information. Regards, Alex Ionescu On 11/02/2013 07:41 AM, capn crunch wrote: Has anyone in the community experimented with proxying media on high CPS type traffic? We have experimented with mediaproxy and rtp-proxy, but the dispatcher module on both is too slow to setup the media, and the opensips children eventually hang, effectively blocking traffic. Would be interested if anyone is performing such a task and what works for them. -- Sincerely, Doc Draper capncrunch...@gmail.com mailto:capncrunch...@gmail.com ___ 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
Re: [OpenSIPS-Users] Siremis with Opensips - possible ?
Hi, Can you please paste all your local.inc.php from the TViewer config folder ? It would be a lot easier for me to help. Best regards, Alex On 11/01/2013 10:52 AM, Ewgeny wrote: I have tried to add following lines in TViewer tool config: $config-custom_table = usr_preferences; $config-custom_table_columns = array (Id = id,UUID = uuid,Username = username,Domain = domain,Attribute = attribute,Type = type,Value = value); but I get the following errors:Failed to issue query, error message : MDB2 Error: syntax error in Apache error.log: [error] [client 10.10.25.30] PHP Notice: Undefined index: id in /var/www/openssip-cp/web/tools/system/tviewer/template/tviewer.main.php on line 50, referer: http://10.10.25.2/openssip-cp/web/menu.php [error] [client 10.10.25.30] PHP Notice: Undefined index: uuid in /var/www/openssip-cp/web/tools/system/tviewer/template/tviewer.main.php on line 50, referer: http://10.10.25.2/openssip-cp/web/menu.php [error] [client 10.10.25.30] PHP Notice: Undefined index: username in /var/www/openssip-cp/web/tools/system/tviewer/template/tviewer.main.php on line 50, referer: http://10.10.25.2/openssip-cp/web/menu.php [error] [client 10.10.25.30] PHP Notice: Undefined index: domain in /var/www/openssip-cp/web/tools/system/tviewer/template/tviewer.main.php on line 50, referer: http://10.10.25.2/openssip-cp/web/menu.php [error] [client 10.10.25.30] PHP Notice: Undefined index: attribute in /var/www/openssip-cp/web/tools/system/tviewer/template/tviewer.main.php on line 50, referer: http://10.10.25.2/openssip-cp/web/menu.php [error] [client 10.10.25.30] PHP Notice: Undefined index: type in /var/www/openssip-cp/web/tools/system/tviewer/template/tviewer.main.php on line 50, referer: http://10.10.25.2/openssip-cp/web/menu.php [error] [client 10.10.25.30] PHP Notice: Undefined index: value in /var/www/openssip-cp/web/tools/system/tviewer/template/tviewer.main.php on line 50, referer: http://10.10.25.2/openssip-cp/web/menu.php [error] [client 10.10.25.30] PHP Notice: Undefined property: stdClass::$custom_table_primary_key in /var/www/openssip-cp/web/tools/system/tviewer/template/tviewer.main.php on line 86, referer: http://10.10.25.2/openssip-cp/web/menu.php About online users, i have user authentication through RADIUS protocol, my users are not stored in the database. will it work? 30.10.2013 20:50, Bogdan-Andrei Iancu ?: Hi Ewgeny, Actually you can do both now in CP :). For usr_preferences, you can use the generic TViewer tool which can be cloned and mapped over any kind of table, overing possibility to add/edit/delete/search. It may be a better approach to have a preconfigured TViewer for usr_preferences table. In regards to online users, in the Users section, you can choose to see only the Online or Offline users. Also, for each user can see the registered contacts (if online). Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 10/30/2013 07:57 PM, Ewgeny wrote: I want to add the ability to control table usr_preferences - that means to view, add and remove values from usr_preferences table. Also i need to view in a convenient form registered SIP UACs (like 'ul_dump'), in Siremis this feature is very handy :) 30.10.2013 19:21, Bogdan-Andrei Iancu ?: Reporting bugs or lack of functionality may be a good start in doing the CP better - we are open and willing to do the coding. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 10/30/2013 03:18 PM, Mike Tesliuk wrote: Yep, This is a very good sugestion :) I like OpenSIPS-CP , on my instalation i see some errors that are not a problem for me but can be for other users, but we realy can make some contribuition to this project. Im not a development dedicated guy, but i know a a litle bit of a lot of things , this could be very nice 2013/10/30 Bogdan-Andrei Iancu bog...@opensips.org mailto:bog...@opensips.org Hello Ewgeny, Siremis is not designed for OpenSIPS and you may have huge compatibility issues - of course, if you want to dive into this, feel free :). Maybe a better approach (for you and for the rest of the community) is to identify things that should be improved in OpenSIPS Control Panel and let's make it better. Best regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 10/28/2013 04:11 PM, Ewgeny wrote: Hello! Is that possible to use Siremis WEB GUI http://siremis.asipto.com/2013/05/08/siremis-v4-0-0-released/ with Opensips ? Siremis has better features for SIP Database management then Opensips Control Panel, and lots of other feature that Opensip CP does'nt have. I tried to install version 3.2 in conjunction with Opensips, but it does not work well, a lot of errors. Maybe someone has
Re: [OpenSIPS-Users] opensisp , 2 RTP-proxy , IP based location , how to ?
Hi, You can follow the module's documentation. It is pretty simple. First thing install the external library necessary for this module: /libGeoIP/. Then load the module. Configure it's module parameters : modparam(mmgeoip, mmgeoip_city_db_path, /usr/share/GeoIP/GeoLiteCity.dat) You need to fetch this file (GeoLiteCity.dat) from here - just follow the indications :http://dev.maxmind.com/geoip/legacy/install/city/ http://dev.maxmind.com/geoip/legacy/install/city/ Then all you have to do, for each call, just see where is it coming from. ( in this example there is only the continent fetched - but you can fetch much more information - see the docs : http://www.opensips.org/html/docs/modules/devel/mmgeoip.html ) if(mmg_lookup(con,$si,$avp(continent))) { xlog(L_INFO,Source IP latitude:$(avp(continent))\n); }; Based on the result you get you can choose the appropriate RTP Proxy set to engage. Regards, Alex On 09/10/2013 03:24 PM, sipsip2 wrote: Hi , I found this module that can help in my case but i dont know how to use this info and tell to rtpproxy dispatcher use the media rtpproxy using info from mmgeoip ?? Any Advice ? -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/opensisp-2-RTP-proxy-IP-based-location-how-to-tp7587773p7587778.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ 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] OpenSIPS.org web site REFURBISH - FIRST PHASE - Completed
Hi all, We are happy to announce that we have re-organized the web site (www.opensips.org http://www.opensips.org) as grouping, menus etc. This is just the first step of a more complex process of refurbishing. We would like to ask you to report any broken links or other issues that you may found. Also, your suggestions and opinions are very much welcome. Best regards, Alex Ionescu ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] opensips virtual machine live
Hi Marco, Can you please tell me what are you trying to add ? Like give me an example so I can replicate your problem. Regards, Alex Ionescu On 04/22/2013 03:18 PM, Marco Grimandi wrote: Hi all, I downloaded the virtual machine version of opensips 1.7 and when I try to add some rules to the dialplan using the control panel I'm not able to save any regular expression. All the time the regular expression tab is empty. I looked at the error.log and this is the output: [Mon Apr 22 13:22:05 2013] [error] [client 192.168.89.155] PHP Notice: Undefined index: id in /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.add.php on line 1, referer: http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modifyid=12 [Mon Apr 22 13:22:05 2013] [error] [client 192.168.89.155] PHP Notice: Undefined variable: check_boxes in /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.add.php on line 53, referer: http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modifyid=12 [Mon Apr 22 13:22:05 2013] [error] [client 192.168.89.155] PHP Notice: Undefined variable: dpid in /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.add.php on line 91, referer: http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modifyid=12 [Mon Apr 22 13:22:05 2013] [error] [client 192.168.89.155] PHP Notice: Undefined variable: pr in /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.add.php on line 97, referer: http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modifyid=12 [Mon Apr 22 13:22:05 2013] [error] [client 192.168.89.155] PHP Notice: Undefined variable: match_exp in /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.add.php on line 109, referer: http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modifyid=12 [Mon Apr 22 13:22:05 2013] [error] [client 192.168.89.155] PHP Notice: Undefined variable: match_len in /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.add.php on line 115, referer: http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modifyid=12 [Mon Apr 22 13:22:05 2013] [error] [client 192.168.89.155] PHP Notice: Undefined variable: subst_exp in /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.add.php on line 121, referer: http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modifyid=12 [Mon Apr 22 13:22:05 2013] [error] [client 192.168.89.155] PHP Notice: Undefined variable: repl_exp in /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.add.php on line 127, referer: http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=modifyid=12 [Mon Apr 22 13:22:05 2013] [error] [client 192.168.89.155] File does not exist: /var/www/favicon.ico [Mon Apr 22 13:22:17 2013] [error] [client 192.168.89.155] PHP Warning: mysql_real_escape_string() expects parameter 2 to be resource, object given in /var/www/opensips-cp/web/tools/system/dialplan/dialplan.php on line 119, referer: http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=addclone=0 [Mon Apr 22 13:22:17 2013] [error] [client 192.168.89.155] PHP Notice: Undefined index: dialplan_id in /var/www/opensips-cp/web/tools/system/dialplan/template/dialplan.main.php on line 28, referer: http://192.168.89.230/cp/tools/system/dialplan/dialplan.php?action=addclone=0 [Mon Apr 22 13:22:17 2013] [error] [client 192.168.89.155] File does not exist: /var/www/favicon.ico Did someone find the same behavior? Please help me! Thank you Best regards Marco ___ 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
Re: [OpenSIPS-Users] Installation of OpenSIPS with Opensips Control Panel
Hi Madhusudhan, Why do you want to use such an old version of OpenSIPS CP when you can use the last one : 5.0 (instead of the 4years old 2.0 version - totally outdated) Here is the link: http://sourceforge.net/projects/opensips-cp/files/opensips-cp/5.0/ Install this and, if you experience any issues please let us know. In the opensips-cp folder you will find a file called INSTALL. It will guide you through the installation setup. For the XCAP config read more here: http://www.opensips.org/Resources/PresenceServer Best regards, Alex On 04/06/2013 04:47 AM, Madhusudhan A K wrote: Hello, I have installed Open SIPS and OpenSIPs Control Panel as per the video shown below (Opensips KickStart in Youtube and control panel in http://sourceforge.net/projects/opensips-cp/files/opensips-cp/2.0/) I am able to login into Opensips Control Page. After login into the page, I need to create new user (New Admin) in CDR Viewer. I have researched a lot on the internet but could not proceed further. Can anyone help me in getting video on how to install OpenSIPS Control Panel and XCAP server, so I can go through it accordingly. Thank you. Madhusudhan ___ 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
Re: [OpenSIPS-Users] OpenSIPS-CP RTPProxy (nathelper)
Hi Seth, I have done the necessary changes and committed on SVN trunk. Please do a fresh checkout from trunk. The changed files are: ../config/tools/system/nathelper/local.inc.php ../web/tool/system/nathelper/natall.php ../web/tool/system/nathelper/template/natall.main.php Check and let me know if it works now. Regards, Alex Ionescu On 03/07/2013 08:05 AM, Seth Schultz wrote: Hello, It appears after updating to the latest 1.9.0, my OpenSIPS Control Panel can no longer control RTPProxy nodes. I believe the mi commands were modified between 1.8.2 and 1.9.0, which caused the control panel to stop functioning properly. I am using the latest SVN revision for OpenSIPS-CP. Does anyone know if there are patches (or a developer build) which contains this functionality? Is this even the right place to be asking these questions? Thanks in advance, Seth ___ 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
Re: [OpenSIPS-Users] OpenSIPS-CP RTPProxy (nathelper)
Hi Seth, I will check today and update SVN if necessary. I will let you know when I am done. Thanks for letting us know. Regards, Alex Ionescu On March 7, 2013 8:05:50 AM Seth Schultz sschu...@scholarchip.com wrote: Hello, It appears after updating to the latest 1.9.0, my OpenSIPS Control Panel can no longer control RTPProxy nodes. I believe the mi commands were modified between 1.8.2 and 1.9.0, which caused the control panel to stop functioning properly. I am using the latest SVN revision for OpenSIPS-CP. Does anyone know if there are patches (or a developer build) which contains this functionality? Is this even the right place to be asking these questions? Thanks in advance, Seth ___ 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
Re: [OpenSIPS-Users] error in opensips-cp
Hi, It's simple. Just go into the opensips-cp folder and read the INSTALL document. There is a step by step easy to follow guide that will walk you through all the necessary configuration needed to make OpenSIPS CP work. If you experience any issues please reply back and explain (with details) what issue you are experiencing. Regards, Alex Ionescu On 01/25/2013 01:35 PM, ppbntl19 wrote: hwllo plz tell me hoe u fix dis problm...i got ssame error in my opensip server..pliz help me thanx -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/error-in-opensips-cp-tp5629113p7584143.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ 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
Re: [OpenSIPS-Users] error in opensips-cp
Hi, Currently there is no such thing as an API dedicated to user provisioning. You can use OpenSIPS-CP to add as many user as you like. There is also the command line way of doing it which is /opensipsctl /that you can use like this : /opensipsctl add al...@test.com 1234/ Regards, Alex Ionescu On 01/25/2013 02:53 PM, p prakash wrote: hey thanx for ur rply...i fix it.i have a another question is that how can we add a new user in opensip using php api call? On Fri, Jan 25, 2013 at 6:17 PM, Alex Ionescu a...@opensips.org mailto:a...@opensips.org wrote: Hi, It's simple. Just go into the opensips-cp folder and read the INSTALL document. There is a step by step easy to follow guide that will walk you through all the necessary configuration needed to make OpenSIPS CP work. If you experience any issues please reply back and explain (with details) what issue you are experiencing. Regards, Alex Ionescu On 01/25/2013 01:35 PM, ppbntl19 wrote: hwllo plz tell me hoe u fix dis problm...i got ssame error in my opensip server..pliz help me thanx -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/error-in-opensips-cp-tp5629113p7584143.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ Users mailing list Users@lists.opensips.org mailto:Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org mailto:Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users */ Thanks Regards, _Pooran Prakash _/ * * * * * ___ 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
Re: [OpenSIPS-Users] OpenSips Control Panel error
Hi, First thing on the list : selinux - lower a bit the security. Second thing: in your php.ini file (probably you'll find it somewhere in /etc/php ... ) you have to enable *short_open_tags* That's it for now. Try these things and come back if CP still doesn't work. Regards, Alex On 12/01/2012 04:17 PM, Mimi Cafe wrote: I configured opensips control panel on centos, and when I login, the page does not load completely. In Apache log, I can see that it throws out loads of php related error. Any ideas? [Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] PHP Notice: Undefined variable: resultset1 in /var/www/html/opensips-cp/web/login.php on line 80, referer: http://192.168.18.88/opensips-cp/web/ [Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] PHP Notice: Undefined variable: resultset1 in /var/www/html/opensips-cp/web/login.php on line 86, referer: http://192.168.18.88/opensips-cp/web/ [Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'GMT/0.0/no DST' instead in /var/www/html/opensips-cp/web/login.php on line 107, referer: http://192.168.18.88/opensips-cp/web/ [Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'GMT/0.0/no DST' instead in /var/www/html/opensips-cp/web/login.php on line 107, referer: http://192.168.18.88/opensips-cp/web/ [Wed Nov 28 20:56:15 2012] [error] [client 192.168.18.94] File does not exist: /var/www/html/opensips-cp/web/, referer: http://192.168.18.88/opensips-cp/web/main.php [Wed Nov 28 21:08:49 2012] [notice] caught SIGTERM, shutting down [Wed Nov 28 21:08:49 2012] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:httpd_t:s0 [Wed Nov 28 21:08:49 2012] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Wed Nov 28 21:08:49 2012] [notice] Digest: generating secret for digest authentication ... [Wed Nov 28 21:08:49 2012] [notice] Digest: done [Wed Nov 28 21:08:50 2012] [notice] Apache/2.2.15 (Unix) DAV/2 mod_nss/2.2.15 NSS/3.13.1.0 Basic ECC PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.0-fips SVN/1.6.11 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations [Wed Nov 28 21:09:01 2012] [error] [client 192.168.18.94] File does not exist: /var/www/html/opensips-cp/web/, referer: http://192.168.18.88/opensips-cp/web/main.php [Wed Nov 28 21:09:09 2012] [error] [client 192.168.18.94] PHP Parse error: syntax error, unexpected '}' in /var/www/html/opensips-cp/web/tools/admin/list_admins/template/list_admins.main.php on line 152, referer: http://192.168.18.88/opensips-cp/web/menu.php [Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice: Undefined index: acl_username in /var/www/html/opensips-cp/web/tools/users/acl_management/template/acl_management.main.php on line 28, referer: http://192.168.18.88/opensips-cp/web/menu.php [Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice: Undefined index: acl_domain in /var/www/html/opensips-cp/web/tools/users/acl_management/template/acl_management.main.php on line 29, referer: http://192.168.18.88/opensips-cp/web/menu.php [Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice: Undefined index: acl_grp in /var/www/html/opensips-cp/web/tools/users/acl_management/template/acl_management.main.php on line 30, referer: http://192.168.18.88/opensips-cp/web/menu.php [Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice: Undefined variable: options in /var/www/html/opensips-cp/web/tools/users/acl_management/lib/functions.inc.php on line 95, referer: http://192.168.18.88/opensips-cp/web/menu.php [Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice: Undefined variable: errors in /var/www/html/opensips-cp/web/tools/users/acl_management/acl_management.php on line 302, referer: http://192.168.18.88/opensips-cp/web/menu.php [Wed Nov 28 21:09:14 2012] [error] [client 192.168.18.94] PHP Notice: Undefined variable: errors in /var/www/html/opensips-cp/web/tools/users/acl_management/acl_management.php on line 302, referer: http://192.168.18.88/opensips-cp/web/menu.php [Wed Nov 28 21:09:22 2012] [error] [client 192.168.18.94] PHP Notice: Undefined index: username in /var/www/html/opensips-cp/web/tools/users/alias_management/template/alias_management.main.php on line 28, referer: http://192.168.18.88/opensips-cp/web/menu.php [Wed Nov 28 21:09:22
Re: [OpenSIPS-Users] how to forward SIP messages?
Hi, You can use this, basically taken from the default OpenSIPS script - at the end of the route check the rewritehostport : ### Routing Logic # main request routing logic route{ if (!mf_process_maxfwd_header(10)) { sl_send_reply(483,Too Many Hops); exit; } if (has_totag()) { # sequential request withing a dialog should # take the path determined by record-routing if (loose_route()) { if (is_method(INVITE)) { # even if in most of the cases is useless, do RR for # re-INVITEs alos, as some buggy clients do change route set # during the dialog. record_route(); } # route it out to whatever destination was set by loose_route() # in $du (destination URI). t_relay(); exit; } else { if ( is_method(ACK) ) { if ( t_check_trans() ) { # non loose-route, but stateful ACK; must be an ACK after # a 487 or e.g. 404 from upstream server t_relay(); exit; } else { # ACK without matching transaction - # ignore and discard exit; } } sl_send_reply(404,Not here); } exit; } # CANCEL processing if (is_method(CANCEL)) { if (t_check_trans()) t_relay(); exit; } t_check_trans(); if (!is_method(INVITE)) { sl_send_reply(500,Method not allowed); exit; } record_route(); rewritehostport(10.0.2.16:5060); t_relay(); exit; } On 11/22/2012 06:04 PM, Christian Cambier wrote: Hi. I'd like to use openSIPS proxy (10.0.4.34) for tracing but leave all SIP-handling to a PBX that is on the same network (10.0.2.16) I tried just forwarding the sip-messages on the proxy using forward(10.0.2.16:5060 http://10.0.2.16:5060/); but the UAC receives a Moved permanently How can this be achieved? thx Chris ___ 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
Re: [OpenSIPS-Users] Errors in OpenSIPS
Hi, Most probably not. OpenSIPS usually does updates/inserts on this table. Only if OpenSIPS is configured to restore it's dialogs from DB in case of restart then you might want to make a test just to be sure it won't complain. Regards, Alex Ionescu On 11/15/2012 01:20 PM, Jorge Ortea wrote: Hello, can someone said me if really modify dialog table and allow callee_contract field to be NULL on DB could break anything?? Thanks. Regards. Date: Tue, 13 Nov 2012 14:48:51 +0100 From: shaherya...@googlemail.com To: users@lists.opensips.org Subject: Re: [OpenSIPS-Users] Errors in OpenSIPS Its db schema problem. The field dialog.callee_contact is set as NOT NULL, while you are getting NULL contact from upstream (most likely in BYE from callee side, as some old PSTN gateways running at many termination providers do not add Contact header in BYE request). Please check SIP trace and confirm or attach that here for our review. For a workaround you can modify dialog table and allow callee_contract field to be NULL. However i am not sure if this won't break anything else. Thank you. On Mon, Nov 12, 2012 at 1:52 PM, Jorge Ortea dar...@hotmail.com mailto:dar...@hotmail.com wrote: Hello, I keep getting these errors. My opensips version is 1.6.4-2-tls and my mysql version is 5.1.34 Would it be better to change the version of opensips? What can mean Column 'callee_contact' cannot be null ?? Thanks. Regards. From: dar...@hotmail.com mailto:dar...@hotmail.com To: users@lists.opensips.org mailto:users@lists.opensips.org Date: Fri, 9 Nov 2012 08:30:03 +0100 Subject: Re: [OpenSIPS-Users] Errors in OpenSIPS Hello Vlad, You are right, I had searched for ERROR, but before each Error message I got this: Nov 5 10:24:19 hgt-tero45 /usr/local/opensips/sbin/opensips[12562]: CRITICAL:db_mysql:wrapper_single_mysql_stmt_execute: driver error (1048): Column 'callee_contact' cannot be null Nov 5 10:24:19 hgt-tero45 /usr/local/opensips/sbin/opensips[12562]: ERROR:dialog:update_dialog_dbinfo: could not add another dialog to db Why could this be happening? Thanks. Regards. Date: Thu, 8 Nov 2012 19:21:45 +0200 From: vladp...@opensips.org mailto:vladp...@opensips.org To: users@lists.opensips.org mailto:users@lists.opensips.org Subject: Re: [OpenSIPS-Users] Errors in OpenSIPS Hello Jorge, Do you see any other errors from the DB level in the OpenSIPS logs ? What DB backend are you using ? It seems that for some reason, the dialog DB inserts are failing, but more ERROR messages should appear in such a case from the db_mysql module.. Regards, Vlad Paiu OpenSIPS Developer http://www.opensips-solutions.com On 11/08/2012 07:10 PM, Ali Pey wrote: I think it's telling you it can't add another dialog to db. I am almost certain that's what's happening. Regards, Ali Pey On Thu, Nov 8, 2012 at 4:22 AM, Jorge Ortea dar...@hotmail.com mailto:dar...@hotmail.com wrote: Hi all, I am getting the following errors: Nov 7 11:47:19 hgt-tero45 /usr/local/opensips/sbin/opensips[12582]: ERROR:dialog:update_dialog_dbinfo: could not add another dialog to db Nov 7 11:47:19 hgt-tero45 /usr/local/opensips/sbin/opensips[12548]: ERROR:dialog:update_dialog_dbinfo: could not add another dialog to db Nov 7 11:47:20 hgt-tero45 /usr/local/opensips/sbin/opensips[12558]: ERROR:dialog:update_dialog_dbinfo: could not add another dialog to db Nov 7 11:57:32 hgt-tero45 /usr/local/opensips/sbin/opensips[12554]: ERROR:dialog:update_dialog_dbinfo: could not add another dialog to db Nov 7 11:57:32 hgt-tero45 /usr/local/opensips/sbin/opensips[12578]: ERROR:dialog:update_dialog_dbinfo: could not add another dialog to db Nov 7 11:59:07 hgt-tero45 /usr/local/opensips/sbin/opensips[12556]: ERROR:dialog:update_dialog_dbinfo: could not add another dialog to db Nov 7 11:59:07 hgt-tero45 /usr/local/opensips/sbin/opensips[12574]: ERROR:dialog:update_dialog_dbinfo: could not add another dialog to db Nov 7 12:23:23 hgt-tero45 /usr/local/opensips/sbin/opensips[12580]: ERROR:dialog:update_dialog_dbinfo: could not add another dialog to db Nov 7 12:23:24 hgt-tero45 /usr/local/opensips/sbin
Re: [OpenSIPS-Users] Can I modify register time
Hi, If you want to do this globally then, check this link (default_expires, min_expires, max_expires), should be really easy : http://www.opensips.org/html/docs/modules/1.8.x/registrar.html#id249191 Regards, Alex On 11/15/2012 12:13 PM, Nick Chang wrote: Hello Can I modify register timeout?? Thanks Nick ___ 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
Re: [OpenSIPS-Users] dialplan table and Control Panel tool.
Hi, No, don't change anything. In 5 minutes a fix will be available on SVN trunk. There is a small bug in the code. Miguel, how did you install OpenSIPS Control Panel ? SVN or tarball ? Regards, Alex Ionescu On 11/15/2012 12:40 PM, Max Mühlbronner wrote: Hi, maybe you need to adjust memory_limit in php.inf and restart apache. At least this helped me a few times when i had the same problem with dynamic routing/dr_rules table. Max M. On 11/15/2012 11:23 AM, Miguel J. López Valverde wrote: Dear Opensips lists: I've a trouble with the OpenSips Control Panel tool when the dialplan table has more than 4 rows. If this table contains up to 40,000 rows, the content is provided in the web tool and everything works fine but if this table contains a record more, the tool leaves the panel empty. Can I configure this tool to avoid this limitation? Thank you very much and best regards ___ 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 ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] dialplan table and Control Panel tool.
Hi Miguel, Can you please do a SVN checkout : |svn co https://opensips-cp.svn.sourceforge.net/svnroot/opensips-cp/trunk /path/to/your/opensips-cp| Then just copy your boxes and db config files from your old installation to this new one and you should be ready to go. Regards, Alex On 11/15/2012 01:08 PM, Miguel J. López Valverde wrote: Hi Alex, Thankyou for your answer. I installed it downloading the tarball file, (opensips-cp_5.0.tgz). Rergards. -Mensaje original- *De*: Alex Ionescu a...@opensips.org mailto:alex%20ionescu%20%3ca...@opensips.org%3e *Reply-to*: OpenSIPS users mailling list users@lists.opensips.org *Para*: OpenSIPS users mailling list users@lists.opensips.org mailto:opensips%20users%20mailling%20list%20%3cus...@lists.opensips.org%3e *Asunto*: Re: [OpenSIPS-Users] dialplan table and Control Panel tool. *Fecha*: Thu, 15 Nov 2012 12:45:49 +0200 Hi, No, don't change anything. In 5 minutes a fix will be available on SVN trunk. There is a small bug in the code. Miguel, how did you install OpenSIPS Control Panel ? SVN or tarball ? Regards, Alex Ionescu On 11/15/2012 12:40 PM, Max Mühlbronner wrote: Hi, maybe you need to adjust memory_limit in php.inf and restart apache. At least this helped me a few times when i had the same problem with dynamic routing/dr_rules table. Max M. On 11/15/2012 11:23 AM, Miguel J. López Valverde wrote: Dear Opensips lists: I've a trouble with the OpenSips Control Panel tool when the dialplan table has more than 4 rows. If this table contains up to 40,000 rows, the content is provided in the web tool and everything works fine but if this table contains a record more, the tool leaves the panel empty. Can I configure this tool to avoid this limitation? Thank you very much and best regards ___ Users mailing list Users@lists.opensips.org mailto:Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org mailto:Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org mailto: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 ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] how to Register with OpenSIPS?: help needed!!
Hi Christian, It would be interesting if you could describe a little bit more the scenario that you are trying to setup. From what you've told us until now this is what I understand: - you have a PBX where you used to register your phones - you want to use OpenSIPS as a proxy ... here things are getting a bit blurry So, a few main ideas: - if you register your phones on OpenSIPS there is no need to register them also on the PBX - if you use this PBX in order to terminate calls then it is very simple to make it work with Opensips, this is what you must do: a) register your phones on OpenSIPS b) configure a routing rule in OpenSIPS to instruct OpenSIPS to send all calls from your phones to your PBX(s) c) configure your PBX to accept traffic from OpenSIPS In order to configure a routing rule use OpenSIPS Control Panel System - Dynamic Routing and do the following: a) Use the Gateways tool to define your PBX as a gateway for OpenSIPS b) Use the Rules tool to define rule that will send all the calls to your newly defined carrier c) Apply your changes and your are ready to go - is that simple Now, let me know if this is what you want to do and if we can assist in doing this. Regards, Alex Ionescu On 11/15/2012 04:46 PM, Christian Cambier wrote: Hello. Your sip phones only register to the opensips servers. Your pbx dosen't need to sip registrations. But what do you do then with the account-settings that were created on the PBX? Account-settings like username and password, do you need to redefine them on the proxy then and not anymore on the PBX? Your sip phones only talk to the opensips servers, opensips then will forward the calls to the pbx. But how does the opensips know to which PBX to forward the call to. Is has to be defined somewhere? But where and how please? regards ___ 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
Re: [OpenSIPS-Users] opensips-cp MDB2 Error: unknown error
Hi Ardogan, OpenSIPS CP was initially built to work with MySQL. At some point PEAR was used in order to be able to use other DB too. Postgres has some particularities and there is a chance that a query was build for MySQL and Postgres does not support it. What you can do is to go to /opensips-cp/web/tools/system/cdrviewer/template/cdrviewer.main.php and insert this right before line 133: echo ---.$sql.--- Execute the query in pgsql and send back both the query and postgres error. Regards, Alex On 08/13/2012 02:47 PM, Ardogan Tekinsoy wrote: I have configured opensip-cp with postgresql. DB connection works and I see the results on Domains or Users/User Management pages. But I get an error on CDRViewer page when I select default Start Date - End Date range. Page doesn't lists the results and this error message is seen on the page. Failed to issue query, error message : MDB2 Error: unknown error I have records in my cdrs table. Is it possible to trace the details of this error in a log file so I can give you more information as well. ___ 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] OpenSIPS Control Panel Release 5.0
Hi all, We have a new release for the OpenSIPS Control Panel: 5.0. This new release comes with a heavily modified Dynamic routing module in order to be compatible with OpenSIPS v.1.8.x The only major changes are related to the Dynamic routing module (there are also some bug fixes). Best regards, Alex Ionescu ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] opensips-cp
Hi, You can use both. Depends on what is your scenario. I mean if you have the OpenSIPS Control Panel on the same server with OpenSIPS you can choose : fifo/xmlrpc , if not there is only one option for you: xmlrpc. I've used both and both are working very well. If you can't make the MI Commands CP module to work then reply with your CP config file (config/boxes.global.inc.php) and I will try to help you. Regards, Alex Ionescu On 05/07/2012 12:29 PM, [Digital^Dude] ® wrote: What do you guys recommend for opensips-cp? mi_fifo or xml_rpc ? With both I couldn't get a plug and play installation of this web control panel. Please share which of the modes work better. ___ 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
Re: [OpenSIPS-Users] Users Digest, Vol 44, Issue 25
Hi, I think that, a first step, in your case would be to use advertised_address. Here, read this: http://www.opensips.org/Resources/DocsCoreFcn17#toc24 Regards, Alex On 03/16/2012 08:51 PM, talha jilal wrote: I appologise for That Bogdan, Any suggesion ? Thanks ! Talha Jilal Date: Fri, 16 Mar 2012 19:55:00 +0200 From: bog...@opensips.org To: talha_ji...@hotmail.com CC: users@lists.opensips.org Subject: Re: Users Digest, Vol 44, Issue 25 Hey, considering that you get free help, culminating with the fact you have almost 0 knowledge in basic stuff (like making a simple network capture), I would not complain AT ALL about taking too long. So please be at least grateful for the help you get. The problem is your setup - to spare some time, you should mention that you actually run opensips behind NAT and you receive traffic from public internet. OpenSIPS is adding a RR header with a private IP which is not routable from the caller side (public internet), so caller cannot fire the ACK as response to the received 200 OK. So, your setup is bogus. Regards, Bogdan On 03/16/2012 04:40 PM, talha jilal wrote: Hi, Here you find output , http://pastebin.com/ivWcFaXi Thanks for your help, can I get reply soon. Its taking too long. Thanks ! Date: Fri, 16 Mar 2012 13:52:36 +0200 From: bog...@opensips.org mailto:bog...@opensips.org To: talha_ji...@hotmail.com mailto:talha_ji...@hotmail.com CC: users@lists.opensips.org mailto:users@lists.opensips.org Subject: Re: Users Digest, Vol 44, Issue 25 Hi, To get ngrep to filter the capturing on 300 do : ngrep -d any -W byline -t *300* port 5060 upload the output somewhere on pastebin or similar - this mailing list is limited to attachments of 40K. Regards, Bogdan On 03/15/2012 04:54 PM, talha jilal wrote: Hello Bogdan, Here is my ngrep output, for only 300 extension where I am calling. I also attached ngrep full out put from when I start calling till end. To: sip:3...@svoice.dyndns.org;user=phone;tag=4249013220. Contact: 300 sip:300@192.168.1.104:5060;transport=udp. i=300sip:. a=X-NameLabel:300. To: sip:3...@svoice.dyndns.org;user=phone;tag=4249013220. Contact: 300 sip:300@192.168.1.104:5060;transport=udp. i=300sip:. ^C * * * * *Thanks ! Talha Jilal * Date: Wed, 14 Mar 2012 14:22:23 +0200 From: bog...@opensips.org mailto:bog...@opensips.org To: talha_ji...@hotmail.com mailto:talha_ji...@hotmail.com CC: users@lists.opensips.org mailto:users@lists.opensips.org Subject: Re: Users Digest, Vol 44, Issue 25 I mentioned ngrep, not grep :D . Do : ngrep -d any -W byline -t . port 5060 Regards, Bogdan On 03/12/2012 08:54 PM, talha jilal wrote: Hi, Here is output with grep Please advise me full command if I am doing some thing wrong, I am using centos 6.0 32 bit. -bash-4.1# tcpdump -i eth2 -n -s0 -vvv tcp port 5060 | grep 300 tcpdump: listening on eth2, link-type EN10MB (Ethernet), capture size 65535 bytes 07:51:21.257355 IP (tos 0x0, ttl 118, id 27728, offset 0, flags [DF], proto TCP (6), length 1300) 07:51:27.511152 IP (tos 0x10, ttl 64, id 6173, offset 0, flags [DF], proto TCP (6), length 1300) 07:51:28.015258 IP (tos 0x10, ttl 64, id 6175, offset 0, flags [DF], proto TCP (6), length 1300) 07:51:29.022329 IP (tos 0x10, ttl 64, id 6177, offset 0, flags [DF], proto TCP (6), length 1300) Thanks Date: Mon, 12 Mar 2012 20:30:10 +0200 From: bog...@opensips.org mailto:bog...@opensips.org To: talha_ji...@hotmail.com mailto:talha_ji...@hotmail.com; users@lists.opensips.org mailto:users@lists.opensips.org Subject: Re: Users Digest, Vol 44, Issue 25 Hi, 1) please keep the list at CC all the time ! 2) the tcpdump output is no enough - use ngrep as I need to see the actual content of the SIP package ; or make a pcap capture and upload it somewhere for download. Regards, Bogdan -- Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com http://www.opensips-solutions.com/ -- Bogdan-Andrei Iancu
Re: [OpenSIPS-Users] OpenSIPs-CP -Pro blems with ERROR:mi_fifo:mi_fifo_server:
Hi, It does not work because Matching string length has to be integer or, in case you use a REGEX you can leave it blank, because it will be ignored anyway. For the permissions module you have to specify the mask using the number of bits, just like you did (24 or 32, or what ever you need). The warning you get is because you have specified a mask like 24 and most probably you have used an IP that does NOT look like this xxx.xxx.xxx.0. So, OpenSIPS expect this kind of IP when you use a 24 bits mask. But don't worry, it's just a warning, it will still work fine. Regards, Alex On 02/29/2012 07:35 PM, Alexandre Keller wrote: I might be doing something wrong. I'm kind of new on OpenSIPs, I've only worked with Asterisk for the past 6 years. Here is my Rule, it's a testing rule. *Dialplan ID: 1* *Rule Priority: 1* *Matching Operator: REGEX* *Matching Regular Expression: 123** *Matching String Length: ** *Substitution Regular Expression: BLANK* *Replacement Expression: BLANK* *Attributes: NONE* When a push ADD button: Failed to issue query, error message : MDB2 Error: syntax error Another strange thing is when I add a Gateway on PERMISSIONS page. I fill the netmask field with 255.255.255.0, but it does not save the informations. I tried filling with 24 (bits), and it saved just fine. Is it correct? When I APPLY CHANGES TO SERVER the following message appears on syslogd: Feb 29 14:33:25 vm-opensips /usr/sbin/opensips[4281]: WARNING:core:mk_net: invalid network address/netmask combination fixed... As I said before, I must be doing something wrong. Thanks again. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSIPs-CP -Pro blems with ERROR:mi_fifo:mi_fifo_server:
Hi, This is a strange error, considering the fact that I am guessing you already have DB connectivity for CP. Can you paste the rule that you are trying to add ? Maybe we can replicate the error. Regards, Alex On 02/29/2012 04:57 PM, Alexandre Keller wrote: I'm sorry for bothering you again. I've trying to add some rule to my DialPlan through OpenSIPs-CP, but, it keeps me showing the following error: Failed to issue query, error message : MDB2 Error: syntax error Any ideas? Thanks again in advance. -- Atenciosamente, ALEXANDRE KELLER http://twitter.com/alexandrekeller http://www.facebook.com/alexandre.keller.BR Dinheiro é a consequência de um trabalho bem feito e não o motivo para se fazer um bom trabalho. * * **P Antes de imprimir pense em seu compromisso com o Meio Ambiente.** On 29/02/2012, at 09:43, Vlad Paiu wrote: Hello, In your OpenSIPS script, do you have the dialog, dialplan, dispatcher, domain or drouting modules loaded ? Regards, Vlad Paiu OpenSIPS Developer http://www.opensips-solutions.com On 02/29/2012 02:21 PM, Alexandre Keller wrote: Hi there. I've just installed OpenSIPs + OpenSIP-CP, but everytime I try to Apply Changes to Server or Refresh Dialog List, I get the following messages. Feb 28 16:27:46 vm-opensips /usr/sbin/opensips[5079]: ERROR:mi_fifo:mi_fifo_server: command dlg_list is not available Feb 28 16:27:51 vm-opensips /usr/sbin/opensips[5079]: ERROR:mi_fifo:mi_fifo_server: command dp_reload is not available Feb 28 16:27:54 vm-opensips /usr/sbin/opensips[5079]: ERROR:mi_fifo:mi_fifo_server: command ds_list is not available Feb 28 16:27:55 vm-opensips /usr/sbin/opensips[5079]: ERROR:mi_fifo:mi_fifo_server: command ds_reload is not available Feb 28 16:28:00 vm-opensips /usr/sbin/opensips[5079]: ERROR:mi_fifo:mi_fifo_server: command domain_reload is not available Feb 28 16:28:05 vm-opensips /usr/sbin/opensips[5079]: ERROR:mi_fifo:mi_fifo_server: command dr_reload is not available Feb 28 16:28:13 vm-opensips /usr/sbin/opensips[5079]: ERROR:mi_fifo:mi_fifo_server: command lb_reload is not available Feb 28 16:28:25 vm-opensips /usr/sbin/opensips[5079]: ERROR:mi_fifo:mi_fifo_server: command nh_reload_rtpp is not available Feb 28 16:28:27 vm-opensips /usr/sbin/opensips[5079]: ERROR:mi_fifo:mi_fifo_server: command sip_trace is not available Any help is welcome. -- Atenciosamente, ALEXANDRE KELLER http://twitter.com/alexandrekeller http://www.facebook.com/alexandre.keller.BR Dinheiro é a consequência de um trabalho bem feito e não o motivo para se fazer um bom trabalho. * * **P Antes de imprimir pense em seu compromisso com o Meio Ambiente.** ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users ___ Users mailing list Users@lists.opensips.org mailto: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 ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] opensips-cp option does not work
Hi, Can you please check the system folder ? Maybe you have a svn-commit.tmp.save folder/file in there. I've checked the trunk and there is no folder/file there, so I don't know how/where it got there. Regards, Alex On 02/08/2012 05:40 PM, Danny Días wrote: Hi, I've installed opensips-cp (i could not attach the image), on the button system, on top of CDRViewer option there is a blank space and if i make click there it says: The Requested URL /cp/tools/system/svn-commit.tmp.save/index.php was not found on this server Why is this happening? Thanks! -- www.danntel.net http://www.danntel.net/ _sip:danny4...@thesipschool.com mailto:danny4...@thesipschool.com_ sip:dann...@opensips.org mailto:sip%3adann...@opensips.org ___ 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
Re: [OpenSIPS-Users] Siptraces not shown on OpenSIPS-CP
Hi Spady, Did you configured ../opensips-cp/config/tools/system/siptrace/local.inc.php ? There you have proxy list ... Regards, Alex On 12/02/2011 11:38 AM, spady wrote: No one has idea? -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Siptraces-not-shown-on-OpenSIPS-CP-tp7052741p7054099.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ 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
Re: [OpenSIPS-Users] Add Menu to OpenSIPS-CP
Hi Spady, Sure, you can do that very easily. Just use the TViewer tool. Edit ../opensips-cp/config/tools/system/tviewer/local.inc.php. You should have something like this: $config-custom_table = usr_preferences; $config-custom_table_columns = array (Id = id,UUID = uuid,Username = username,Domain = domain,Attribute = attribute,Type = type,Value = value); Hope this helps you. Regards, Alex On 12/03/2011 01:02 PM, spady wrote: Hi List, I was wondering is there is a way, and/or is possible, to add a menu to OpenSIPS-CP under System Tab. I would like to populate AVP Table by Control Panel. It would be easier then do it by opensipsctl command. Regards. -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Add-Menu-to-OpenSIPS-CP-tp7057646p7057646.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ 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
Re: [OpenSIPS-Users] Siptraces not shown on OpenSIPS-CP
Well, You can try doing some debugging. Paste this on line 193 in ../opensips-cp/web/tools/system/siptrace/template/tracer.main.php : echo $sql; You should receive an output right under the search box like this: SELECT DISTINCT callid FROM sip_trace WHERE status='' AND direction='in' ORDER BY id DESC Try executing this query in the console - see what you get. Let me know how it went Regards, Alex On 12/05/2011 05:38 PM, spady wrote: Yes, sure: $config-results_per_page = 25; $config-results_page_range = 10; // highlighting $config-from_color=black; $config-from_bgcolor=yellow; $config-to_color=white; $config-to_bgcolor=blue; $config-callid_color=black; $config-callid_bgcolor=orange; $config-cseq_color=white; $config-cseq_bgcolor=navy; $config-regexp_color=navy; $config-regexp_bgcolor=red; ### //database tables $config-table_trace = sip_trace; $talk_to_this_assoc_id = 1 ; // sip proxy - ip:port $proxy_list=array(udp:10.9.101.166:5060,tcp:10.9.101.166:5060,udp:127.0.0.1:5060,tcp:127.0.0.1:5060); ? -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Siptraces-not-shown-on-OpenSIPS-CP-tp7052741p7063277.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ 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
Re: [OpenSIPS-Users] Siptraces not shown on OpenSIPS-CP
Ok, What can I say ... are you sure you have something in your sip_trace table ? I am being confuse ... Regards, Alex On 12/05/2011 05:55 PM, spady wrote: I done: mysql SELECT DISTINCT callid FROM sip_trace WHERE status='' AND direction='in' ORDER BY id DESC ; Empty set (0.00 sec) mysql mysql -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Siptraces-not-shown-on-OpenSIPS-CP-tp7052741p7063340.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ 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
Re: [OpenSIPS-Users] Siptraces not shown on OpenSIPS-CP
Hi, What version of OpenSIPS proxy are you using? There were some fixes made to the sip trace module and there is a possibility that the default content of some fields have changed. (Anyway, better update to latest version) Regards, Alex On 12/05/2011 06:08 PM, spady wrote: Yes, sure... 3104 rows in set (0.14 sec) mysql select * from sip_trace ; I did not pasted the 3104 rows but sip_trace table is full of sip traces -- View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Siptraces-not-shown-on-OpenSIPS-CP-tp7052741p7063393.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com. ___ 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] [NEW ] New OpenSIPS Control Panel Release
Hi all, We have a new release for the OpenSIPS Control Panel. The new release (4.1) fixes most of the bugs that the old version had and introduces two new tools: - *TViewer* (aka Table Viewer) which allows you to handle generic DB tables (operations like read, add, remove, update). This new tool becomes very helpful if you want to manage some extra tables other than the ones already handled by Control Panel's tools. - *ACL Management* - this tool controls the grp table and allows you to have some predefined groups (which you can define this in the tool's config file) and assign users to these groups from the web interface. The new release can be downloaded from here https://sourceforge.net/projects/opensips-cp/files/latest/download?source=files. Best regards, Alex Ionescu ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] [NEW] OpenSIPS Live System (virtual machine)
Hi all, A new version of the OpenSIPS Live System is now released based on OpenSIPS 1.7.0 - this is a Virtual Machine (VMware based http://www.vmware.com/products/server/overview.html) which contain a /basic OpenSIPS-based SIP residential platform/. It contains a provider system that offers the following functionalities: * SIP registrar with subscriber management * SIP proxy with dynamic dialplan * NAT traversal * Multi-Domain support * PSTN inbound and outbound connectivity with LCR * User provisioning WEB interface * System provisioning WEB interface For download instructions and documentation see the official web page http://www.opensips.org/Resources/LiveVM Regards, Alex Ionescu ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] [NEW] OpenSIPS Live System (virtual machine)
Hi all, A new version of the OpenSIPS Live System is now released based on OpenSIPS 1.7.0 - this is a Virtual Machine (VMware based http://www.vmware.com/products/server/overview.html) which contain a /basic OpenSIPS-based SIP residential platform/. It contains a provider system that offers the following functionalities: * SIP registrar with subscriber management * SIP proxy with dynamic dialplan * NAT traversal * Multi-Domain support * PSTN inbound and outbound connectivity with LCR * User provisioning WEB interface * System provisioning WEB interface For download instructions and documentation see the official web page http://www.opensips.org/Resources/LiveVM Regards, Alex Ionescu ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] OpenSIPS-CP - Call to undefined method MDB2_Error::setFetchMode()
Hi Duane, Have you created the initial user in the opc_admin_privileges table ? You have to insert an user - it is written in the INSTALL file. Anyway, if you did, please check again if the connection details in ../opensips-cp/config/db.inc.php are the correct ones. Unfortunatelly, MDB2 is not very friendly when reporting errors ... it may create confusion. Let me know if you succeeded! Regards, Alex Anton Zagorskiy wrote: Hi Duane. In most cases it means that it can't connect to DB. From: users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] On Behalf Of duane.lar...@gmail.com Sent: Tuesday, April 12, 2011 3:44 AM To: OpenSIPS users mailling list Subject: [OpenSIPS-Users] OpenSIPS-CP - Call to undefined method MDB2_Error::setFetchMode() I am getting this error with OpenSIPS-CP when I try to log in for the first time Fatal error: Call to undefined method MDB2_Error::setFetchMode() in /var/www/opensips-cp/web/db_connect.php on line 31 I saw that someone else in the mailing list had the exact same error and it was mentioned that the db.ini.php wasn't configured. As far as I know I followed the installation instructions. I installed all the pear packages and edited any files that were supposed to be edited. Not sure what's causing this. I downloaded with svn. ___ 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
Re: [OpenSIPS-Users] [OpenSIPS-Devel] OpenSIPS LiveDVD
Hello all, The missing file problem was solved. Also the size of the VM was reduced by 50%. You can download it from SF. Regards, Alex Bogdan-Andrei Iancu wrote: Hello all, The first OpenSIPS Virtual Machine is now available - the VM is a free show case of a simple SIP provider setup - a ready-to-run run SIP platform with SIP registrar, with PSTN routing, with NAT traversal and Web interfaces. The OpenSIPS VM does not want to be a commercial platform, but a proof-of-concept to show how a basic SIP platform, OpenSIPS-based, can be put together and operated. The OpenSIPS VM is intended to reduce the learning curve for OpenSIPS by providing an already working basic setup that can tried, evaluated or used as model for more complex setups. OpenSIPS Virtual Machine wants to be be study case. The first release of the OpenSIPS VM is 1.0 - for documentation and downloads, see http://www.voice-system.ro/shortcuts::opensips_livedvd We plan to enhance this study case in the next versions with other functionalities like Media Services integration. Any feedback on OpenSIPS VM will be appreciates and will help us to improve this setup in the future. Enjoy and regards, bogdan ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Opensips-cp Dialplan Problem
Hi Sven, I've tried exactly your example. It worked for me. Please take the last version of opensips-cp from svn trunk. Maybe that will work for you. Regards, Alex On 6/4/2010 16:12, Sven Schulz wrote: For example, if I use control panel cp to add a new rule: DialplanID = 0 Rule Priority = 1 Matching Operator=1 Matching reg exp= ^(2|3|5|7)[0-9]{4} Matching str len=0 Subst Reg Exp= (^(2|3|5|7)[0-9]{4}) Repl Reg Exp=181486\1 Attr= I leave this blank unchecked Then the webpage doesn't give any errors and creates the rule like this: DialplanID = 0 Rule Priority = 1 Matching Operator=1 Matching reg exp= Matching str len=0 Subst Reg Exp= Repl Reg Exp= Attr= Then I hit apply changes to do a dp_reload and the box segfaults. Im running Centos5.4 64 bit and using cp version 4.0 On 6/4/10 5:53 AM, Alex Ionescu a...@opensips.org wrote: Hi Sven, I have tested the latest version of CP (taken from SVN). I've inserted a few rules, and it worked just fine. All the fields were populated. Can you be more specific please ? Regards, Alex On 6/3/2010 16:55, Sven Schulz wrote: Opensips-cp Dialplan Problem Using opensips-cp latest version from SVN. Whenever I use CP to insert a new rule, some of the fields arnt populated. ___ 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 -- Alex Ionescu www.voice-system.ro ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] test - please ignore
___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Opensips-cp Dialplan Problem
Hi Sven, I have tested the latest version of CP (taken from SVN). I've inserted a few rules, and it worked just fine. All the fields were populated. Can you be more specific please ? Regards, Alex On 6/3/2010 16:55, Sven Schulz wrote: Using opensips-cp latest version from SVN. Whenever I use CP to insert a new rule, some of the fields arnt populated. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- 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-CP Required Fields
Hi Sven, Well, to prevent fields from being required you have to do a very simple thing: - edit the file : /var/www/opensips-cp/web/tools/users/user_management/lib/user_management.test.inc.php - for example, if you want to stop alias username from being required just comment the following lines : if ($form_valid) if ($alias==) { $form_valid=false; $form_error=- invalidbAlias/b field -; } You can do the same for the other fields - just find them (the names are very intuitive) and comment the lines above. Unfortunately, for now, there is no way of configuring what fields are required and what fields are not. Hope this helps you ! Regards, Alex On 5/18/2010 23:21, Sven Schulz wrote: Running opensips 1.6.2 and opensips-cp 4.0 I would like to prevent certain required fields in opensips-cp from being... required. For example, when adding a new user (Users - Users Management- Add new user) I don't want alias username and email to be a required field. Where can I set this up? Sven Schulz Penn State University Telecommunications and Network Services ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- 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] user alias length in opensips-cp 4
Hi Albert, The $config-alias_format is a regex and the alias user name that you insert must match this regex. If you can see, in the default regex you are allowed to use aliases that start with 9 and are 5 digits long. This can be changed if you want. Just simply edit the regex (it is true ... the line is not present in /var/opensips-cp/config/tools/users/user_management/local.inc.php, because it's being read from the alias_management folder). Anyway, if you want to make opensips-cp not ask for alias username just do the following: - edit the file : /var/www/opensips-cp/web/tools/users/user_management/lib/user_management.test.inc.php - for example, if you want to stop alias username from being required just comment the following lines : if ($form_valid) if ($alias==) { $form_valid=false; $form_error=- invalidbAlias/b field -; } You can do the same for the other fields if you want - just find them (the names are very intuitive) and comment the lines above. Hope this helps you! Regards, Alex On 5/23/2010 11:48, Albert Paijmans wrote: Hi, I was wondering about the Alias Username in opensips-cp. When I try to add a new user in the control panel under Users / User Management I must give an Alias Username, but this can only be 5 digits long. If I do not enter an alias it gives me an error Invalid Alias Field. And the maximum length is only 5 digits. But when I examine under /var/opensips-cp/config/tools/users/alias_management/local.inc.php if find the following line $config-alias_format = /^9[0-9][0-9][0-9][0-9]/; This line is not present in /var/opensips-cp/config/tools/users/user_management/local.inc.php So my question is how do I make opensips-cp not ask for an Alias Username? Or choose any lenth / combination of letters or numbers? I suppose one could also choose to only use Alias Management username-domain / alias-username alias-domain Is it possible to fix this in User Management Alias Username? I am using OpenSIPS 1.62 and OpenSIPS Control Panel 4 Thanks Albert ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- 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-CP error
Hi Vishu, I believe that there a problem with the MDB2 php versions that you have. Actually we have never encountered this error before. I suggest using OpenSIPS-CP 4.0 and reinstall all the php related packages. After reading a little on the internet I think that you have encountered a MDB2 bug - apparently there are others that have the same problem - and almost all of them encountered this after an upgrade ... Hope this helps you ! Regards, Alex On 5/20/2010 13:21, vishu gaddi wrote: * Hi*,* * * I have successfully installed opensips 6.0, opensips-cp-3.0 with below modules: * * * PHP 5.3.2-1 , * * MDB2 and Mysql-5.1.46-1 on DEBIAN machine. * * * * * * * * * * * * I can access opensips-cp GUI, but getting following error.. * * * * * * * ERROR:* *Deprecated*: Assigning the return value of new by reference is deprecated in */usr/share/php/MDB2.php* on line *393* **Deprecated*: Assigning the return value of new by reference is deprecated in */usr/share/php/MDB2.php* on line *2647** * * * * Is it PHP version problem or something else ?? Pls suggest to overcome this error. Thanks in advance. Vishu Gaddi * * * * ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- 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-CP Monit is not working
Hi Aman, It seems that you have a MONIT related problem. If you want monit to work you have to set the path for the config file (monitrc) in the */etc/init.d/monit* file. Edit this, fix the path to the config file and monit should start. See the IP and PORT that monit uses and configure them in boxes.global.inc.php Regards, Alex On 5/25/2010 11:43, Aman wrote: Greetings, Need a help, i am getting the error on monit on OpenSIPS-CP that I can't connect!, when i run monit -t for syntax check, its shows error, May 24 10:17:26 opensips monit: /etc/monit/monitrc:241: Warning: include files not found '/etc/monit/conf.d/*' May 24 10:50:49 opensips monit: /etc/monit/monitrc:241: Warning: include files not found '/etc/monit/conf.d/*' May 24 11:08:14 opensips monit: /etc/monit/monitrc:241: Warning: include files not found '/etc/monit/conf.d/*' But this file does not exist on defined path, i have also skipped the following configuration part in 'monitrc' check process opensips with pidfile /var/run/opensips.pid #Below is actions taken by monit when service got stuck. start program = /etc/init.d/opensips start stop program = /etc/init.d/opensips stop # Admin will notify by mail if below of the condition satisfied. if cpu is greater than 70% for 2 cycles then alert if cpu 90% for 5 cycles then restart as this shows error opensips already icluded, please advice to make the monit work. Any suggestions are really appreciable. -- Amanpreet Singh ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Alex Ionescu www.voice-system.ro ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] ANNOUNCEMENT
Dear all, We want to announce that between *10.05.2010, 10:30PM (CET) and 11.05.2010, 07:30AM (CET)* the OpenSIPS machine will be unavailable (it will be shut down for maintenance). This will affect the following: the website, the mailing lists and the sip OpenSIPS service. Thanks for understanding. 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] Opensip-cp and xml-rpc-c question
Hi Sven, For your first question : Can I use mi_datagram instead of mi_xmlrpc for opensips-cp? Well, it is not suported ... yet. So, unfortunately, you cannot use mi_datagram. For the second question : If not, how to I compile xml-rpc-c into Centos5? We've recently installed CP and OpenSIPS on a Centos 5 server. We've used *xmlrpc-c-1.06.38* To install it please do : *./configure --disable-abyss-threads* (this is very important) ... then you do as usual *make all* and *make install*. I hope you will succeed eventually ! Regards, Alex On 4/27/2010 22:58, Sven Schulz wrote: 2 part Question: 1. Can I use mi_datagram instead of mi_xmlrpc for opensips-cp? 2. If not, how to I compile xml-rpc-c into Centos5? I cant compile the recommended version (.09.10) into 64bit. If I download the latest SRC, I get these errors at the end of MAKE: /usr/bin/ld: XmlRpcCpp.o: relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC XmlRpcCpp.o: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [libxmlrpc_cpp.so.3.06] Error 1 make[2]: Leaving directory `/usr/src/xmlrpc-c-1.06.38/src/cpp' make[1]: *** [cpp/all] Error 2 make[1]: Leaving directory `/usr/src/xmlrpc-c-1.06.38/src' make: *** [src/all] Error 2 Any help would be appreciated. ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- 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] Version of OpenSIPS CP
Hi Sergio, You are free to choose between 3.0 and 4.0. But I'd go with the latest version - 4.0 Regards, Alex On 4/27/2010 20:26, Sergio Gutierrez wrote: Hello all. What version of OpenSIPS Control panel Should I use with OpenSIPS 1.5.X? Thanks and regards. -- Sergio Gutiérrez ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- 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
, 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, detect_direction, 0) /* account triggers (flags) */ modparam(acc, failed_transaction_flag, 3) modparam(acc, log_flag, 1) modparam(acc, log_missed_flag, 2) /* uncomment the following lines to enable DB accounting also */ modparam(acc, db_flag, 1) modparam(acc, db_missed_flag, 2) #modparam(acc, db_extra, from_did=$avp(s:from_did);to_did=$avp(s:to_did)) Thanks Erick Ch. __ 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 __ 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 -- 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 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/plot# vim Plot.php please let me know what is the procedure for fix the problem Thanks -- 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 Control Panel - User
: initializing... Apr 14 15:37:40 net /sbin/opensips[5466]: INFO:auth:mod_init: initializing... Apr 14 15:37:40 net /sbin/opensips[5466]: INFO:auth_db:mod_init: initializing... Apr 14 15:37:40 net /sbin/opensips[5466]: INFO:alias_db:mod_init: initializing... Apr 14 15:37:40 net /sbin/opensips[5466]: INFO:core:probe_max_receive_buffer: using a UDP receive buffer of 255 kb Apr 14 15:37:40 net /sbin/opensips[5466]: INFO:core:probe_max_receive_buffer: using a UDP receive buffer of 255 kb (END) Thanks Erick Ch __ 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 Hope that this will help you ! 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-cp drouting dynamic groups broken?
Hi Brett, This has been solved ... eventually. It was indeed an invalid link. I have committed the changes in trunk. Regards, Alex On 3/25/2010 16:47, Brett Nemeroff wrote: t plenty of other database operations work Any ideas? -- 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-cp 4.0
Hi Andy, The users table is created when you install OpenSIPS. The sip users are inserted in the table called subscriber. I think that the term user used in the old/not-updated docs was actually about an OCP user (admin), not a sip user. By the way : did you try adding sip users ? In case you didn't please try and let me know if it's working or not. Regards, Alex On 4/5/2010 19:36, Andy Thomas wrote: Ive already done that step for admin access It's the user's table which needs to be configured so that opensips-cp can then add users *From:* Alex Ionescu [mailto:a...@opensips.org] *Sent:* 05 April 2010 3:37 PM *To:* OpenSIPS users mailling list *Subject:* Re: [OpenSIPS-Users] Opensips-cp 4.0 Hi, I think you've read an old documentation. This is what you must do : * For the admin tool you must add a table. Follow these steps: 1. install the ocp_admin_privileges table schema ocp_admin_privileges.mysql/ocp_admin_privileges.pgsql (config/tools/admin/add_admin/ocp_admin_privileges.mysql) mysql -Dopensips -p ocp_admin_privileges.mysql or psql -h host_name -U postgres_username -d opensips ocp_admin_privileges.pgsql 2. For being able to login create an admin account with the following username and password: admin/admin. Add it into the database: INSERT INTO ocp_admin_privileges (username,password,ha1,available_tools,permissions) values ('admin','admin',md5('admin:admin'),'all','all'); This is from http://opensips-cp.sourceforge.net (see Documentation - Install Guide) Regards, Alex On 4/5/2010 16:30, Andy Thomas wrote: Im trying to install opensips-cp 4 according to the install document. Everything is fine until I reach this point- * For the add_user module : you must add one table to the OpenSIPS database . Follow these steps: Install the table.mysql or table.pgsql. You will find them them : opensips-cp/config/tools/admin/add_admin/table.mysql or opensips-cp/config/tools/admin/add_admin/table.pgsql This is where the admins are being stored data. I have looked everywhere for the file, opensips-cp/config/tools/admin/add_admin/table.mysql doesn't exist in the tarball! Regards Andy T ___ Users mailing list Users@lists.opensips.org mailto:Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Alex Ionescu www.voice-system.ro http://www.voice-system.ro ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- 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-cp 4.0
Hi, I think you've read an old documentation. This is what you must do : * For the admin tool you must add a table. Follow these steps: 1. install the ocp_admin_privileges table schema ocp_admin_privileges.mysql/ocp_admin_privileges.pgsql (config/tools/admin/add_admin/ocp_admin_privileges.mysql) mysql -Dopensips -p ocp_admin_privileges.mysql or psql -h host_name -U postgres_username -d opensips ocp_admin_privileges.pgsql 2. For being able to login create an admin account with the following username and password: admin/admin. Add it into the database: INSERT INTO ocp_admin_privileges (username,password,ha1,available_tools,permissions) values ('admin','admin',md5('admin:admin'),'all','all'); This is from http://opensips-cp.sourceforge.net (see Documentation - Install Guide) Regards, Alex On 4/5/2010 16:30, Andy Thomas wrote: Im trying to install opensips-cp 4 according to the install document. Everything is fine until I reach this point- * For the add_user module : you must add one table to the OpenSIPS database . Follow these steps: 1. Install the table.mysql or table.pgsql. You will find them them : opensips-cp/config/tools/admin/add_admin/table.mysql or opensips-cp/config/tools/admin/add_admin/table.pgsql This is where the admins are being stored data. I have looked everywhere for the file, opensips-cp/config/tools/admin/add_admin/table.mysql doesn't exist in the tarball! Regards Andy T ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- 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] Control Panel: Can't login
Hi, Did you follow the INSTALL file ? There it says : For being able to login create an admin account with the following username and password: admin/admin. Add it into the database: INSERT INTO ocp_admin_privileges (username,password,ha1,available_tools,permissions) values ('admin','admin',md5('admin:admin'),'all','all'); Tell me if this solved your problem. Regards, Alex On 3/29/2010 13:20, brianpocock wrote: db.inc.php file in the config folder and that is all set correctly. -- 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] 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 ___ 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
Hi, When you create a new admin you must set also the permissions for this new admin account. So login in as admin and edit cucku's permissions. Regards, Alex On 3/22/2010 12:40, ha do wrote: the available tool for new admin is absen -- 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] Problem with /tmp/opensips_fifo
]: 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 : -- 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] Error message on opensips-cp 4.0
Hi Flavio, I've checked again but on our test platform appears to work fine and this is the first time somebody reports a bug related to User Managemet/Add New. Can you please check that you have installed php-pear and MDB2 and MDB2_Driver_mysql ? Let me know if this solved your problem. Regards, Alex On 3/19/2010 00:39, Flavio Goncalves wrote: Fatal error: Call to undefined method MDB2_Error::execute() -- 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] Problem with OpenSIPS Control Panel 4.0
Hi Christian, Your boxes config must look like this : $box_id=0; // mi host:port pair || fifo_file //$boxes[$box_id]['mi']['conn']=127.0.0.1:8080; //i guess you are using fifo, not xmlrpc so : $boxes[$box_id]['mi']['conn']=/tmp/opensips_proxy_fifo; // monit host:port = this is for monit to work ok $boxes[$box_id]['monit']['conn']=127.0.0.1:2812; //you must take the username and password from the monit config file (monitrc). $boxes[$box_id]['monit']['user']=username; $boxes[$box_id]['monit']['pass']=password; // if you want to enable ssl $boxes[$box_id]['monit']['has_ssl']=1; Please re-check your config and let me know if it works now. Regards, Alex On 3/19/2010 01:42, Christian Vo wrote: New problem: So under opensips-cp/config/boxes.global.inc.php I changed the following: $boxes[$box_id]['mi']['conn']=127.0.0.1:8080; (previously was $boxes[$box_id]['mi']['conn']=/tmp/opensips_fifo; This seemed to resolve my issue with Systemà Monit However, System à Statistics Monitor , Systemà SIP Trace , System à MI Commands, and System à Dispatcher all complain with the following on-screen message Cannot connect to OpenSIPS Server via Management Interface (127.0.0.1/8080) So I changed it back to $boxes[$box_id]['mi']['conn']=/tmp/opensips_fifo; But then I notice tools/monit/local.inc.php still doesn't contain any code?? *From:* users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] *On Behalf Of *Christian Vo *Sent:* Thursday, March 18, 2010 10:21 AM *To:* OpenSIPS users mailling list *Subject:* Re: [OpenSIPS-Users] Problem with OpenSIPS Control Panel 4.0 Thx for the notice, I've just downloaded and re-installed the lastest 4.0 tarball (moved the old dir to backup, and replaced it with the new, re-adjusting config parameters along the way...) Not sure if I missed something, but I'm getting this error on-screen now: Under the Systemà Monit tab I see Primary Sip Server 192.168.0.1:2812 Followed by I can't Connect Something is wrong here, since I adjusted config/boxes.global.inc.php so that my only entry (Primary SIP Server) would be using 127.0.0.1:2812 for monit And I don't know where else I'd find any entry for 192.168.0.1 related to this.. This part was working for me back when I had the previous 4.0 tarball... odd *From:* users-boun...@lists.opensips.org [mailto:users-boun...@lists.opensips.org] *On Behalf Of *Alex Ionescu *Sent:* Thursday, March 18, 2010 4:46 AM *To:* OpenSIPS users mailling list *Subject:* Re: [OpenSIPS-Users] Problem with OpenSIPS Control Panel 4.0 Hi, Actually there were a few issues that were found and solved the last few days. I hope you won't have anymore problems if you download the new 4.0 tarball. So, give it a try and let me know. Regards, Alex On 3/18/2010 13:35, ha do wrote: HI Alex did you find new issue on opensips cp Thank you Ha` --- On *Sat, 3/13/10, Alex Ionescu /a...@opensips.org mailto:a...@opensips.org/* wrote: From: Alex Ionescu a...@opensips.org mailto:a...@opensips.org Subject: Re: [OpenSIPS-Users] Problem with OpenSIPS Control Panel 4.0 To: OpenSIPS users mailling list users@lists.opensips.org mailto:users@lists.opensips.org Date: Saturday, March 13, 2010, 9:21 AM Hi, I will investigate the problem and will let you know if I find any issue. Regards, Alex On 3/13/2010 06:39, Do Nguyen Ha wrote: Hi Alex here is mysql query: mysql select * from ocp_admin_privileges\G; *** 1. row *** id: 58 first_name: last_name: username: admin password: admin ha1: d2abaa37a7c3db1137d385e1d8c15fd2 available_tools: all permissions: all so i am still getting the invalid username on opensips-cp version 4 the i remove the folder opensips-cp version 4 and replace with opensips-cp version 3 and now it works without problem with opensips-cp version 3 i dont change anything and step i do : step 1. cd /var/www step 2. delete folder opensips-cp step 3. download the opensips-cp_3.0.tar.gz step 4. untar the file opensips-cp_3.0 step 5. chown www-data:www-data opensips-cp -R Thank you for your help Ha --- On *Fri, 3/12/10, Alex Ionescu /a...@opensips.org /mc/compose?to=a...@opensips.org/* wrote: From: Alex Ionescu a...@opensips.org /mc/compose?to=a...@opensips.org Subject: Re: [OpenSIPS-Users] Problem with OpenSIPS Control Panel 4.0 To: OpenSIPS users mailling list users@lists.opensips.org /mc/compose?to=us...@lists.opensips.org Date: Friday, March 12, 2010, 9:02 AM Sorry, My mistake ... the MD5 should be applied on the value not on the field name ... So, it is : INSERT INTO ocp_admin_privileges (username,password,ha1,available_tools,permissions) values ('admin','admin',md5('admin:admin'),'all','all'); On 3/12/2010 13:06, Alex Ionescu wrote: Hi, The problem seems to be your step 11 : step 11. INSERT INTO ocp_admin_privileges (username,password,ha1,available_tools
Re: [OpenSIPS-Users] Error message on opensips-cp 4.0
Hi Flavio, Can you give me some details about the user you are trying to insert ? Any special characters involved ? I will continue digging ... maybe I find something relevant regarding your problem. Regards, Alex On 3/19/2010 12:12, Flavio Goncalves wrote: Hi Alex, Yes, I have installed php-pear and MDB2 drivers. I've checked twice, the dependencies, the configuration of php.ini and database connection parameters. I'm using debian 5.0.1 and mysql 5.0.51-24. Seems to be something in the prepared statements. Database connections are ok, because I have created domains without any problem. Best regards, Flavio E. Goncalves 2010/3/19 Alex Ionescua...@opensips.org: Hi Flavio, I've checked again but on our test platform appears to work fine and this is the first time somebody reports a bug related to User Managemet/Add New. Can you please check that you have installed php-pear and MDB2 and MDB2_Driver_mysql ? Let me know if this solved your problem. Regards, Alex On 3/19/2010 00:39, Flavio Goncalves wrote: Fatal error: Call to undefined method MDB2_Error::execute() -- Alex Ionescu www.voice-system.ro ___ 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 -- 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] need help -- opensips cp -- sip trace setup giving errors
Hi Christian, The OpenSIPS CP 4.0 tar ball had a bug that was causing the error that you are encountering. This bug was fixed two days ago. Please download the latest tar ball and give it a try - it should work fine now. Regards, Alex On 3/18/2010 10:38, Christian Vo wrote: like MI tool: -- 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] Problem with OpenSIPS Control Panel 4.0
Hi, Actually there were a few issues that were found and solved the last few days. I hope you won't have anymore problems if you download the new 4.0 tarball. So, give it a try and let me know. Regards, Alex On 3/18/2010 13:35, ha do wrote: HI Alex did you find new issue on opensips cp Thank you Ha` --- On *Sat, 3/13/10, Alex Ionescu /a...@opensips.org/* wrote: From: Alex Ionescu a...@opensips.org Subject: Re: [OpenSIPS-Users] Problem with OpenSIPS Control Panel 4.0 To: OpenSIPS users mailling list users@lists.opensips.org Date: Saturday, March 13, 2010, 9:21 AM Hi, I will investigate the problem and will let you know if I find any issue. Regards, Alex On 3/13/2010 06:39, Do Nguyen Ha wrote: Hi Alex here is mysql query: mysql select * from ocp_admin_privileges\G; *** 1. row *** id: 58 first_name: last_name: username: admin password: admin ha1: d2abaa37a7c3db1137d385e1d8c15fd2 available_tools: all permissions: all so i am still getting the invalid username on opensips-cp version 4 the i remove the folder opensips-cp version 4 and replace with opensips-cp version 3 and now it works without problem with opensips-cp version 3 i dont change anything and step i do : step 1. cd /var/www step 2. delete folder opensips-cp step 3. download the opensips-cp_3.0.tar.gz step 4. untar the file opensips-cp_3.0 step 5. chown www-data:www-data opensips-cp -R Thank you for your help Ha --- On *Fri, 3/12/10, Alex Ionescu /a...@opensips.org/* wrote: From: Alex Ionescu a...@opensips.org Subject: Re: [OpenSIPS-Users] Problem with OpenSIPS Control Panel 4.0 To: OpenSIPS users mailling list users@lists.opensips.org Date: Friday, March 12, 2010, 9:02 AM Sorry, My mistake ... the MD5 should be applied on the value not on the field name ... So, it is : INSERT INTO ocp_admin_privileges (username,password,ha1,available_tools,permissions) values ('admin','admin',md5('admin:admin'),'all','all'); On 3/12/2010 13:06, Alex Ionescu wrote: Hi, The problem seems to be your step 11 : step 11. INSERT INTO ocp_admin_privileges (username,password,ha1,available_tools,permissions) values ('admin','admin','admin:admin','all','all'); You must encode the *ha1* field. So, I believe that the correct query would be : INSERT INTO ocp_admin_privileges (username,password,md5(ha1),available_tools,permissions) values ('admin','admin','admin:admin','all','all'); Anyway, you can always check the INSTALL file (I think the query is located on line 102 or 103). Regards, Alex On 3/12/2010 12:41, Do Nguyen Ha wrote: step 11. INSERT INTO ocp_admin_privileges (username,password,ha1,available_tools,permissions) values ('admin','admin','admin:admin','all','all'); -- Alex Ionescu www.voice-system.ro ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- Alex Ionescu www.voice-system.ro -Inline Attachment Follows- ___ 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 -- Alex Ionescu www.voice-system.ro -Inline Attachment Follows- ___ Users mailing list Users@lists.opensips.org /mc/compose?to=us...@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 -- 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] default opensips behavior
Hi Bhrugu, Depends on what function you are using to relay the request : - if you use *t_relay* the the behaviour is stateful; - if you use *forward* the behaviour is stateless; Default config file is using *t_relay*, so it's stateful Alex On 3/17/2010 14:48, bhrugu mehta wrote: hi, all i am new to opensips what is the default behavior of opensips like statfull or statless proxy? Regards, -- Bhrugu Mehta Sr. S/W Engineer (DD) VOIP,Telephony Team India ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- 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] 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
Re: [OpenSIPS-Users] Problem with OpenSIPS Control Panel 4.0
Hi, The problem seems to be your step 11 : step 11. INSERT INTO ocp_admin_privileges (username,password,ha1,available_tools,permissions) values ('admin','admin','admin:admin','all','all'); You must encode the *ha1* field. So, I believe that the correct query would be : INSERT INTO ocp_admin_privileges (username,password,md5(ha1),available_tools,permissions) values ('admin','admin','admin:admin','all','all'); Anyway, you can always check the INSTALL file (I think the query is located on line 102 or 103). Regards, Alex On 3/12/2010 12:41, Do Nguyen Ha wrote: step 11. INSERT INTO ocp_admin_privileges (username,password,ha1,available_tools,permissions) values ('admin','admin','admin:admin','all','all'); -- 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] Problem with OpenSIPS Control Panel 4.0
Sorry, My mistake ... the MD5 should be applied on the value not on the field name ... So, it is : INSERT INTO ocp_admin_privileges (username,password,ha1,available_tools,permissions) values ('admin','admin',md5('admin:admin'),'all','all'); On 3/12/2010 13:06, Alex Ionescu wrote: Hi, The problem seems to be your step 11 : step 11. INSERT INTO ocp_admin_privileges (username,password,ha1,available_tools,permissions) values ('admin','admin','admin:admin','all','all'); You must encode the *ha1* field. So, I believe that the correct query would be : INSERT INTO ocp_admin_privileges (username,password,md5(ha1),available_tools,permissions) values ('admin','admin','admin:admin','all','all'); Anyway, you can always check the INSTALL file (I think the query is located on line 102 or 103). Regards, Alex On 3/12/2010 12:41, Do Nguyen Ha wrote: step 11. INSERT INTO ocp_admin_privileges (username,password,ha1,available_tools,permissions) values ('admin','admin','admin:admin','all','all'); -- Alex Ionescu www.voice-system.ro ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users -- 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] Problem with OpenSIPS Control Panel 4.0
Hi, From your post I understand that you are trying to access the Control Panel using a SIP user username + password. You can only log in into CP using administrator account + password. (You can add one or more admin accounts if you want). If you read the INSTALL file you will see how to add *the first admin* account into the DB (check lines 103 104). In config/globals.php : if you change *$config**-admin_passwd_mode* from 1 (which is default - and means that the password is encoded in MD5) to 0 it will allow you to use plain text passwords for the admin accounts that you will add from the interface. If you read in the INSTALL file you will see that the first admin account is added using both an encoded and plain text password. So, the first admin should be able to log in regardless the value of $config-admin_passwd_mode. I hope this helps you. Regards, Alex On 21:59, Erick Chinchilla Berrocal 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. __ 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 ___ 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
Hi, Did you add the first admin account using the query provided in the INSTALL file ? Because if you did it should have worked without changing the value of *$config-admin_passwd_mode* from 1 to 0. Regards, Alex Ionescu On 3/11/2010 13:51, TCB wrote: 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 mailto: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 mailto: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 -- Alex Ionescu www.voice-system.ro ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users