Koozali.org: home of the SME Server

[Anounce] smeserver-trixbox-fws-beta2

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
[Anounce] smeserver-trixbox-fws-beta2
« Reply #30 on: December 30, 2006, 04:14:00 AM »
Trixbox 2 final est disponible!
Sophie from Montréal

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[Anounce] smeserver-trixbox-fws-beta2
« Reply #31 on: December 30, 2006, 04:58:48 PM »
Ok, thanks for the info. Sorry, I didn't test the upgrade of freePBX yet, I'm on holyday. Next week I will have a look at the changes in trixbox2 final.
C'est la fin du monde !!! :lol:

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[Anounce] smeserver-trixbox-fws-beta2
« Reply #32 on: January 08, 2007, 01:08:12 PM »
Quote from: "soprom"
It would be nice to be able to use the script to update FreePBX indepently.

The usual procedure is:
Code: [Select]

cd /usr/src/
wget http://mirror.freepbx.org/freepbx-2.2.0rc3.tar.gz
tar zxvf freepbx-2.2.0rc3.tar.gz
cd freepbx-2.2.0rc3
./install_amp


Would it be usable as is?

Merci!


Tested on one server, it's working. During the install, it asks you to override or not the config file, choose no for every file. Then go to the page https://yourserver/admin, then module admin and update the module you want.

Beta3 is about to be ready, it's based on trixbox 2 (some rpm updated, asterisk support speex codec, freePBX upgraded to 2.2RC3).
For the same reasons as beta1 to beta2, I won't provide any upgrade script from beta2 to beta3, you should be able to do this with the automatic backup procedure during the uninstall.
C'est la fin du monde !!! :lol:

jazbokes

[Anounce] smeserver-trixbox-fws-beta2
« Reply #33 on: January 08, 2007, 05:10:29 PM »
It appears that freepbx 2.2 is out  and check trixbox fork at  
http://www.elastix.org

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[Anounce] smeserver-trixbox-fws-beta2
« Reply #34 on: January 08, 2007, 06:38:51 PM »
Ok, thanks for the info, I replaced freePBX2.2rc3 with the stable one 2.2. For elastix, I just looked at their site, but I don't think it brings anything interesting for SME compared to trixbox. As I already spent a lot of time in the integration of trixbox (smeserver-trixbox is quite different from the original trixbox, even if it's based on the same applications), I won't start from scratch for something which is almost the same.
C'est la fin du monde !!! :lol:

Offline svangool

  • ***
  • 73
  • +0/-0
[Anounce] smeserver-trixbox-fws-beta2
« Reply #35 on: January 13, 2007, 02:18:34 AM »
Hi VIP-ire,

My compliments for your work!

I purchased some cards from Digium to try your setup, but before doing that I want to go to SME 7.1 (from 7.0) but there seem to be problems with Spamassassin under Fetchmail and Dynamic DNS, I first want to be sure that I can apply fixes.

Meanwhile I see a lot of messages about the combination of Asterisk and different kernel versions not working very well.

Did you or anyone else using Trixbox have problems like that with SME 7.1?

I have my SME 7.0 system running in "normal" server/gateway mode.

Best regards, Sjef.
......

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
[Anounce] smeserver-trixbox-fws-beta2
« Reply #36 on: January 13, 2007, 04:18:45 AM »
The zaptel package will be sensitive to the kernel version. So updating the kernel must be done when there is a know working version of zaptel for that specific kernel.

Going into production with SME/Trixbox/Digium would be complicated if you use a lot of add-ons. My suggestion is to give it a good try to make sure your setup survives a couple of updating cycles.
Sophie from Montréal

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[Anounce] smeserver-trixbox-fws-beta2
« Reply #37 on: January 15, 2007, 11:56:20 AM »
As far as I've tested the zaptel modules (I only have a TDM400 card from digium), they work with all the kernels, from the oldest one of 7.0 (2.6.9-34) to the last one (2.6.9-42.0.3) for both EL and ELsmp. All you have to do is to install smeserver-trixbox after the upgrade to 7.1. If you have allready installed smeserver-trixbox and then want to upgrade to 7.1 (with the new kernel) you'll need to manually copy the module in the correct directory:

Code: [Select]
mkdir -p /lib/modules/2.6.9-42.0.3.EL/extra/
cp -aR /lib/modules/2.6.9-34.EL/extra/* /lib/modules/2.6.9-42.0.3.EL/extra/
depmod -ea
genzaptelconf


replace EL with ELsmp if needed
C'est la fin du monde !!! :lol:

Offline svangool

  • ***
  • 73
  • +0/-0
[Anounce] smeserver-trixbox-fws-beta2
« Reply #38 on: February 02, 2007, 08:34:15 AM »
I installed two digium 400 cards and the latest version of Trixbox from here on to my SME server.
I have a SME 7.1 system upgraded from SME 7.0.

Observations when I configure 2 zap extensions and 1 sip extension:
    1 None of the extension*.conf files are changing in /etc/asterisk but the UI remembers the settings.
    2 None of the sip*.conf files are changing
    3 Only the vm*.conf (voice-mail) files are changing in /etc/asterisk
    4 Yes, I do push the red bar to enable changes
    5 Whatever I try with X-lite (V2, V3, nat, no-nat etc.) I keep getting 404 error (not registering).
    6 I can dial voicemail and the internal weather engine (611) with the zap-phones.
    7 None of the extensions can dial each other.

I have the feeling that the first two point are causing the last three points.

Has anyone tried this?
......

Offline svangool

  • ***
  • 73
  • +0/-0
[Anounce] smeserver-trixbox-fws-beta2
« Reply #39 on: February 02, 2007, 10:57:15 AM »
BTW,

I did change the file Trixbox by entering new passwords.
But I can only enter mydomain.tld/admin by my SME system admin user and password and also in there I can only enter the flashpanel by the SME system admin user and password again.
I did not enter any settings in the trixbox section of server-manager.

I'm showing this because there might be a mismatch with the mysql settings.
......

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[Anounce] smeserver-trixbox-fws-beta2
« Reply #40 on: February 02, 2007, 12:34:35 PM »
Hi. I would need some error messages from the logs. Just have a look at /var/log/httpd/error_log when you try to configure something thru freePBX. You can also have some information in /var/log/messages and /var/log/asterisk/full.

When you say, I did change the file trixbox by entering new paswords, have you changed it before the installation?
C'est la fin du monde !!! :lol:

Offline svangool

  • ***
  • 73
  • +0/-0
[Anounce] smeserver-trixbox-fws-beta2
« Reply #41 on: February 03, 2007, 03:18:42 PM »
Asterisk-full while changing a display-name of an extension and selecting the "submit" button:

Feb  3 14:39:28 DEBUG[9989] manager.c: Manager received command 'login'
Feb  3 14:39:28 VERBOSE[9989] logger.c:   == Parsing '/etc/asterisk/manager.conf': Feb  3 14:39:28 VERBOSE[9989] logger.c:   == Parsing '/etc/asterisk/manager.conf': Found
Feb  3 14:39:28 VERBOSE[9989] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': Feb  3 14:39:28 VERBOSE[9989] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': Found
Feb  3 14:39:28 DEBUG[9989] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer
Feb  3 14:39:28 DEBUG[9989] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer
Feb  3 14:39:28 DEBUG[9989] acl.c: ##### Testing 127.0.0.1 with 0.0.0.0
Feb  3 14:39:28 DEBUG[9989] acl.c: ##### Testing 127.0.0.1 with 127.0.0.0
Feb  3 14:39:28 VERBOSE[9989] logger.c:   == Manager 'admin' logged on from 127.0.0.1
Feb  3 14:39:28 DEBUG[9989] manager.c: Manager received command 'Command'
Feb  3 14:39:28 DEBUG[9989] manager.c: Manager received command 'Command'
Feb  3 14:39:28 DEBUG[9989] db.c: Unable to find key '113/password' in family 'AMPUSER'
Feb  3 14:39:28 DEBUG[9989] manager.c: Manager received command 'Command'
Feb  3 14:39:28 DEBUG[9989] db.c: Unable to find key '113/ringtimer' in family 'AMPUSER'
Feb  3 14:39:28 DEBUG[9989] manager.c: Manager received command 'Command'
Feb  3 14:39:28 DEBUG[9989] db.c: Unable to find key '113/noanswer' in family 'AMPUSER'
Feb  3 14:39:28 DEBUG[9989] manager.c: Manager received command 'Command'
............................
Feb  3 14:39:28 DEBUG[9989] manager.c: Manager received command 'Command'
Feb  3 14:39:28 DEBUG[9989] db.c: Unable to find key '113/emergency_cid' in family 'DEVICE'
Feb  3 14:39:28 DEBUG[9989] manager.c: Manager received command 'Command'
.............................
Feb  3 14:39:28 DEBUG[9989] manager.c: Manager received command 'Command'
Feb  3 14:39:28 DEBUG[9989] db.c: Unable to find key '113/device' in family 'AMPUSER'
Feb  3 14:39:28 DEBUG[9989] manager.c: Manager received command 'Command'
Feb  3 14:39:28 VERBOSE[9989] logger.c:   == Manager 'admin' logged off from 127.0.0.1
Feb  3 14:39:28 DEBUG[9993] manager.c: Manager received command 'login'
Feb  3 14:39:28 VERBOSE[9993] logger.c:   == Parsing '/etc/asterisk/manager.conf': Feb  3 14:39:28 VERBOSE[9993] logger.c:   == Parsing '/etc/asterisk/manager.conf': Found
Feb  3 14:39:28 VERBOSE[9993] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': Feb  3 14:39:28 VERBOSE[9993] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': Found
Feb  3 14:39:28 DEBUG[9993] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer
Feb  3 14:39:28 DEBUG[9993] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer
Feb  3 14:39:28 DEBUG[9993] acl.c: ##### Testing 127.0.0.1 with 0.0.0.0
Feb  3 14:39:28 DEBUG[9993] acl.c: ##### Testing 127.0.0.1 with 127.0.0.0
Feb  3 14:39:28 VERBOSE[9993] logger.c:   == Manager 'admin' logged on from 127.0.0.1
Feb  3 14:39:28 VERBOSE[9993] logger.c:   == Manager 'admin' logged off from 127.0.0.1

Asterisk-full now applying changes after the previous submit:

Feb  3 14:44:49 DEBUG[10492] manager.c: Manager received command 'login'
Feb  3 14:44:49 VERBOSE[10492] logger.c:   == Parsing '/etc/asterisk/manager.conf': Feb  3 14:44:49 VERBOSE[10492] logger.c:   == Parsing '/etc/asterisk/manager.conf': Found
Feb  3 14:44:49 VERBOSE[10492] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': Feb  3 14:44:49 VERBOSE[10492] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': Found
Feb  3 14:44:49 DEBUG[10492] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer
Feb  3 14:44:49 DEBUG[10492] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer
Feb  3 14:44:49 DEBUG[10492] acl.c: ##### Testing 127.0.0.1 with 0.0.0.0
Feb  3 14:44:49 DEBUG[10492] acl.c: ##### Testing 127.0.0.1 with 127.0.0.0
Feb  3 14:44:49 VERBOSE[10492] logger.c:   == Manager 'admin' logged on from 127.0.0.1
Feb  3 14:44:49 DEBUG[10492] manager.c: Manager received command 'Command'
Feb  3 14:44:49 VERBOSE[10492] logger.c:   == Destroying musiconhold processes
Feb  3 14:44:49 VERBOSE[10492] logger.c:   == Parsing '/etc/asterisk/musiconhold.conf': Feb  3 14:44:49 VERBOSE[10492] logger.c:   == Parsing '/etc/asterisk/musiconhold.conf': Found
Feb  3 14:44:49 VERBOSE[10492] logger.c:   == Parsing '/etc/asterisk/musiconhold_additional.conf': Feb  3 14:44:49 VERBOSE[10492] logger.c:   == Parsing '/etc/asterisk/musiconhold_additional.conf': Found
Feb  3 14:44:49 DEBUG[10492] manager.c: Manager received command 'Command'
Feb  3 14:44:49 VERBOSE[10492] logger.c: The previous reload command didn't finish yet
Feb  3 14:44:49 VERBOSE[10492] logger.c:   == Manager 'admin' logged off from 127.0.0.1
Feb  3 14:44:49 DEBUG[10499] manager.c: Manager received command 'login'
Feb  3 14:44:49 VERBOSE[10499] logger.c:   == Parsing '/etc/asterisk/manager.conf': Feb  3 14:44:49 VERBOSE[10499] logger.c:   == Parsing '/etc/asterisk/manager.conf': Found
Feb  3 14:44:49 VERBOSE[10499] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': Feb  3 14:44:49 VERBOSE[10499] logger.c:   == Parsing '/etc/asterisk/manager_custom.conf': Found
Feb  3 14:44:49 DEBUG[10499] acl.c: 0.0.0.0/0.0.0.0/0.0.0.0 appended to acl for peer
Feb  3 14:44:49 DEBUG[10499] acl.c: 127.0.0.1/255.255.255.0/255.255.255.0 appended to acl for peer
Feb  3 14:44:49 DEBUG[10499] acl.c: ##### Testing 127.0.0.1 with 0.0.0.0
Feb  3 14:44:49 DEBUG[10499] acl.c: ##### Testing 127.0.0.1 with 127.0.0.0
Feb  3 14:44:49 VERBOSE[10499] logger.c:   == Manager 'admin' logged on from 127.0.0.1
Feb  3 14:44:50 VERBOSE[10499] logger.c:   == Manager 'admin' logged off from 127.0.0.1
Feb  3 14:45:36 DEBUG[28930] manager.c: Manager received command 'Command'

Httpd-error_log while doing all of the above:

[Sat Feb 03 14:26:35 2007] [error] [client 192.168.207.1] File does not exist: /home/e-smith/files/ibays/Primary/html/css, referer: https://www.mydomain.nl/admin/cdr/cdr.php?s=1&posted=1
[Sat Feb 03 14:26:35 2007] [error] [client 192.168.207.1] File does not exist: /opt/asterisk/html/admin/cdr/images/clear.gif, referer: https://www.mydomain.nl/admin/cdr/cdr.php?s=1&posted=1
[Sat Feb 03 14:26:35 2007] [error] [client 192.168.207.1] File does not exist: /opt/asterisk/html/admin/cdr/images/corner-br.png
[Sat Feb 03 14:26:35 2007] [error] [client 192.168.207.1] File does not exist: /opt/asterisk/html/admin/cdr/images/corner-bl.png
sh: /var/log/asterisk/freepbx-retrieve.log: Permission denied
sh: /var/log/asterisk/freepbx-bounce_op.log: Permission denied

I also see a packet denied each 5 minutes in iptables/current:
2007-02-03 14:59:16.262745500 Feb  3 14:59:16 mydomain denylog, don't know if it is related: IN=ppp0 OUT= MAC= SRC=XX.XX.XX.XX DST=255.255.255.255 LEN=142 TOS=00 PREC=0x00 TTL=64 ID=0 DF PROTO=UDP SPT=57129 DPT=3865 LEN=122
Where xx. etc is my own external IP-address.

No related messages in /var/log/messages, freepbx-retrieve and bounce_op logs are empty.

Yes, I did change the passwords before the installation.
......

Offline Daniel B.

  • *
  • 1,699
  • +0/-0
    • Firewall Services, la sécurité des réseaux
[Anounce] smeserver-trixbox-fws-beta2
« Reply #42 on: February 03, 2007, 07:01:14 PM »
Well, first, it seems that you have a permission problem for the log. Verify that the user www is in the group asterisk
Code: [Select]
cat /etc/group | grep asterisk, then try a
Code: [Select]
chown -R asterisk:asterisk /var/log/asterisk

But I don't think it's the only problem.
The packet which is reject seems de be related to XPL (port 3865), have you install this module? I never tested it, I've just verified that the install was ok and that the process were running, but I don't know how we can use it. maybe you could remove it if you don't need it with this command
Code: [Select]
sh trixbox remove_xpl
from the trixbox directory.

For the configuration which is not reflected in the configuration file (extension*.conf), I don't understand, have you put special caracteres in the password when you have modified it? I already had problem with some caracters, I don't remember which ones, I usually just put alphanumeric caracters.

The fact that the UI remembers the settings means that the mysql part works (the configuration is stored in a mysql db, then with some scripts, it's reflected in the ocnfiguration files). The problem could come from permissions on scripts. Check the scripts in /var/lib/asterisk/bin/, they should belong to asterisk:asterisk with execution permission.

Can you tell me also if you had any error message during the install.
Maybe you could try to remove everything
Code: [Select]
sh trixbox remove
then try to restart the install. First just install the base and see if it's working, then you can install all the other modules one by one.
C'est la fin du monde !!! :lol:

Offline svangool

  • ***
  • 73
  • +0/-0
[Anounce] smeserver-trixbox-fws-beta2
« Reply #43 on: February 04, 2007, 01:31:56 PM »
Permissions are correct.
I removed Trixbox and only installed the base.

Then I saw this one:

Feb  4 12:14:37 WARNING[7859] res_config_mysql.c: MySQL RealTime: No database port found, using 3306 as default.
Feb  4 12:14:37 WARNING[7859] res_config_mysql.c: MySQL RealTime: No database socket found, using '/tmp/mysql.sock' as default.
Feb  4 12:14:37 DEBUG[7859] res_config_mysql.c: MySQL RealTime Host: 127.0.0.1
Feb  4 12:14:37 DEBUG[7859] res_config_mysql.c: MySQL RealTime Port: 3306
Feb  4 12:14:37 DEBUG[7859] res_config_mysql.c: MySQL RealTime User: asteriskuser
Feb  4 12:14:37 DEBUG[7859] res_config_mysql.c: MySQL RealTime Password: password
Feb  4 12:14:37 ERROR[7859] res_config_mysql.c: MySQL RealTime: Failed to connect database server asteriskrealtime on 127.0.0.1 (err 2003). Check debug for more info.
Feb  4 12:14:37 DEBUG[7859] res_config_mysql.c: MySQL RealTime: Cannot Connect (2003): Can't connect to MySQL server on '127.0.0.1' (111)
Feb  4 12:14:37 WARNING[7859] res_config_mysql.c: MySQL RealTime: Couldn't establish connection. Check debug.
Feb  4 12:14:37 DEBUG[7859] res_config_mysql.c: MySQL RealTime: Cannot Connect: Can't connect to MySQL server on '127.0.0.1' (111)
Feb  4 12:14:37 NOTICE[7859] config.c: Registered Config Engine mysql
Feb  4 12:14:37 VERBOSE[7859] logger.c: MySQL RealTime driver loaded.

I checked, these lines were also there in previous installations, I missed them.

Got it working (the 127.0.0.1 doesn't work and the /tmp socket was not there) by changing res_mysql.conf in /etc/asterisk into:
Code: [Select]
[general]
dbhost = localhost
dbname = asteriskrealtime
dbuser = asteriskuser
dbpass = password
dbport = 3306
dbsock = /var/lib/mysql/mysql.sock


And don't forget (as I did) to change the password for your own.
The extensions files and others are being updated now, now I'm checking the rest.
......

iam

Re: Updating modules
« Reply #44 on: February 13, 2007, 10:29:06 AM »
Quote from: "soprom"
I get some errors when I try to update modules from FreePBX with the link "Check for updates online"...

Quote
Dec 23 14:55:44 roamer httpd: PHP Warning:  file_get_contents(): URL file-access is disabled in the server configuration in /opt/asterisk/html/admin/functions.inc.php on line 1099
Dec 23 14:55:44 roamer httpd: PHP Warning:  file_get_contents(http://mirror.freepbx.org/modules-2.2.xml): failed to open stream: no suitable wrapper could be found in /opt/asterisk/html/admin/functions.inc.php on line 1099
Dec 23 14:55:44 roamer httpd: PHP Warning:  array_keys(): The first argument should be an array in /opt/asterisk/html/admin/page.modules.php on line 120
Dec 23 14:55:44 roamer httpd: PHP Warning:  Invalid argument supplied for foreach() in /opt/asterisk/html/admin/page.modules.php on line 120
Dec 23 14:55:44 roamer httpd: PHP Fatal error


Is this "URL file-access is disabled " by design?



Hello just installed beta3. Still can't update modules in free bpx:

Module Administration

Warning: Cannot connect to online repository (mirror.freepbx.org). Online modules are not available.

Is there any possibility to switch this feature on.

Sincerely
Kirill