envoyer recevoir des sms.... c'est decide..
asteriskCli => gsm send sms 1 "04333333" "Hello" => command not found
pourtant j'ai un app_sms.so dans /usr/lib/asterisk/modules
si seulement je pouvais reussir cette commande ... le reste c'est bingo.
voici des extraits d'info que j'ai pu voir/copier :
/etc/asterisk => bcp de fichiers sont des symlinks vers /usr/local/defaults/etc/asterisk
dahdi-trunk-analog.conf
- Code : Tout sélectionner
;;;;;;;;trunk-gsm;;;;;;;;;;;
context=from-analog
echocancel=yes
language=en
faxdetect=no
busydetect=yes
busycount=3
rxgain=3.0
txgain=0.0
cidstart=ring
cidsignalling=bell
sendcalleridafter=1
busypattern=
answeronpolarityswitch=no
hanguponpolarityswitch=no
setvar=trunkname=FXO-1
channel=1
idem pour FXO-2
dahdi-gsm-channels.conf
- Code : Tout sélectionner
signalling=fxs_ks
context=from-analog
cidstart = ring
cidsignalling = bell
channel => 1,2
modules.conf
- Code : Tout sélectionner
;
; Asterisk configuration file
;
; Module Loader configuration file
;
[modules]
autoload=yes
;
; Any modules that need to be loaded before the Asterisk core has been
; initialized (just after the logger has been initialized) can be loaded
; using 'preload'. This will frequently be needed if you wish to map all
; module configuration files into Realtime storage, since the Realtime
; driver will need to be loaded before the modules using those configuration
; files are initialized.
;
;
noload => chan_ooh323.so
noload => chan_oos.so
load => chan_alsa.so
noload => chan_sip.so
noload => format_g723.so
;noload => format_g726.so
load => format_h263.so
load => format_h264.so
noload => app_milliwatt.so
;noload => codec_speex.so
noload => app_lookupblacklist.so
noload => format_vox.so
noload => format_jpeg.so
noload => app_festival.so
noload => app_dahdiras.so
noload => app_dahdibarge.so
noload => app_dahdiscan.so
load => res_crypto.so
noload => test_dlinklists.so
load => res_smdi.so
load => res_musiconhold.so
load => pbx_spool.so
noload => app_realtime.so
noload => func_realtime.so
load => pbx_realtime.so
noload => app_zapateller.so
noload => chan_unistim.so
noload => res_hep.so
load => res_stun_monitor.so
noload => chan_mgcp.so
noload => chan_skinny.so
; Module names listed in "global" section will have symbols globally
; exported to modules loaded after them.
;
[global]
- Code : Tout sélectionner
04:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 04)
05:00.0 Computer telephony device: Zycoo Co., Ltd CooVOX TDM E1/T1 Module (rev 01)
PRETTY_NAME="Debian GNU/Linux 8 (jessie)"
NAME="Debian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
[ 94.128919] Neutral Coovox V2 X86 dahdi driver, detecting FXS/FXO/GSM modules
[ 94.128924] Scan modules==========>FXO/FXS wc->span.spanno = 1
[ 94.128927] Detected Analog modules on slota and slotb!!
scan gsm modules============>2 wc->span.spanno=1
[ 94.165048] slota:chip-s3 reg=1d
[ 94.165076] slota:chip-s2 reg=0
[ 94.165103] slotb:chip-s7 reg=ff
[ 110.024392] slotb:i=7 reg1=ff
[ 110.024422] slotb:chip-s6 reg=ff
[ 110.024425] port: 1 port_type: G
[ 110.024427] port: 2 port_type: G
[ 110.024428] port: 3 port_type: -
[ 110.024430] port: 4 port_type: -
[ 110.024432] port: 5 port_type: -
[ 110.024433] port: 6 port_type: -
[ 110.024435] port: 7 port_type: -
[ 110.024436] port: 8 port_type: -
[ 111.124291] ate0 Received: 0
[ 111.224359] ate0 Received: 0
[ 111.324420] ate0 Received: 0
[ 112.841407] at+stk=0 only for 3G-voice-modules ,Received: 0
[ 113.442219] GSM module type is:gsm_type =2,SIMCOM_SIM5320E.
[ 113.541862] atv0 Received: 0
[ 115.142903] at+cmee=2 Received: 0
exemples de script de ...
- Code : Tout sélectionner
/etc/init.d/asterisk stop
sleep 3
/sbin/rmmod wcanalog
/sbin/modprobe wcanalog
#!/bin/sh
i=1
if [ -e /proc/wcfxs_status ] ;then
cat /proc/wcfxs_status > /etc/asterisk/wcfxs_status.tmp
for chan in `dahdi_scan |grep port|cut -d "," -f1|cut -d "=" -f2`
do
eval sed -i \'"${i}s/^/${chan}:/"\' /etc/asterisk/wcfxs_status.tmp
i=`expr $i + 1`
done
fi
sed -i 's#W#G#g' /etc/asterisk/wcfxs_status.tmp
cat /etc/asterisk/wcfxs_status.tmp