On Fri, 2019-04-26 at 14:39 +0000, bilal ghayyad wrote:
> Any small example how to send gsm calls through chan_dognle and how
> to send sms through chan_dongle?
In dongle.conf:
[gsmgateway]
context=gsm
imei=123456789012345
imsi=098765432112345
In extensions.conf:
[gsm]
; Incoming calls from GSM/3G
exten => +41776665544,1,Dial(Local/mydeskphone@voipphone)
same => n,Hangup()
; Phone call though GSM/3G
exten => _0.,n,Dial(Dongle/gsmgateway/${EXTEN},120)
same => n,Hangup()
; Incoming SMS to mail address and to sms.txt file
exten => sms,1,Noop(Incoming SMS from ${CALLERID(num)}
${BASE64_DECODE(${SMS_BASE64})})
exten => sms,n,System(echo '${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} -
${DONGLENAME} - ${CALLERID(num)}: ${BASE64_DECODE(${SMS_BASE64})}' >>
/var/log/asterisk/sms.txt)
exten => sms,n,System(echo "${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} -
${DONGLENAME} - ${CALLERID(num)}: ${BASE64_DECODE(${SMS_BASE64})}" |
mail -s "SMS from ${CALLERID(num)}" [email protected])
exten => sms,n,Hangup()
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
Check out the new Asterisk community forum at: https://community.asterisk.org/
New to Asterisk? Start here:
https://wiki.asterisk.org/wiki/display/AST/Getting+Started
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users