Koozali.org: home of the SME Server

Slice of Pi anyone?

Offline fpausp

  • *
  • 728
  • +0/-0
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

Offline groutley

  • ****
  • 213
  • +0/-0
    • http://www.routley.homeip.net
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..

Offline groutley

  • ****
  • 213
  • +0/-0
    • http://www.routley.homeip.net
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
  • +1/-0
    • 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
  • +0/-0
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
  • +1/-0
    • 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 »

Offline Drifting

  • ****
  • 431
  • +0/-0
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
  • +1/-0
    • 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 »

Offline Drifting

  • ****
  • 431
  • +0/-0
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!

Offline Drifting

  • ****
  • 431
  • +0/-0
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
  • +1/-0
    • 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.

Offline Drifting

  • ****
  • 431
  • +0/-0
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!