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:
1
2
3
4
5
6
7
8
9
10
11
12
13
|
AT^SYSCFG=<mode>,<submode>,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:
1
2
3
4
5
6
7
8
|
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/
Extra :
Firist:
yum -y install tcl asterisk11-devel make automake binutils
usb_modeswitch-1.2.3-1.el6.rf.x86_64.rpm and usb_modeswitch-data-20120120-1.el6.rf.noarch.rpm
rpm -ivh usb_modeswitch-1.2.3-1.el6.rf.x86_64.rpm usb_modeswitch-data-20120120-1.el6.rf.noarch.rpm
cd /usr/src
wget https://github.com/jstasiak/asterisk-chan-dongle/archive/asterisk11.zip397
unzip asterisk11.zip
cd asterisk-chan-dongle-asterisk11
aclocal && autoconf && automake -a
./configure
make
make install
cp chan_dongle.so /usr/lib64/asterisk/modules/
cp etc/dongle.conf /etc/asterisk
vim /etc/udev/rules.d/92-dongle.rules and insert this => KERNEL==”ttyUSB*”, MODE=”0666″, OWNER=”asterisk”, GROUP=”uucp”
vim /etc/asterisk/asterisk.conf and insert this: rungroup = dialout
asterisk -vvvvvvvvr
CLI: module load chan_dongle.so