baumi's blog

baumi's personal blog … Linux, OS X, Windows, Random things, …

chan_dongle for asterisk 13.9.x (works on GNU/Linux Ubuntu 16.04 LTS)

install asterisk 13.9.x:
apt-get install aclocal automake autoconf libsrtp-devel
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz
aclocal
autoconf
automake -a
./configure
make
make menuselect #make sure res_srtp is enabled!
make install

Asterisk TLS/ZRTP setup:
Specifically for blink: https://wiki.asterisk.org/wiki/display/AST/Secure+Calling+Tutorial

install chan_dongle (hint: setting the branch “asterisk13” is crucial!):
git clone -b asterisk13 https://github.com/oleg-krv/asterisk-chan-dongle.git
cd asterisk-chan-dongle
aclocal
autoconf
automake -a
./configure
make install

Free SMS memory on USB dongle & SIM-card (SM=store messages on SIM, ME=store messages on dongle memory):
#store on dongle memory
asterisk -x "dongle cmd [gsm-device] AT+CPMS=\"ME\",\"ME\",\"ME\""

#delete all SMS messages:
asterisk -x "dongle cmd [gsm-device] AT+CMGD=1,4"

#store on sim:
asterisk -x "dongle cmd [gsm-device] AT+CPMS=\"SM\",\"SM\",\"SM\""

#delete all SMS messages:
asterisk -x "dongle cmd [gsm-device] AT+CMGD=1,4"

More Commands: Huawei AT Command Specification (PDF Download)
SMS specification (ETSI)
https://linux3dgameengine.googlecode.com/files/SMS_PDU-mode.pdf
http://mobiletidings.com/2009/02/18/combining-sms-messages/

ASTERISK FUNCTIONS:
http://www.voip-info.org/wiki/view/Asterisk+functions

SMS Tricks
http://www.voip-info.org/wiki/view/Asterisk+cmd+Sms

Werte für Mode und Submode ändern:

AT^SYSCFG=,,3FFFFFFF,2,4

mode:
2 = Automatic search
13 = GSM only (=2G)
14 = WCDMA only (=3G)
16 = No Change

submode:
0 = Automatic search
1 = GSM first, WCDMA later
2 = WCDMA first, GSM later
3 = no change

Beispiel für Modus Umschaltung:

dongle cmd gsm-06646407777 AT^SYSCFG=2,0,3FFFFFFF,2,4

Specs:
Any : AT^SYSCFG=2,0,3FFFFFFF,2,4
2G only : AT^SYSCFG=13,1,3FFFFFFF,2,4
3G only : AT^SYSCFG=14,2,3FFFFFFF,2,4
2G preferred : AT^SYSCFG=2,1,3FFFFFFF,2,4
3G preferred : AT^SYSCFG=2,2,3FFFFFFF,2,4

Weitere AT Befehle:
http://www.lteforum.at/mobilfunk/at-command-execution-fuer-huawei-sticks.2235/

Comments are currently closed.