I gotta put these notes somewhere in case I need them again oneday.
Meanwhile, somebuddy else might find 'em useful. Enjoy.
RaPBX on Raspberry Pi 3 Model B+
Download the image and read the documentation at
http://www.raspberry-asterisk.org/
wget http://download.raspberry-asterisk.org/raspbx-04-04-2018.zip
sha1sum raspbx-04-04-2018.zip
unzip raspbx-04-04-2018.zip
Determine SD card usb device, ie /dev/sdk
dmesg
Details for how to setup the SD card at
https://elinux.org/RPi_Easy_SD_Card_Setup
Using any Linux host, write the image to the micro SD card
dd bs=4M if=raspbx-04-04-2018.img of=/dev/sdk
Before removing the micro SD card :
sync
Put the micro SD card into the RaPi, connect ethernet and power it up.
Scan the network for the ip address.
nmap -sP 10.0.0.1-254
Find the Raspberry Pi device, and ssh to it.
ssh root@10.0.0.xx
password = raspberry
uname -a
Linux raspbx 4.14.30-v7+ #1102 SMP Mon Mar 26 16:45:49 BST 2018 armv7l GNU/Linux
Get all latest updates
raspbx-upgrade
reboot
Confirm kernel updated to latest
uname -a
Linux raspbx 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l GNU/Linux
I like some extra handy tools
apt-get install nmap inxi lshw locate
Confirm hardwares
lshw -short | grep system
system Raspberry Pi 3 Model B Plus Rev 1.3
inxi -Fimd -c 17
Lotsa useful hardware details
Yes it running 32 bit OS on 64 bit processor.
RaPBX thinks its an ARMv7 processor (v7l) 32 bit
Actually it should be a Broadcom BCM2837B0, Cortex-A53 64-bit SoC @ 1.4GHz
Connect the GSM dongle and install the chan dongle packages
install-dongle
Check the dongle is working :
asterisk -r
raspbx*CLI> dongle show devices
dongle0 0 Free 5 0 0 xxxx E160X 11.609.10.02.432 xxxxxxxxxx
raspbx*CLI> dongle show device state dongle0
-------------- Status -------------
Device : dongle0
State : Free
Audio : /dev/ttyUSB1
Data : /dev/ttyUSB2
Voice : Yes
SMS : Yes
Manufacturer : huawei
Model : E160X
Firmware : 11.609.10.02.432
IMEI : xxxxxxxxxxxxxxx
IMSI : xxxxxxxxxxxxxxx
GSM Registration Status : Registered, home network
RSSI : 13, -87 dBm
Mode : No Service
Submode : No service
Provider Name : xxxxxxx
etc, yadda, yadda
Make sure the Audio and Data devices are same as settings in /etc/asterisk/dongle.conf
Notice the RSSI dBm value for GSM signal strength
Use the web interface to RaPBX
http://10.0.0.xx
Setup an administrator as prompted.
Setup language and timezone as prompted
Be patient while it sets up locale files
Add Trunk as per instructions
Custom dial string
dongle/dongle0/OUTNUM
Add Outbound route using the GSM trunk, use dial pattern X[dot] to accept ALL numbers
Add extension/s
I use pjsip and Linphone on Android handphone for testing.
Add Inbound route
Phones ring, inbound and outbound. Seems to work. Real-world testing to follow.