TIPS Raspberry Pi Network Issues

jerrm

Guru
Joined
Sep 23, 2015
Messages
838
Reaction score
405
I'm almost persuaded... but not quite. In the good ol' days, there was a serious problem moving one of these servers from one IP address to another. It was anything but plug-and-play. But Raspbian 8 seems to fix that. I took a RasPi 3 that was on a private LAN and moved it to a public IP address on a completely different LAN and rebooted. Presto! Came up just like you would expect.

That being said. This SSH limitation only applies until you go through the 30-second Phase I setup one time. After that, you can clone the SDcard or move the hardware to ANY platform and everything just works. Is that not sufficient??
The console option would still there if needed. The image seems to grab an address without a problem as it is now.

IPBX is coming from a historical environment of VMs and self installs where the user has already dealt with the initial boot and config issues that require a head (or virtual head). If we were installing from script ourselves(something I still hope will be written up, if not fully scripted), there would be headless access to Raspbian.

With the pre-configured image, what we have is much closer to an appliance like a router, printer, etc.

What other appliance requires a physical keyboard/monitor for initial config?
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,202
Reaction score
5,224
FWIW, you don't need a monitor at all if you know the secret handshake. :chef:

With a USB keyboard and network cable attached, boot the RasPi3. Wait one minute to be sure the boot has completed and there's a login prompt. Then type pi <ENTER>, wait 5 seconds, raspberry <enter>, wait 15 seconds, press <enter>, wait 30 seconds, press <enter> again, wait 15 seconds, press <tab>, press <enter>, wait 15 seconds, press <enter>, press <tab><tab><enter><enter>. Server will reboot and you can login from SSH as root:password within 30 seconds.
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,202
Reaction score
5,224
I received my raspberry pi 3 and download the incrediblepbx13-raspbian8.zip. The MD5 did not match. I repeated it twice but same results. Is the MD5 correct?

TIA

Jeff

MD5 matches between the SourceForge value and the latest ZIP. Try a different download mirror. Have you tried to actually unzip the file?? That will probably tell you everything you need to know. o_O
 

jrglass

Guru
Joined
Oct 18, 2007
Messages
302
Reaction score
20
MD5 matches between the SourceForge value and the latest ZIP. Try a different download mirror. Have you tried to actually unzip the file?? That will probably tell you everything you need to know. o_O

I Down Loaded from a different site still no match but when I signed into my server today every thing worked normal.

Thank you
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,202
Reaction score
5,224
I Down Loaded from a different site still no match but when I signed into my server today every thing worked normal.

Thank you

Sounds like some of the mirrors may still have an earlier release of the image. We typically overwrite earlier versions so that the download tracking isn't lost. I'll put the latest images on a server that we own so you can grab them if desired.
 

jrglass

Guru
Joined
Oct 18, 2007
Messages
302
Reaction score
20
I Down Loaded from a different site still no match but when I signed into my server today every thing worked normal.

Thank you

Wolfram Alpha Problem Fixed

Problem fix by uploading a fresh 4747 file and run the WA setup


I Added Speech Recognition Support and I can get weather reports by name.

1 Added Wolfram Alpha I get a repeat of my question but after I push 1 its says good by.

Here is the output

raspberrypi*CLI>
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Executing [4747@from-internal:1] Dial("SIP/701-00000020", "SIP/4747") in new stack
[2016-03-15 16:22:48] WARNING[12286][C-00000021]: chan_sip.c:6064 create_addr: Purely numeric hostname (4747), and not a peer--rejecting!
[2016-03-15 16:22:48] WARNING[12286][C-00000021]: app_dial.c:2411 dial_exec_full: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [4747@from-internal:2] Wait("SIP/701-00000020", "1") in new stack
-- Executing [4747@from-internal:3] Flite("SIP/701-00000020", ""After the beep, Say your command, then Press the pound key."") in new stack
> 0x75f171c0 -- Probation passed - setting RTP source address to 192.168.0.4:64044
-- <SIP/701-00000020> Playing '/tmp/flite_70580260.slin' (language 'en')
> 0x75f171c0 -- Probation passed - setting RTP source address to 192.168.0.4:64044
> 0x75f171c0 -- Probation passed - setting RTP source address to 192.168.0.4:64044
> 0x75f171c0 -- Probation passed - setting RTP source address to 192.168.0.4:64044
-- Executing [4747@from-internal:4] AGI("SIP/701-00000020", "speech-recog.agi,en-US") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/speech-recog.agi
-- <SIP/701-00000020> Playing 'beep.gsm' (language 'en')
-- <SIP/701-00000020>AGI Script speech-recog.agi completed, returning 0
-- Executing [4747@from-internal:5] NoOp("SIP/701-00000020", "= Script returned: , , 0.98496169 , what is the weather outside =") in new stack
-- Executing [4747@from-internal:6] Flite("SIP/701-00000020", ""what is the weather outside"") in new stack
-- <SIP/701-00000020> Playing '/tmp/flite_17358765.slin' (language 'en')
-- Executing [4747@from-internal:7] BackGround("SIP/701-00000020", "vm-star-cancel") in new stack
-- <SIP/701-00000020> Playing 'vm-star-cancel.gsm' (language 'en')
-- Executing [4747@from-internal:8] BackGround("SIP/701-00000020", "continue-english-press") in new stack
-- <SIP/701-00000020> Playing 'continue-english-press.gsm' (language 'en')
-- Executing [4747@from-internal:9] BackGround("SIP/701-00000020", "digits/1") in new stack
-- <SIP/701-00000020> Playing 'digits/1.gsm' (language 'en')
-- Executing [4747@from-internal:10] Read("SIP/701-00000020", "PROCEED,beep,1") in new stack
-- Accepting a maximum of 1 digits.
-- <SIP/701-00000020> Playing 'beep.gsm' (language 'en')
-- User entered '1'
-- Executing [4747@from-internal:11] GotoIf("SIP/701-00000020", "1?12:14") in new stack
-- Goto (from-internal,4747,12)
-- Executing [4747@from-internal:12] Set("SIP/701-00000020", "FILE(/tmp/query.txt)=what is the weather outside") in new stack
-- Executing [4747@from-internal:13] BackGround("SIP/701-00000020", "one-moment-please") in new stack
-- <SIP/701-00000020> Playing 'one-moment-please.gsm' (language 'en')
-- Executing [4747@from-internal:14] System("SIP/701-00000020", "/var/lib/asterisk/agi-bin/4747") in new stack
-- Executing [4747@from-internal:15] Set("SIP/701-00000020", "foo=
-- ") in new stack
-- Executing [4747@from-internal:16] Flite("SIP/701-00000020", ""
-- "") in new stack
[2016-03-15 16:23:09] WARNING[12286][C-00000021]: app_flite.c:150 flite_exec: Flite: No text passed for synthesis.
-- Executing [4747@from-internal:17] Flite("SIP/701-00000020", ""Have a nice day! Good bye."") in new stack
-- <SIP/701-00000020> Playing '/tmp/flite_58670879.slin' (language 'en')
-- Executing [4747@from-internal:18] Hangup("SIP/701-00000020", "") in new stack
== Spawn extension (from-internal, 4747, 18) exited non-zero on 'SIP/701-00000020'
-- Executing [h@from-internal:1] Hangup("SIP/701-00000020", "") in new stack
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/701-00000020'
raspberrypi*CLI>

Here is file 4747 and APID is correct

APPID="XXXXXX-XXXXXXXXXX"
QUERY=`cat /tmp/query.txt`
rm /tmp/theanswer.txt
wget -U "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729)" -O "/tmp/theanswer.txt" "http://api.wolframalpha.com/v2/query?input='$QUERY'&appid=$APPID&format=plaintext&scantimesout=59"
/var/lib/asterisk/agi-bin/4747.php

Thanks

Jeff
 
Last edited:

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,202
Reaction score
5,224
Here's an alternate download site for the latest releases: 45.62.237.39

Here are the download links with MD5's that match the latest uploads to SourceForge:

e922f3a7d55aaccf3e1e44861bbf0377 incrediblepbx13-raspbian8.zip

6458938fab1b1f00f18e4fc22c74a4f7 incrediblepbx13-raspbian8-gvoauth.zip

Complete tutorial here: http://nerdvittles.com/?p=17094

NOTE: This is a CloudAtCost machine so it's not the fastest gun in the West. Plan on an hour even with a fast Internet connection at your end. :cowboy:
Code:
     0K ........ ........ ........ ........ ........ ........  0%  567K 43m33s
  3072K ........ ........ ........ ........ ........ ........  0%  411K 51m46s
  6144K ........ ........ ........ ........ ........ ........  0%  520K 50m12s
  9216K ........ ........ ........ ........ ........ ........  0%  303K 57m50s
12288K ........ ........ ........ ........ ........ ........  1%  497K 56m1s
15360K ........ ........ ........ ........ ........ ........  1%  519K 54m27s
18432K ........ ........ ........ ........ ........ ........  1%  445K 54m24s
 
Last edited:

Dave Gray

Guru
Joined
May 22, 2013
Messages
150
Reaction score
60
Well, the Pi3 came in on Monday, so that wasn't too bad. Newark is a partner of Element14, so they charge list price and no more. Oh, and got a case for 6$ too. Now to find the time to work with it...
(I probably won't use it for a PBX, the original Pi I have has been working fine for the last year+. On the other hand, I was *much* happier with the Pi2 as a Openelec box, will be interesting to see how the 3 does.)
 

Begreenbxl

New Member
Joined
Dec 16, 2015
Messages
10
Reaction score
1
System been up and running for a week now on a PI2. Everything looks stable, GUI definitely more responsive.

Have one problem, dunno if it's the PI or IPBX. When external call comes in at night, routing is over IVR. PBX is picking up the line, but doesn't play the IVR Welcome. Line is picked up, then there's a void (not even transferring to VM, which should happen when wrong key or timeout)
I first uploaded soundfile with IVR, but wasn't working. Then used feature to record myself the IVR using an extension. Had to re-record several times as there seemed to always be small parts missing from the recording (is the PI 2 too slow for this)?
Tested it when calling internal, and then IVR works totally fine. Just when it's an external call, it doesn't play.

Anyone an idea?
 

Jerry3716

New Member
Joined
Oct 9, 2015
Messages
15
Reaction score
7
System been up and running for a week now on a PI2. Everything looks stable, GUI definitely more responsive.

Have one problem, dunno if it's the PI or IPBX. When external call comes in at night, routing is over IVR. PBX is picking up the line, but doesn't play the IVR Welcome. Line is picked up, then there's a void (not even transferring to VM, which should happen when wrong key or timeout)
I first uploaded soundfile with IVR, but wasn't working. Then used feature to record myself the IVR using an extension. Had to re-record several times as there seemed to always be small parts missing from the recording (is the PI 2 too slow for this)?
Tested it when calling internal, and then IVR works totally fine. Just when it's an external call, it doesn't play.

Anyone an idea?

Could be codec setting on the trunk. Are you using ulaw? Or, is the trunk something unusual?
 

Begreenbxl

New Member
Joined
Dec 16, 2015
Messages
10
Reaction score
1
Could be codec setting on the trunk. Are you using ulaw? Or, is the trunk something unusual?
I'm in Australia, using alaw, configured on trunk and extensions. Did I miss something elsewhere?
Trunk is very classic, no special fuss in registration.
 

Jerry3716

New Member
Joined
Oct 9, 2015
Messages
15
Reaction score
7
I'm in Australia, using alaw, configured on trunk and extensions. Did I miss something elsewhere?
Trunk is very classic, no special fuss in registration.

Check all of your prompt recordings, I had something similar once and the codec was different for the prompt and once it was re-recorded, the IVR was fine. The registration of phones and trunks does not check the codecs. The codecs kick in when the call is setup or transferred. Also, guessing that you have done the usual like reseting the Pi2. I have a Pi2 running on the latest build and it has performed well.
 

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,634
Reaction score
523
Boot new SDcard image from Raspberry Pi 2
Just booted
From my Debian-Wheezy-Incredible Rpi2. The downloaded file got from wget https:....sourceforge....etc./download
Unfortunately the filename turned out to be 'download' and needed renaming before unzip, (if only for my sanity).
Raspbian7-Debian-Wheezy-Incredible pi2 wrote the Raspbian Jessie image to
/dev/scb on USB3 card reader + Transcend sdxc 64Gb.

Transferred the SD to mysecond RPi2 and booted with warning and ^D to maintenance shell getting Login Incorrect with user pi pass raspberry.

Funny thing - the second rpi with the new image purports to be same hoistname as my 1st pi and claims to be running Raspbian GNU/Linux 7 pi2.myddnsdomname
CANNOT Login with pi / raspberry ?
Now I got a case of Pi stereo o_O
 

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,634
Reaction score
523
wardmundy said:
Boot new SDcard image from Raspberry Pi 2
back in 1st Pi2 eth0 wired
fsck died with exit status 9
log saved in /var/log/fsck/checkfs - please repair file system manually
[warn] A maintenance shell will now be started. ^D to terminate and resume boot ..... [warning] give root password for maintenance (or type ^D to continue):

I take it root pass not set?
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,202
Reaction score
5,224
back in 1st Pi2 eth0 wired
fsck died with exit status 9
log saved in /var/log/fsck/checkfs - please repair file system manually
[warn] A maintenance shell will now be started. ^D to terminate and resume boot ..... [warning] give root password for maintenance (or type ^D to continue):

I take it root pass not set?

Actually the root password is set to password; however, the SSH credentials are missing until after the second boot.
 

jerrm

Guru
Joined
Sep 23, 2015
Messages
838
Reaction score
405
Certificate Manager and WebRTC are missing from the Pi3 image.

Also, the xconsole stuff at the end of rsyslogd.conf really needs to be commented out to kill log spam every minute.
 

jpstaub

New Member
Joined
Apr 8, 2016
Messages
9
Reaction score
4
FWIW, you don't need a monitor at all if you know the secret handshake. :chef:

With a USB keyboard and network cable attached, boot the RasPi3. Wait one minute to be sure the boot has completed and there's a login prompt. Then type pi <ENTER>, wait 5 seconds, raspberry <enter>, wait 15 seconds, press <enter>, wait 30 seconds, press <enter> again, wait 15 seconds, press <tab>, press <enter>, wait 15 seconds, press <enter>, press <tab><tab><enter><enter>. Server will reboot and you can login from SSH as root:password within 30 seconds.

Thanks for the secret handshake. It's cumbersome for those like me with their pi buried in an equipment panel but it works.

I haven't tried it but for those that want to interface with a pi but don't have/want a spare keyboard & monitor a raspberry pi serial cable is an option. People are also using the pie serial cable to unbrick things like routers so at least it may come in handy on future projects.

That said, the capability to run the pi headless straight away would be a welcome improvement.
 

Members online

Forum statistics

Threads
25,814
Messages
167,779
Members
19,245
Latest member
rahee
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