PIONEERS Beaglebone Black Fixes

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,159
Reaction score
5,192
Yep, News and Weather IVR options are GoogleTTS. Any or all of the other apps could be reworked easily to use GoogleTTS instead of Flite.

B+ on a $45 Asterisk platform with virtually all of the bells and whistles of any modern-day PBX. We'll take it. :smartass:
 

darmock

PIAF Developer
Joined
Oct 18, 2007
Messages
2,892
Reaction score
98
Now if I could only get mine delivered. I swear it is lost in the great ice storm somewhere. Where is amazon's drone delivery service when you need it.........grrrrrrr


Tom
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
Re: sip2sip addresses in Travelin Man 3 in the official release

It looks like a wrong ip address for sip2sip was included in the open list?
It should be 81.23.228.150 not 81.23.228.140

Sip2sip addresses

[sip2sip-0](sip2sip)
host=sip2sip.info

[sip2sip-1](sip2sip)
host=81.23.228.129

[sip2sip-2](sip2sip)
host=81.23.228.150

[sip2sip-3](sip2sip)
host=85.17.186.7
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,159
Reaction score
5,192
Just checked the Nerd Vittles article and it has the correct .150 address. Where did you see .140??

On PIAF systems, here's the fix:
Code:
sed -i 's|81.23.228.140|81.23.228.150|' /etc/sysconfig/iptables
sed -i 's|81.23.228.140|81.23.228.150|' /etc/sysconfig/iptables.orig
sed -i 's|81.23.228.140|81.23.228.150|' /root/iptables.orig
iptables-restart

For Incredible PBX on the Raspberry Pi and BeagleBone Black platforms:
Code:
sed -i 's|81.23.228.140|81.23.228.150|' /etc/network/iptables
sed -i 's|81.23.228.140|81.23.228.150|' /etc/network/iptables.orig
sed -i 's|81.23.228.140|81.23.228.150|' /root/iptables.orig
iptables-restart
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
When I do iptables-status, I get this:

ACCEPT udp -- 64.2.142.107 0.0.0.0/0 multiport dports 5060,5061,5062,5063,5064,5065,5066,5067,5068,5069,4569

ACCEPT udp -- 64.2.142.106 0.0.0.0/0 multiport dports 5060,5061,5062,5063,5064,5065,5066,5067,5068,5069,4569
...
ACCEPT udp -- 85.17.186.7 0.0.0.0/0 multiport dports 5060,5061,5062,5063,5064,5065,5066,5067,5068,5069
ACCEPT udp -- 81.23.228.129 0.0.0.0/0 multiport dports 5060,5061,5062,5063,5064,5065,5066,5067,5068,5069
..
ACCEPT udp -- 85.17.148.32 0.0.0.0/0 multiport dports 5060,5061,5062,5063,5064,5065,5066,5067,5068,5069,4569
...
ACCEPT udp -- 81.23.228.140 0.0.0.0/0 udp dpts:5060:5069
ACCEPT tcp -- 81.23.228.140 0.0.0.0/0 tcp dpts:5060:5069
So it looked like to me that the full address list of the sip2sip service was not included.
I am looking at this for the first time, so maybe I misunderstand....

81.23.228.140 is already resolved with FQDN sip2sip.info, so should not appear separately. Although it seems sip2sip.info resolves to different ip's from yesterday..
81.23.228.129 is ok
81.23.228.150 is missing
85.17.148.32 instead of 85.17.186.7 (unless 85.17.148.32 is for another provider)

BTW the nice fix you provided above did not work for me before I activated /root/secure-iptables on the BBB, nor after.
Although I cannot take out these addresses manually, I can enter new ones thanks to the easy commands provided.
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
Question: I use /root/add-ip to add a static ip address of an asterisk server to which my BBB connects.
But the error returned is:
Invalid IP address. Please try again.
Server: 127.0.0.1
Address: 127.0.0.1#53

** server can't find XX.1XX.0.XX.in-addr.arpa.: NXDOMAIN
What does it mean?
It really is the ip address I need the BBB to connect to.
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
P.S.

How do I add anveo.com with port 5010 to the whitelist?
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,159
Reaction score
5,192
Fresh start with 4.11.3 is strongly recommended. Just too many pieces to go the update route. We actually had to switch from apt-get to a source compile for mpg123 to get it to work. Chime is just a "bell & whistle."
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,159
Reaction score
5,192
incrediblepbx.png
Add the Incredible PBX logo to your server...
Code:
cd /root
wget http://incrediblepbx.com/incrediblepbx-logo.sh
chmod +x incrediblepbx-logo.sh
./incrediblepbx-logo.sh
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,159
Reaction score
5,192
MySQL Bug Fix for BeagleBone Black. Also will be pushed out shortly...

Here's a script to do it all for you now...

Code:
#!/bin/bash
newpw=`grep password /etc/mysql/debian.cnf | tail -1 | cut -f 3 -d " "`
mysql -uroot -praspberry asterisk <<EOF
use mysql;
UPDATE user SET Password = PASSWORD('$newpw') WHERE User = 'debian-sys-maint' && Host = 'localhost';
GRANT RELOAD, SHUTDOWN, PROCESS, SHOW DATABASES, SUPER, LOCK TABLES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '$newpw';
EOF
mysqladmin --defaults-file=/etc/mysql/debian.cnf ping
 

Milton Alvis

New Member
Joined
Aug 17, 2013
Messages
24
Reaction score
1
On page http://nerdvittles.com/?p=8222 you recommend a minimum 4GB type 4 microSD card for the Beaglebone Black A8. (I do not understand & have not found specifications for “type 4”.)

I ordered:
1. a Beaglebone board, currently in route via USPS from adafruit.com
2. have built PCs for years but
3. have very limited experience with PiAF or Centos
4. beyond a trial run of PiAF on the VMware Workstation software on an office PC with windows XP.

Any idea the largest and fastest microSD card which can be configured and used on the Beaglev bone board?
e.g. a 64GB Class 10 micro SD?

I do not know the version of Linux (very limited experience years ago with the Linux OS, but only as part of an intro course in CA to setup a 3D Systems SLA5000 RP printer).
In my situation, I:
1. do not any SD cards available to experiment with,
2. do not know what version of Linux the CentOS distro is based upon or know its capabilities,
3. have not found any relevant specifics about SDcard capability on the Beaglebone sites and
4. would best format some room for a small business system with IVR & call recording options.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,159
Reaction score
5,192
I believe the article said we "prefer at least an 8GB Type 4 SD card for Incredible PBX." Type 4 and Class 4 are one and the same. We haven't read horror stories about the Class 10 SD cards with the BeagleBone so take your pick. The Class 4 devices are cheaper. As far as maximum size, we haven't tested beyond 8GB. My recollection is that when you get to 32GB, you get into a different architecture. See this article. Some of this also depends on the operating system, and we're using Ubuntu on the BeagleBone Black. That shouldn't be a problem. The only real way to find out is to try one and report back. Just be sure to buy it from somewhere like WalMart that won't give you a hassle returning it.
 

Milton Alvis

New Member
Joined
Aug 17, 2013
Messages
24
Reaction score
1
Thank you!
(My 4th attempt, via several routes, to ask a question worked - even received a FAST answer/recommendation.)

Garth's work, per your referral, and his comments, along with:
http://shrkey.com/expanding-your-ubuntu-microsd-partition &
http://ceejbot.tumblr.com/post/54797160620/how-to-install-new-oses-on-your-beagle-bone-black
will hopefully be a big help,
once I receive the BeagleBoard board I ordered from adafruit.com & have a chance to begin hands-on work.

While researching BeagleBoard issues (shortly after ordering one), I kept coming across articles on the Cubieboard2 1GB, by Tom Cubie & group, which clearly has better IO capabilities, including to external spinning (or SSD) hard drives, for ~$20 more than the BeagleBone Board I purchased. If/when people have more time & experience with Linux+PiAF (& money to spare) than I, these might term out to be better hardware choices, especially for production/business systems, as per my goals.
(Yes, I know: humans usually want excellence at little-to-no-cost & delivered yesterday.)
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
Here is a TIP:
I got my extra BBB to serve as hardware backup and tinker platform :)

The issue I ran into was that the SDcard from which BBB1 was running, did not work on BBB2 due to not getting network access.

Then I found out, the problem was the same as described here:
Networking no longer works when changing SD card between two Raspberry Pis

In some distributions, /etc/udev/rules.d/70-persistent-net.rules remembers which MAC address is associated with eth0, so each new device will be assigned as a different interface (eth1, eth2, etc.) due to the different MAC addresses. Editing /etc/udev/rules.d/70-persistent-net.rules to remove the invalid rules and rebooting may help fix the problem.

I noted that eth0 was reserved for a different MAC address, than the MAC address of BBB2 in which I inserted the SDcard.
This is bad enough, since without network access to the BBB2, the only way to find out was for me to connect a screen and keyboard.
After ensuring eth0 was set to the MAC address of BBB1 and a reboot, network came up.

Note: another issue associated with the BBB not getting network access, is that the Travelin Man iptables cannot resolve FQDN and it takes a lot of time for the warning messages to pass by (on the screen) till one finally gets the prompt. I could not interupt them.
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
I would like to run Piaf from the internal eMMc memory in the BBB.
It is faster, but has limited 2Gb memory (some new models seem to have 4Gb).

Question:
I was wondering how can I safely set up writing to external storage (I know how to mount USB stick or NAS folder)?
Code:
ln -s /mnt/monitor /var/spool/asterisk/monitor
Is this a safe method?
Should I delete the original folder that asterisk knows for recordings or can I leave it?
What if the external storage is temporarily not available, will asterisk find the original folders?

For which items is this important and how to set each:
- recordings, voicemail, backup, are in /var/spool/asterisk/monitor,
- but how about logs, or others?
 

phonehome

New Member
Joined
May 21, 2014
Messages
5
Reaction score
1
This advice is just based on your concern about the speed.

Although the instructional on Incredible Pi mentions that the eMMC on BBB is much faster than the uSD, this is not the case on other OS to uSD ports for example on Cyanogenmod for Android OS to microSD.

I am also running an Android OS from a microSD card on Nook HD+, and the card random write speeds make all the difference in the overall speed and experience when running OS from external memory card.

It is tested by myself and others in Cyanogenmod dev that Sandisk(and some Transcend) SD/uSD are vastly faster than cards from Kingston, Samsung, and others in respect to random write speeds. In fact, some report random write speeds on some Sandisk Class 4 SD as faster than eMMC on Nook HD+.

Personally testing between cards that have 0.20- to 1.0+ random write speeds but similar sequential speeds, I can tell you that it makes a HUGE difference in OS performance - OSes do not write sequentially often, and the random write speed is the bottleneck when running OS from SD card.

So, whenever using SD/uSD for running OS, I always choose Sandisk(I use UHS-1/Class 10 instead of the recommended Class 4 because the 6 or so cards I have tested have high enough random write speeds in addition to fast sequential speeds for imaging, copying, etc.) and test the speed for 1.0+Mb/s random write.

"Random Write 4KB (QD=32)" is the category to watch in Crystaldiskmark.

I am currently running three Incredible BBB on Sandisk 16GB Class10/UHS1 uSD cards with this typical specs from Crystaldiskmark - these were taken from a USB3.0 external adapter - the random write speeds are similar when using USB2.0:
-----------------------------------------------------------------------
CrystalDiskMark 3.0.3 (C) 2007-2013 hiyohiyo
Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]

Sequential Read : 36.854 MB/s
Sequential Write : 13.481 MB/s
Random Read 512KB : 35.817 MB/s
Random Write 512KB : 2.366 MB/s
Random Read 4KB (QD=1) : 5.454 MB/s [ 1331.6 IOPS]
Random Write 4KB (QD=1) : 1.396 MB/s [ 340.7 IOPS]
Random Read 4KB (QD=32) : 5.699 MB/s [ 1391.3 IOPS]
Random Write 4KB (QD=32) : 1.204 MB/s [ 293.9 IOPS]

Test : 50 MB [F: 0.0% (0.0/14.8 GB)] (x5)
Date : 2014/06/02 10:36:36
OS : Windows 7 Professional SP1 [6.1 Build 7601] (x86)

I will expand root partition on BBB and test the eMMC when I have some time - taking some time off soon, so may be awhile.
 

Rrrr

Tink
Joined
May 28, 2009
Messages
343
Reaction score
25
nice, I stuck to type 4 Sandisk so far, but will try type 10 now.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,159
Reaction score
5,192
The Class 4/Type 4 recommendation really was a Raspberry Pi quirk that doesn't seem to apply to the BBB.
 

Members online

No members online now.

Forum statistics

Threads
25,770
Messages
167,441
Members
19,181
Latest member
ejrubin
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top