Koozali.org formerly Contribs.org

Slice of Pi anyone?

Offline SARK devs

  • ****
  • 2,806
    • http://sarkpbx.com
Slice of Pi anyone?
« 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   
« Last Edit: November 10, 2012, 10:38:34 AM by SARK devs »

Offline fpausp

  • *
  • 728
Re: Slice of Pi anyone?
« Reply #1 on: November 09, 2012, 05:40:12 PM »
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
Viribus unitis

Offline SARK devs

  • ****
  • 2,806
    • http://sarkpbx.com
Re: Slice of Pi anyone?
« Reply #2 on: November 09, 2012, 05:57:38 PM »
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
« Last Edit: November 10, 2012, 02:30:11 AM by SARK devs »

Offline fpausp

  • *
  • 728
Re: Slice of Pi anyone?
« Reply #3 on: November 09, 2012, 09:56:06 PM »
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
Viribus unitis

Offline fpausp

  • *
  • 728
Re: Slice of Pi anyone?
« Reply #4 on: November 10, 2012, 11:03:56 PM »
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 ?
Viribus unitis

Offline SARK devs

  • ****
  • 2,806
    • http://sarkpbx.com
Re: Slice of Pi anyone?
« Reply #5 on: November 11, 2012, 11:50:55 AM »
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


Offline SARK devs

  • ****
  • 2,806
    • http://sarkpbx.com
Re: Slice of Pi anyone?
« Reply #6 on: November 11, 2012, 12:19:08 PM »
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
« Last Edit: November 13, 2012, 10:30:48 PM by SARK devs »

Offline fpausp

  • *
  • 728
Re: Slice of Pi anyone?
« Reply #7 on: November 11, 2012, 02:58:02 PM »
OK, Thank you.

Best
fpausp
Viribus unitis

Offline fpausp

  • *
  • 728
Re: Slice of Pi anyone?
« Reply #8 on: November 21, 2012, 04:57:56 PM »
How many extensions can you use on the Raspi at the same time ?
Viribus unitis

Offline SARK devs

  • ****
  • 2,806
    • http://sarkpbx.com
Re: Slice of Pi anyone?
« Reply #9 on: November 21, 2012, 10:57:41 PM »
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

« Last Edit: November 21, 2012, 11:00:40 PM by SARK devs »

Offline fpausp

  • *
  • 728
Re: Slice of Pi anyone?
« Reply #10 on: November 22, 2012, 01:58:41 PM »
OK, but I just use another hardware (iomega iconnect - with debian squeeze) ...

Best
fpausp
Viribus unitis

Re: Slice of Pi anyone?
« Reply #11 on: November 28, 2012, 09:51:14 AM »
We've packaged SarkV4 for the little Raspberrypi [...]

I didn't found the SME version compiled for the Raspberry. Did I missed something? ;-)

Offline SARK devs

  • ****
  • 2,806
    • http://sarkpbx.com
Re: Slice of Pi anyone?
« Reply #12 on: November 28, 2012, 10:36:29 PM »
OK, point taken, but it' still FUN, so that's OK then.
« Last Edit: November 28, 2012, 10:40:05 PM by SARK devs »

Re: Slice of Pi anyone?
« Reply #13 on: December 14, 2012, 02:50:03 PM »
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
Infamy, Infamy, they all have it in for me!

Offline Teviot

  • *
  • 610
Re: Slice of Pi anyone?
« Reply #14 on: December 25, 2012, 12:24:30 AM »
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
Regards
M0GLJ
......................................................
I am new to SAIL SME Server v8b6 and have been using SME for many years.
I have already done some research and only ask questions if I still can't work it out.

Offline fpausp

  • *
  • 728
Re: Slice of Pi anyone?
« Reply #15 on: December 25, 2012, 04:25:47 PM »
At the moment I try to test this (roip-server):

http://www.xelatec.com/xippr/
Viribus unitis

Re: Slice of Pi anyone?
« Reply #16 on: October 23, 2013, 08:11:55 AM »
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...
Code: [Select]
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...
Code: [Select]
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
Code: [Select]
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..

Re: Slice of Pi anyone?
« Reply #17 on: October 24, 2013, 06:17:06 AM »
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.

Offline SARK devs

  • ****
  • 2,806
    • http://sarkpbx.com
Re: Slice of Pi anyone?
« Reply #18 on: October 28, 2013, 12:16:36 PM »
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

Offline del

  • *
  • 765
Re: Slice of Pi anyone?
« Reply #19 on: November 05, 2013, 11:46:56 PM »
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

So I would assume SAIL would give a similar sort of performance.

Kind regards,
Del
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline SARK devs

  • ****
  • 2,806
    • http://sarkpbx.com
Re: Slice of Pi anyone?
« Reply #20 on: November 07, 2013, 04:50:08 PM »
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


 

« Last Edit: November 07, 2013, 07:03:04 PM by SARK devs »

Re: Slice of Pi anyone?
« Reply #21 on: February 06, 2015, 09:32:37 PM »
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
Infamy, Infamy, they all have it in for me!

Offline SARK devs

  • ****
  • 2,806
    • http://sarkpbx.com
Re: Slice of Pi anyone?
« Reply #22 on: February 14, 2015, 07:07:03 PM »
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.

« Last Edit: February 14, 2015, 07:08:39 PM by SARK devs »

Re: Slice of Pi anyone?
« Reply #23 on: February 15, 2015, 12:55:33 PM »
Deleted message, solved it another way
« Last Edit: February 15, 2015, 01:00:43 PM by Drifting »
Infamy, Infamy, they all have it in for me!

Re: Slice of Pi anyone?
« Reply #24 on: July 11, 2015, 06:18:07 PM »
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
Infamy, Infamy, they all have it in for me!

Offline SARK devs

  • ****
  • 2,806
    • http://sarkpbx.com
Re: Slice of Pi anyone?
« Reply #25 on: July 12, 2015, 10:21:33 AM »
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.

Re: Slice of Pi anyone?
« Reply #26 on: August 08, 2015, 11:57:18 AM »
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
Infamy, Infamy, they all have it in for me!