Koozali.org: home of the SME Server

Asterisk on SME7

cyr

Asterisk on SME7
« on: September 09, 2005, 05:35:42 PM »
Hi,

If some people are interrested to have asterisk on SME, go to http://firewall-services.com and test the little contrib A4SME.

Cyr

Offline edb

  • *
  • 546
  • +0/-0
Asterisk on SME7
« Reply #1 on: September 09, 2005, 09:11:52 PM »
Do you have an uninstall script as well? Thanks
......

Offline gregswallow

  • *
  • 651
  • +1/-0
Asterisk on SME7
« Reply #2 on: September 10, 2005, 09:37:32 AM »
Looks cool Cyr.  What hardware are you using it with?

I assume it is easier to follow how Asterisk@Home does it, but there are some rpms here for asterisk, zaptel, spandsp, etc if you want to try to make the install more rpm-based.

http://atrpms.net/dist/el4/

Offline cno

  • *
  • 35
  • +0/-0
Asterisk on SME7
« Reply #3 on: September 10, 2005, 10:10:29 AM »
just installed SME 7 beta2, and installed
Asterisk, when I click on "APM" first I get a security warning and next "The page cannot be displayed"
........................

Offline gregswallow

  • *
  • 651
  • +1/-0
Asterisk on SME7
« Reply #4 on: September 10, 2005, 10:11:17 AM »
cno - did you post upgrade and reboot?  If not, try that.  No offence to Cyr, but keep in mind this would definitly be in the experimental category at the moment.  If you are trying this it should be with the intention of helping Cyr find and fix bugs.

Offline StuC

  • **
  • 46
  • +0/-0
Asterisk on SME
« Reply #5 on: September 10, 2005, 11:57:05 AM »
I had a few failed attempts (Kernel Panics)
but that may be due to my old hardware, of the fact I was underclocking the PII 450, went in at third attempt. (I you hit enought time maybe it will work method):hammer:

One problem them was that I was not using the SME box (private server mode) as the proxy server or dns so the AMP page would not display from the server-manager page.

All installed and running now, one softphone (X-Lite) will register but wont accept calls, another hard phone (Grandstream GXP2000) wont register yet.

I am completely new to Asterisk so sure probs will be my lack of knowledge.
Thanks for the contrib, sure it has loads of life in it and I look forward to getting it going.

I see SugarCRM is installed but have not worked out how to get to that other than through the server-manager page yet.
Just found I can get to SugarCRM From
https://server.domain.etc/server-manager/amp/crm/
not sure how users without access to the server page will fare

Offline cno

  • *
  • 35
  • +0/-0
Asterisk on SME7
« Reply #6 on: September 10, 2005, 12:08:25 PM »
Quote from: "gregswallow"
cno - did you post upgrade and reboot?  If not, try that.  No offence to Cyr, but keep in mind this would definitly be in the experimental category at the moment.  If you are trying this it should be with the intention of helping Cyr find and fix bugs.


the first time I tried no, then I Do post upgrade and reboot
stil the same error.
........................

janvantil

downloading Asterisk/A4SME.tar.gz
« Reply #7 on: September 11, 2005, 01:26:03 AM »
I tried to download the file Asterisk/A4SME.tar.gz at the site, but the server refused me. Will it also work on sme 6.01 ??

cyr

Asterisk on SME7
« Reply #8 on: September 11, 2005, 05:56:43 PM »
Hi,

There seems to be a lot of questions and I'm not sure I can answere to all of you but I will try.

     gregswallow wrote :

     Looks cool Cyr. What hardware are you using it with?

I use soft (xlite) and hardphone with a sip privider for french people name wengo :-)

      I assume it is easier to follow how Asterisk@Home does it, but there are some rpms here for asterisk, zaptel, spandsp, etc if you want to try to make the install more rpm-based.

Yes, I know, but I wanted to use the great job of the Asterisk@Home team

       cno wrote :
       
       just installed SME 7 beta2, and installed
Asterisk, when I click on "APM" first I get a security warning and next "The page cannot be displayed"

Did you have a good name resolution of your sme test server from your client?
Take a look at /root/install_asterisk.log on your server, you should see at the end "asterisk started", if not try to understand why it did not start whith the log file or try to reinstall in a different connfiguration

       janvantil  wrote :

       I tried to download the file Asterisk/A4SME.tar.gz at the site, but the server refused me. Will it also work on sme 6.01 ??

I don't no why the server refused you, perhaps you should try again later.
And it will not work on sme6 because sme6 is based on rh73 with kernel 24.

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Asterisk on SME7
« Reply #9 on: September 11, 2005, 10:00:19 PM »
Thanks for your efforts!

I installed on a fresh SME7b2 and also receive a blank page.
There was a message saying that amp did not start but I can't retrace it in the logs.

Also when setting permissions:
Code: [Select]

SETTING FILE PERMISSIONS
chown: cannot access /var/run/asterisk': No such file or directory
chown: cannot access /var/log/asterisk': No such file or directory
chown: cannot access /dev/zap': No such file or directory
Permissions OK
Done
touch: cannot touch /var/log/asterisk/cdr-csv/Master.csv': No such file or directory
chmod: cannot access /var/log/asterisk/cdr-csv/Master.csv': No such file or directory



I read from asterisk@home that a switch has to be set for installation on PII instead of PIII machine. That might cause a problem in my case since I'm running SME on a PII/333, 192MB-RAM

Where is the log for asterisk/amp ?

I also tried:
signal-event post-upgrade
signal-event reboot


From the install-log:
Code: [Select]
installing Zaptel Driver
-------------------------------------------
cp: cannot create regular file /usr/src/linux-2.6.9-11.EL/.config': No such file or directory
install_asterisk.sh: line 24: cd: /usr/src/linux-2.6.9-11.EL/: No such file or directory
mv: cannot stat Makefile': No such file or directory
sed: can't read Makefile.back: No such file or directory
make: *** No rule to make target modules_prepare'.  Stop.
Makefile:171: target ztdummy.o' given more than once in the same rule.
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c -o gendigits.o gendigits.c
make: cc: Command not found
make: *** [gendigits.o] Error 127
Makefile:171: target ztdummy.o' given more than once in the same rule.
cc -I. -O4 -g -Wall -DBUILDING_TONEZONE    -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"/etc/zaptel.conf\"   -c -o gendigits.o gendigits.c
make: cc: Command not found
make: *** [gendigits.o] Error 127
Makefile:171: target ztdummy.o' given more than once in the same rule.


and a little further in the log...

Code: [Select]

installing libpri driver
-------------------------------------------
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g     -c -o copy_string.o copy_string.c
make: gcc: Command not found
make: *** [copy_string.o] Error 127


Code: [Select]

Checking current version of AMP..1.10.007
Installing new AMP files..cp: cannot stat /etc/asterisk/voicemail.conf.template': No such file or directory
OK
Configuring install for your environment..sed: can't read /etc/asterisk/cdr_mysql.conf: No such file or directory
sed: can't read /etc/asterisk/cdr_mysql.conf: No such file or directory
sed: can't read /etc/asterisk/manager.conf: No such file or directory
sed: can't read /etc/asterisk/manager.conf: No such file or directory
sed: can't read /etc/asterisk/vm_email.inc: No such file or directory
/usr/src/AMP/apply_conf.sh: line 67: /usr/sbin/amportal: Permission denied
OK
Setting permissions on files..chown: cannot access /var/run/asterisk': No such file or directory
chown: cannot access /var/log/asterisk': No such file or directory
chown: cannot access /dev/zap': No such file or directory


So I guessed I needed to install gcc (!!)
Install went better but it's a no-go to open the web interface:
Code: [Select]

127.0.0.1 - admin [11/Sep/2005:19:13:54 -0400] "GET /server-manager//cgi-bin/pleasewait?/server-manager/cgi-bin/amp HTTP/1.1" 200 390
127.0.0.1 - admin [11/Sep/2005:19:13:56 -0400] "GET /server-manager//cgi-bin/amp HTTP/1.1" 200 407
127.0.0.1 - admin [11/Sep/2005:19:15:22 -0400] "GET /server-manager//cgi-bin/amp HTTP/1.1" 200 407
Sophie from Montréal

cyr

Asterisk on SME7
« Reply #10 on: September 12, 2005, 11:20:16 AM »
Quote
I installed on a fresh SME7b2 and also receive a blank page.


You should check if you can access your server with the name and not with the IP adress

guest22

Asterisk on SME7
« Reply #11 on: September 12, 2005, 12:57:10 PM »
The topic of this post should be ' problems with AMP'  not asterisk. Asterisk itself runs perfectly. All above 'errors'  are AMP related.

Offline Franco

  • *
  • 1,171
  • +0/-0
    • http://contribs.org
Asterisk on SME7
« Reply #12 on: September 12, 2005, 09:16:38 PM »
It should read "I think I found a bug". These are my experiences:
-Tested in 03 different systems and they all work. The problem seems that 7b2 is not resolving the hostnames correctly and therefore "The page cannot be displayed"
-The issue with the Pentium II and Pentium III are codec related, so it's not about your machine StuC.
-I tested on a Pentium II 350mhz/196ram, Pentium Celeron 587mhz/128ram and a Pentium III 500 mhz/512ram. VoiP equip. used to test was Artdio phone, Sipura and Xlite, X100P card.
-Amp can be accessed in all of them through http://sme/server-manager/amp/ but not thru Panel, which wants to go to http://www.smedomain/server-manager/amp
-Couple of things Post Upgrade is required to work and Zaptel drivers had to be compiled by hand.
-Thank you Cyr

Offline cno

  • *
  • 35
  • +0/-0
Asterisk on SME7
« Reply #13 on: September 12, 2005, 09:59:59 PM »
Hi
I tried also to access outside server-manager with no luck

then I tried to do this
https://beta-server/server-manager/amp/
then I have access to amp

and not this way
http://beta-server/server-manager/amp
(need the last / after amp)
........................

Offline gregswallow

  • *
  • 651
  • +1/-0
Asterisk on SME7
« Reply #14 on: September 13, 2005, 12:03:56 AM »
Quote from: "stuntshell"
-Couple of things Post Upgrade is required to work and Zaptel drivers had to be compiled by hand.


There are Zaptel drivers here, already compiled:
http://atrpms.net/dist/el4/zaptel/