Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: Daniel B. on September 11, 2007, 06:22:25 PM
-
Hi everyone. I'm proud to announce the latest trixbox contrib for our favourite distro.
This package is still called smeserver-trixbox, even if now there's a lot of changes from trixbox.
The core of the package stay the same (asterisk, freepbx, fop, recordings), but the other stuff change:
- vtigerCRM 5.03 definitly replace sugarCRM (it's a patched version of vtiger which works with php4 and offers asterisk integration like click-to-dial and popup on incomming calls)
- meetme, maint, a2billing were removed as it represent a lot of work and I don't use it.
- hylafax + smeserver-hylafax (thanks dungog) + iaxmodem can be installed and configured, this way you can send faxs through one PSTN line, and without any additionnal physical modem
- All the rpms are downloaded directly from trixbox/dag/dungog repo
- zaptel modules are now rpm packaged (I just recompile the srpm from trixbox to match our kernel, only 2.6.9-55.0.2.EL and 2.6.9-55.0.6.EL both smp and non-smp are supported, if you're using an older kernel, please upgrade your server or the script won't install anything)
- The panel in the server-manager have changed, now there's a new section called trixbox
A lot of little bug fix and enhancement.
If you want to try:
http://sme.firewall-services.com/spip.php?rubrique5
-
Hi VIP-ire,
Thanks, I've been waiting for that!
Questions:
- Do you think that an update from your beta3 (Freepbx upgraded to 2.2.3 and Asterisk to 1.2.23) would work?
- What versions of Trixbox, Freepbx, Asterisk and Zaptel did you package?
Sjef
-
Hi.
An upgrade from beta3... I'm not sure, I haven't try. One of the problem is that I've changed the WEBROOT in amportal.conf, now freepbx lives in /opt/asterisk/admin instead of /opt/asterisk/html/admin. But you can upgrade more or less manually. Just edit the trixbox script, and look at the begining, search where the repo are configured, you can set them manually, and upgrade all the rpms with yum --enablerepo=trixbox update. Then, to upgrade freepbx, look a the directory webapps in the archive, you'll find a directory called freepbx in which the archive of the latest freepbx is. Just extract this archive in your actual freepbx location and run the magic commande
./start_asterisk start
./install_amp
Of course you should backup everything before, and if you have a test server, you should try on it first.
For the versions of the rpms, it's the latest from trixbox as they are downloaded from trixbox repo (and some deps from dag and hylafax from dungog)
-asterisk-1.2.22-1
-zaptel-1.2.19-1
-freepbx 2.3
-vtigerCRM 5.03
- hylafax 4.3.4-1
-
I attempted to install your contrib, the script is unable to complete installation with following error.. running on smeserver 7.2
SETTING FILE PERMISSIONS
Permissions OK
-------------------------------------------
Setting language in configuration files
-------------------------------------------
trixbox: line 443: install_panels: command not found
-------------------------------------------
Setting asterisk_cleanup to be executed daily
-------------------------------------------
-------------------------------------------
Setting Startup Scripts
-------------------------------------------
trixbox: line 484: syntax error near unexpected token `done'
trixbox: line 484: ` done'
Thanks
john
-
Hi. I've just tested to download it and it's working, so I think you had a problem during your downloading. Can you retry ?
I've also updated the archive as there was a problem detcting the supported kernel for version 2.6.9-55.0.2.EL(smp), it's corrected now.
-
Hi VIP-ire,
My system was updated this week to kernel 2.6.9-55.0.6.EL with yum, does that make a difference for this package?
It did for your beta3, because I had to perform your trick http://forums.contribs.org/index.php?topic=34264.msg153820#msg153820 (http://forums.contribs.org/index.php?topic=34264.msg153820#msg153820) again yesterday to get Zaptel working (it did work with the 2.6.9-55.0.2.EL) with SME 7.2.
Sjef.
-
HI.
There's no more need to do this dirty trick for zaptel to work, now I recompile the srpms from trixbox so they match SME kernels. In the package, there's support for version 2.6-55.0.2.EL and 2.6-55.0.6.EL both smp and non-smp. I'll try to do so each time a new kernel is released, and as quickly as possible.
You can get them here:
http://sme.firewall-services.com/downloads/smeserver-trixbox/rpms/
-
Thanks for all your effort and for delivering me hours of pleasure playing with trixbox on my sme server. I’ve got a question regarding restoring the backup your script makes when I remove it. Basically when I uninstall beta 3 how do I restore my settings to beta 4?
-
Hi.
As this is still beta release, I do not provide upgrade support in the script. Maybe I'll do when I consider the product stable. For now, upgrade must be done manually. The global steps are the following:
Set the trixbox repository (edit the trixbox script and look for db yum_repository, you'll find the command which will set it)
yum --enablerepo=trixbox update asterisk asterisk-sounds asterisk-addons zaptel
This will update the most important rpms.
Then install the zaptel kernel modules, you can find it here:
http://sme.firewall-services.com/downloads/smeserver-trixbox/rpms/
Just download them and yum localinstall the one you need.
After, you can download the latest freepbx package from their website and perform the upgrade manually (documentation on their website http://freepbx.org).
Once this is done, you can install the fax stuff with
sh trixbox install_fax
I do not provide real support for upgrades now because this kind of installations are quite often personalized and it's hard to write a step by step how-to
-
I keep getting the following error:
"Could not reload FOP server"
I've uninstalled/reinstalled a couple of times, but still get the error.
Any ideas?
Nullig
-
Daniels,
Thanks for the contrib. it's installed OK and asterisk work great.. and I was trying to test the pop ups on vtigercrm.. are they working for you.. I can only get clicktocall working.. Is there anything else I have to setup other than the asterisk extension as SIP/xxxx
Thanks
-
I keep getting the following error:
"Could not reload FOP server"
I've uninstalled/reinstalled a couple of times, but still get the error.
Any ideas?
Nullig
Hi. This error is "normal". I mean, I cannot find a easy solution to remove it. It's not veryy important, it just means that when you apply a configuration with freePBX, it cannot restart it (but it write the configuration files for fop). This problem is because on trixbox, apache is running under user asterisk, so it has permission to start/stop fop (which also runs under asterisk). I've manage to remove most of the error messages by adjusting permissiosn on file but not that one. If you want to reload fop, you can do so in the panel "security" in the server-manager, or on the command line: amportal restart_fop.
Daniels,
Thanks for the contrib. it's installed OK and asterisk work great.. and I was trying to test the pop ups on vtigercrm.. are they working for you.. I can only get clicktocall working.. Is there anything else I have to setup other than the asterisk extension as SIP/xxxx
Thanks
Hi. Yes, they are working, but there's a little configuration. I haven't take the time to write it yet, so here's a quick how-to. Imagine you want a ring group to be rung on incoming calls, which contains extensions 100 101 102 and 103. The ring group number in this example is 600. Create the ring group in freepbx. Now, log into your server and look at the file /etc/asterisk/extension_additional.conf. You should find something like this:
[ext-group]
include => ext-group-custom
exten => 600,1,Macro(user-callerid,)
exten => 600,n,GotoIf($["foo${BLKVM_OVERRIDE}" = "foo"]?skipdb)
exten => 600,n,GotoIf($["${DB(${BLKVM_OVERRIDE})}" = "TRUE"]?skipov)
exten => 600,n(skipdb),Set(__NODEST=)
exten => 600,n,Set(__BLKVM_OVERRIDE=BLKVM/${EXTEN}/${CHANNEL})
exten => 600,n,Set(__BLKVM_BASE=${EXTEN})
exten => 600,n,Set(DB(${BLKVM_OVERRIDE})=TRUE)
exten => 600,n(skipov),Set(RRNODEST=${NODEST})
exten => 600,n(skipvmblk),Set(__NODEST=${EXTEN})
exten => 600,n,Set(RecordMethod=Group)
exten => 600,n,Macro(record-enable,100-101-102-103,${RecordMethod})
exten => 600,n,Set(RingGroupMethod=ringall)
exten => 600,n(DIALGRP),Macro(dial,20,${DIAL_OPTIONS},100-101-102-103)
exten => 600,n,Set(RingGroupMethod=)
exten => 600,n,GotoIf($["foo${RRNODEST}" != "foo"]?nodest)
exten => 600,n,Set(__NODEST=)
exten => 600,n,dbDel(${BLKVM_OVERRIDE})
exten => 600,n,Goto(app-blackhole,hangup,1)
exten => 600,n(nodest),Noop(SKIPPING DEST, CALL CAME FROM Q/RG: ${RRNODEST})
Just copy this part in /etc/asterisk/extension_custom.conf, and change it like this:
[custom-ring-group]
include => ext-group-custom
exten => 600,1,Macro(user-callerid,)
exten => 600,n,GotoIf($["foo${BLKVM_OVERRIDE}" = "foo"]?skipdb)
exten => 600,n,GotoIf($["${DB(${BLKVM_OVERRIDE})}" = "TRUE"]?skipov)
exten => 600,n(skipdb),Set(__NODEST=)
exten => 600,n,Set(__BLKVM_OVERRIDE=BLKVM/${EXTEN}/${CHANNEL})
exten => 600,n,Set(__BLKVM_BASE=${EXTEN})
exten => 600,n,Set(DB(${BLKVM_OVERRIDE})=TRUE)
exten => 600,n(skipov),Set(RRNODEST=${NODEST})
exten => 600,n(skipvmblk),Set(__NODEST=${EXTEN})
exten => 600,n,Set(RecordMethod=Group)
exten => 600,n,Macro(record-enable,100-101-102-103,${RecordMethod})
exten => 600,n,Set(RingGroupMethod=ringall)
exten => 600,n,AGI,ident.agi|100
exten => 600,n,AGI,ident.agi|101
exten => 600,n,AGI,ident.agi|102
exten => 600,n,AGI,ident.agi|103
exten => 600,n(DIALGRP),Macro(dial,20,${DIAL_OPTIONS},100-101-102-103)
exten => 600,n,Set(RingGroupMethod=)
exten => 600,n,GotoIf($["foo${RRNODEST}" != "foo"]?nodest)
exten => 600,n,Set(__NODEST=)
exten => 600,n,dbDel(${BLKVM_OVERRIDE})
exten => 600,n,Goto(app-blackhole,hangup,1)
exten => 600,n(nodest),Noop(SKIPPING DEST, CALL CAME FROM Q/RG: ${RRNODEST})
The script which will display the popup is ident.agi
Now you can remove the ring group you have created at the begining in freePBX, it was just to have an example. And, in your inbound routes, select the destination to be a custom app with these parameters:
custom-ring-group,600,1
Now apply the config, and try an inbound call, you should have a popup on the account associated with extensions 100 101 102 103.
Cheers
-
@VIP_ire
I finally solved the problem by changing the following line in the /etc/passwd file from:
asterisk:x:454:454:Asterisk VoIP PBX:/var/lib/asterisk:/bin/false
to
asterisk:x:454:454:Asterisk VoIP PBX:/var/lib/asterisk:/bin/bash
That got rid of the error.
BTW, thanks so much for the install script - you've done a terrific job there.
Nullig
-
[root@devsrv ~]# /sbin/e-smith/db accounts set $URL asterisk-url comment 'reserved url for asterisk'
/sbin/e-smith/db dbfile set key type [prop1 val1] [prop2 val2] ...
-
[root@devsrv ~]# /sbin/e-smith/db accounts set $URL asterisk-url comment 'reserved url for asterisk'
/sbin/e-smith/db dbfile set key type [prop1 val1] [prop2 val2] ...
What does it means? Can you explain with some more details the error?
-
Sorry it took while to reply.. I noticed that line while running the script trixbox.sh it appears something is missing on the db command..
smeserver-trixbox.fws base contains:
* asterisk, the core of this package
* freePBX, a php interface for asterisk's configuration
* Flash Operator Panel, a flash application which allows you to control asterisk in real time through a web page
* Recordings, a php application which allows users to listen their messages and change some settings of their account
----------------------------------------------------------------
| Installing............. |
| |
| This can take some time... |
---------------------------------------------------------------
/sbin/e-smith/db dbfile set key type [prop1 val1] [prop2 val2] ...
-------------------------------------------
Adding the user and group asterisk
-------------------------------------------
Adding group asterisk...
adding user asterisk...
-------------------------------------------
Creating WEBROOT directory
------------------------------------------
Thanks
jon
-
You have a problem on these lines of the script:
# On inscrit la version, ça pourra être utile pour des MaJ
/sbin/e-smith/db trixbox set version beta4
# Pour les URL on inscrit une valeur dans la DB account pour le réserver
for URL in panel recordings; do
/sbin/e-smith/db accounts set $URL asterisk-url comment 'reserved url for asterisk'
done
# Idem pour l'utilisateur asterisk
/sbin/e-smith/db accounts set asterisk system-user comment 'reserved account for asterisk'
Can you try to type it manually (copy/past the lines)
-
Thanks for your prompt reply..
I'm still getting the same error, I tried typing and pasting still the same.. and this on updated smeserver 7.2.. Does it work for you?
Thanks in advance..
John..
-
Yes, it's working for me and all the server on wich I've installed this contrib (about 8)
Try to type the following lines, one by one:
/sbin/e-smith/db accounts set panel asterisk-url comment 'reserved url for asterisk'
/sbin/e-smith/db accounts set recordings asterisk-url comment 'reserved url for asterisk'
/sbin/e-smith/db accounts set asterisk system-user comment 'reserved account for asterisk'
And tell me which one gives the error.
Does the contrib works for you even if you have an error message, or does the install stop?
-
Thanks again,
All the three dbs work ok except $URL for asterisk
#/sbin/e-smith/db accounts set panel asterisk-url comment 'reserved url for asterisk'
#
#/sbin/e-smith/db accounts set recordings asterisk-url comment 'reserved url for asterisk'
#
# /sbin/e-smith/db accounts set asterisk system-user comment 'reserved account for asterisk'
#
#/sbin/e-smith/db accounts set $URL asterisk-url comment 'reserved url for asterisk'
/sbin/e-smith/db dbfile set key type [prop1 val1] [prop2 val2] ...
#
It's seems to work ok. with the error . still testing..
-
This file is missing.. $WEBROOT/panels/op_server.cfg.fws from the latest install script
# sed -e "s/__ASTERISK_MANAGER_USER__/$ASTERISK_MANAGER_USER/g" $CD/webapps/freepbx/op_server.cfg | sed -e "s/__ASTERISK_MANAGER_PASS__/$ASTERISK_MANAGER_PASS/g" | sed -e "s/__FOP_PASS__/$FOP_PASS/g" | sed -e "s/fop_webroot/$FOPROOT/g" > $WEBROOT/panels/op_server.cfg.fws
-bash: /panels/op_server.cfg.fws: No such file or directory
Thanks
john
-
Looks like you're trying to install it manually by typing all the lines of the script one by one. It cannot works this way. Here, it complains about $WEBROOT/panels/op_server.cfg.fws not found but:
in the script, it's $WEBROOT/panel/op_server.cfg.fws (without the 's')
and $WEBROOT is a variable defined in the script, and it's value is /opt/asterisk. Outside of the script, this variable is not declared, so it'll have an empty string as value.
You should really let the script do it's job.
-
Thanks again. Beta contribs has been working pretty good.
A few question /request..
1. Will you be upgrading to asterisk-1.2.13 zaptel-1.21.1 Iaxmodem-0.3.2 & hylafax-4.4.2 or latest releases
2. Add Virtual Fax GUI like Elastix.org
3. howto add more iaxmodem
4 Trixbox Phone provision (Endpointcfg) http://yum.trixbox.org/centos/4/RPMS/tbm-endpointcfg-1.1.0.27-2.noarch.rpm
Thanks
Jon..
-
Hi
Thanks again. Beta contribs has been working pretty good.
A few question /request..
1. Will you be upgrading to asterisk-1.2.13 zaptel-1.21.1 Iaxmodem-0.3.2 & hylafax-4.4.2 or latest releases
zaptel, asterisk, spandsp, and some others rpm will follow trixbox versions (you can upgrade them with a yum --enablerepo=trixbox update). iaxmodem, I'm not sure. Release 0.3.1 didn't work, I haven't tested 0.3.2. For hylafax, it will follow the release on dungog's repo. Then, for the zaptel module, you should find the latest version here:
http://sme.firewall-services.com/downloads/smeserver-trixbox/rpms/
2. Add Virtual Fax GUI like Elastix.org
Maybe I'll add a web interface for hylafax, there are several projects.
3. howto add more iaxmodem
It's quite simple to add iaxmodems instances. You'll find several how-to on the web,
4 Trixbox Phone provision (Endpointcfg) http://yum.trixbox.org/centos/4/RPMS/tbm-endpointcfg-1.1.0.27-2.noarch.rpm
For this part, I'll wait for freePBX 3, it should include provisionning for several phones. I've allready configure provisionning for polycom phones witht he actual smeserver-trixbox contrib. I'll try to publish the how-to as soon as possible
Cheers, Daniel
-
hello
helpme I do not succeed to configure one hfc card and one x100 card
i have used the script install-zaphfc but reconfigure asterisk e don't work, i have used bristuff ver. 1y-k and zaptel 1.4.6 without result and have used mISDN like described on the site misdn.org.
it is possible configure this card?
tanks Dario
excuse me for my orrible english
bye
-
This contrib should not be used with bristuff, and I'm not sure which script you are talking about when you say install-zaphfc. For the x100 card, I don't know, I only used TDM400 cards from digium, they are working great, and quite out of the box. For the ISDN card, I've configured a b410p (still from digium) with the misdn driver, it's also working. Here's the how-to:
http://sme.firewall-services.com/spip.php?article51
-
hi
tanks for your answer
the x100 card is really X100P original digium card with one fxo ports
thanks again
dario
-
Hello,
I have realized the install without problem.
I have 4 entries in the SME admin panel, but 3 of them are permission denied.
The only allowed item is "asterisk management" to add user admin users to fop & asterisk. I added a SME account with succes.
but it's impossible to enter in other topics even with sme admin account or the new account added.
Do you have a solution ?
Regards,
pascal
-
Hi.
Please, tell me exactly how you access the server-manager, from the local network? outside? through a ssh tunnel?
Have a look at the logs:
tail -f /var/log/httpd/error_log
Have you got any other contribs installed?
-
Ok, I understand the problem. Please, download again the archive (I'm uploading it now, so wait a few minutes). The problem is corrected. It was a dependency problem (zaptel should be installed before the other rpms). Cheers, daniel
-
Hi Daniel
Were you able to complete the the provisioning script for polycom phones
and have you had chance to install the Aastra XML auto provisioning rpm..
Thanks in advance
Jon..
-
I use auto-provisionning for polycom with FTP, it's working quite well. But I haven't write any documentation yet. For aastra phones, I don't know, I never used.