Koozali.org: home of the SME Server
Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: SARK devs on November 09, 2012, 04:19:20 PM
-
Hi there
We've packaged SarkV4 for the little Raspberrypi and it runs surprisingly well. So, for 30 bucks or thereabouts for a Raspi, you can have a full version of SARK on it to play with.
I've put the installation instructions onto the wiki (see the link), it's dead easy to install, even if you've never played with an embedded system before. Give it a go; it's great fun.
http://www.sailpbx.com/mediawiki/index.php/SARK_V4.0.0_Raspi#Raspi_Install
Kind Regards
S
-
Hi,
Tried to install on my Iomega Iconnect (debian squeeze) and got:
root@iconnect:~# dpkg -i sailhpe_4.0.0-18_armhf.deb
dpkg: error processing sailhpe_4.0.0-18_armhf.deb (--install):
package architecture (armhf) does not match system (armel)
Errors were encountered while processing:
sailhpe_4.0.0-18_armhf.deb
Is there a way to install it on (armel) ?
Best
fpausp
-
yes there is a sarkhpe-armel image on the download site - just use that instead.
If you are running squeeze then you will get Asterisk 1.6 but other than that it should just run. We've run it on Squeeze during development. Also, our own Arm box (which is just coming out of development) is armel, tho' it runs wheezy.
let me know how you get on.
Kind Regards
S
-
Yep, installation went fine, ther was no need to give a mysql-password on my system (iomega iconnect) ...
I need some Time for testing, Thank you for your help.
Best
fpausp
-
I would like to use SARK V4.0.0 on arm for ham radio echolink connections (http://ohnosec.org/drupal/node/56), is this possible and how should I install it ?
-
You will need to to hand-compile asterisk on the target machine and then install sark with the --force-depends option (it will complain that asterisk is not installed otherwise). As far as I know, app_rpt only runs with asterisk 1.4 (wheezy will install 1.8 if you use apt-get). Also, we've only tested on arm5 and arm6l so if your cpu gives a different signature your mileage may vary.
Interesting project, let us know how you get on
Kind Regards
S
-
We've found an error in the maintainer scripts in sail_4.0.0-18.all.deb. They will cause problems if you attempt an upgrade on this release. However, as long as you remove the -18 release before you install a later release then all will be OK. I have placed a note to this effect and a "what to do if you've attempted an upgrade" onto the download library.
Kind Regards
S
-
OK, Thank you.
Best
fpausp
-
How many extensions can you use on the Raspi at the same time ?
-
No idea
We just built it for fun. I guess you'd have to try it and see. It runs pretty well tho' so I guess you'd get enough for a small office or a home PBX. Maybe if you test it you could let us know how you get on with it.
Kind Regards
S
-
OK, but I just use another hardware (iomega iconnect - with debian squeeze) ...
Best
fpausp
-
We've packaged SarkV4 for the little Raspberrypi [...]
I didn't found the SME version compiled for the Raspberry. Did I missed something? ;-)
-
OK, point taken, but it' still FUN, so that's OK then.
-
OK, point taken, but it' still FUN, so that's OK then.
Fun, this is brilliant, as our colonial brothers would say "Thanks for sharing it with us"
P
-
I would like to use SARK V4.0.0 on arm for ham radio echolink connections (http://ohnosec.org/drupal/node/56), is this possible and how should I install it ?
How did you get on with this project?? I want to do the same here. Let me know how you got on
Thanks
M0GLJ
-
At the moment I try to test this (roip-server):
http://www.xelatec.com/xippr/
-
I'm trying to install on my RaspberryPi as documented on http://www.sailpbx.com/mediawiki/index.php/SARK_V4.0.0_Raspi
I'm running a new install of 2013-09-25-wheezy-raspbian
during install of SAIL I get some errors...
root@raspberrypi:/home/pi# apt-get install sail
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
apache2 apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common asterisk asterisk-config asterisk-core-sounds-en
--detail removed to save characters--
whois xinetd zip
Suggested packages:
apache2-doc
--detail removed to save characters--
openssl-blacklist ufraw
The following NEW packages will be installed:
apache2
--detail removed to save characters--
whois xinetd zip
0 upgraded, 142 newly installed, 0 to remove and 0 not upgraded.
Need to get 66.3 MB of archives.
After this operation, 234 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://sailpbx.com/sail/sail-4.0/debs/repo/ wheezy/main sailhpe armhf 4.0.0-34 [250 kB]
--detail removed to save characters--
Get:142 http://mirrordirector.raspbian.org/raspbian/ wheezy/main nmap armhf 6.00-0.3+deb7u1 [3,630 kB]
Fetched 66.3 MB in 1min 12s (913 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
Selecting previously unselected package imagemagick-common.
(Reading database ... 65305 files and directories currently installed.)
Unpacking imagemagick-c
--detail removed to save characters--
Selecting previously unselected package php5-cli.
Unpacking php5-cli (from .../php5-cli_5.4.4-14+deb7u5_armhf.deb) ...
dpkg-deb (subprocess): decompressing archive member: internal gzip read error: '<fd:4>: incorrect data check'
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing /var/cache/apt/archives/php5-cli_5.4.4-14+deb7u5_armhf.deb (--unpack):
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Selecting previously unselected package libapr1.
Unpacking libap
--detail removed to save characters--
Selecting previously unselected package libpq5.
Unpacking libpq5 (from .../libpq5_9.1.9-1_armhf.deb) ...
dpkg-deb (subprocess): decompressing archive member: lzma error: compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing /var/cache/apt/archives/libpq5_9.1.9-1_armhf.deb (--unpack):
cannot copy extracted data for './usr/share/doc/libpq5/changelog.gz' to '/usr/share/doc/libpq5/changelog.gz.dpkg-new': unexpected end of file or stream
Selecting previously unselected package libradiusclient-ng2.
Unpac
--detail removed to save characters--
Selecting previously unselected package shorewall.
Unpacking shorewall (from .../shorewall_4.5.5.3-3_all.deb) ...
dpkg-deb (subprocess): decompressing archive member: internal gzip read error: '<fd:4>: incorrect data check'
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing /var/cache/apt/archives/shorewall_4.5.5.3-3_all.deb (--unpack):
subprocess dpkg-deb --fsys-tarfile returned error exit status 2
Selecting previously unselected package sox.
Un
--detail removed to save characters--
Unpacking vpb-driver-source (from .../vpb-driver-source_4.2.55-1_all.deb) ...
Selecting previously unselected package zip.
Unpacking zip (from .../archives/zip_3.0-6_armhf.deb) ...
dpkg-deb (subprocess): decompressing archive member: internal gzip read error: '<fd:4>: invalid stored block lengths'
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing /var/cache/apt/archives/zip_3.0-6_armhf.deb (--unpack):
cannot copy extracted data for './usr/share/doc/zip/CHANGES.gz' to '/usr/share/doc/zip/CHANGES.gz.dpkg-new': unexpected end of file or stream
Selecting previously unselected package asterisk-moh-opsound-gsm.
Unpa
--detail removed to save characters--
Unpacking sail (from .../sail_4.0.0-100_all.deb) ...
Processing triggers for man-db ...
Processing triggers for menu ...
Processing triggers for install-info ...
Processing triggers for mime-support ...
Processing triggers for fontconfig ...
Processing triggers for desktop-file-utils ...
Processing triggers for hicolor-icon-theme ...
Errors were encountered while processing:
/var/cache/apt/archives/php5-cli_5.4.4-14+deb7u5_armhf.deb
/var/cache/apt/archives/libpq5_9.1.9-1_armhf.deb
/var/cache/apt/archives/shorewall_4.5.5.3-3_all.deb
/var/cache/apt/archives/zip_3.0-6_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@raspberrypi:/home/pi#
Then when I Seed the CDR Database I get...
root@raspberrypi:/home/pi# mysql -u root --password=[i]mysqlpassword[/i] < /opt/sark/stat/asterisk-stat-v2/cdr-mysql-setup.sql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
root@raspberrypi:/home/pi#
I rebooted, and I dont get any SAIL at https://raspi_IP_addy:8443
If I attempt to install SAIL again, I get root@raspberrypi:/home/pi# apt-get install sail
Segmentation faultsts... 0%
root@raspberrypi:/home/pi#
.
I will try reloading the SD and starting again, but I expect the same result.
applreciate if anyone can spot anything wrong here or why I get corrupt packages etc..
-
Seems the new out of the packet Verbatim 8G SDHC card is the problem.
exact same steps performed with a new 8G SANDISK SDHC card worked perfectly.
-
We've tidied up the Debian install with a SARK repo (see the install instructions on the sailpbx wiki). Should just install without drama on any ARMEL or ARMHF Debian wheezy image.
S
-
How many extensions can you use on the Raspi at the same time ?
Asterisk 11 with FreePBX can handle 10 concurrent calls according to this site:
http://www.raspberry-asterisk.org/faq/#performance (http://www.raspberry-asterisk.org/faq/#performance)
So I would assume SAIL would give a similar sort of performance.
Kind regards,
Del
-
I think we need to bit a careful with those numbers. Whoever wrote the blog you refer to claims "up to" 10 concurrent calls and then he gives a reference to his own forum
http://sourceforge.net/p/raspbx/discussion/general/thread/4975db40/#eb2a
This is a forum thread where a contributor claims 10 concurrent calls and, fortunately for us, posts an image of a couple of FreePBX front screens which show us some stats. If you're still interested in this then I suggest you grab that image from the forum and have it in front of you as you read on. The image contains 2 screenshots, side-by-side, of the box running 23 "calls" and 12 "calls". So far so good. Note the left hand screen Load Average (the highlighted CPU info is irrelevant). It is showing 1.88. In other words, the box cannot cope at that load (by almost a factor of 2). In the second image we see the load average at .58, not great, but coping at an apparent 12 calls.
But look at "total calls" and "total channels" values - they are the same value in each screen (24 in the left and 12 in the right). So in the left screen its doing 24 calls and in the right screen, 12... right? Nope. In a "real" call, a minimum of 2 channels is used; one into Asterisk from the phone and one out of Asterisk to the destination. Asterisk "Bridges" calls, that's what it does. So what can we conclude from this? It's very likely that the calls in this case are all running into a conference room (so there's no need for an extra leg). They may be running into multiple conference rooms, I can't tell and the author doesn't say.
Putting it all together. While the conference bridge itself can be quite hungry, which needs to taken into account, if we accept the 12 channels as being achievable then that means the box can handle 6 concurrent calls. However, when you add the real world cpu spikes caused by call start up and routing (which can be quite large with dialplan generators like FreePBX) then I would set a safe, achievable number at no more than 4 or 5.
Kind Regards
S
-
Finger back in the pi for a bit of fun,
Just got my hands on a B+ have to say seems to work very well with SAIL. However, thought I would install the UK Language Extra's Pack from Digium. Now I get "Press the Pound key" from and English guy! Why Pound key? Seem to recall this was an issue a long while ago and the Devs had their own version which could be installed? Is there such a thing for V4 and the Pi?
P
-
The 'BBC' English recordings we use do say "hash" in some places and "pound" in others. Out of our control I'm afraid, it is third party software. We have asked them to change it but up to press, they haven't done it.
-
Deleted message, solved it another way
-
I know this is nothing to do with SME, but I know a few on here gave this a try. Have any of you managed to get an IAX client to register to a Raspi with Sark?
Did a clean install and have the same issue. As far as I can tell the firewall has the ports open for it as standard, and this was to a lan client.
P
-
There is no reason why you should to be able to flow IAX through asterisk on the Pi. There is a small issue in that you will not be able to run trunk=yes unless you have a timing source installed/enabled but other than that it should just work. I suggest you tshark it to see what's going where.
-
Well there seems to be an issue with using IAX clients, it has been reported back. So hopefully it may get fixed. This also affects their commercial offering the Sark200, might save someone some time if like me you spent days blaming everything else :-)
The good news is that the SME versions work well...
P