Дата публикации: Oct 16, 2016 4:53:9 AM
Модуль для asterisk-а для работы с USB-модемами https://github.com/bg111/asterisk-chan-dongle. Со списком поддерживаемых моделей и документацией от производителя. Вроде запустился, но с Тимом работать пока не получается.
Now you can issue the call-forwarding command: AT+CCFC=0,3,"telephone number"
For example: AT+CCFC=0,3,"+36301234567".
Please note that in this command you always need to give the telephone number in international format (with + sign) and between quotation marks ("")
You can issue this command as follows:
AT+CCFC=<reason>,<mode>[,<number>]
<reason>
0: Unconditional
1: Mobile busy
2: No reply
3: Not reachable
4: All call forwarding
5: All conditional call forwarding
<mode>
0: Disable
1: Enable
2: Interrogate
3: Registration
4: Erasure
<number>
http://www.zeeman.de/wp-content/uploads/2007/09/ubinetics-at-command-set.pdf
at+ccfc=2,1,"+793512476557"
OK
at+ccfc=2,1,"+793512476557",5
OK
Чтение
mpc1*CLI> dongle cmd tele2 AT+CMGR=1
[tele2] 'AT+CMGR=1' Command queued for execute
[tele2] Got Response for user's command:'+CMGR: 1,,94
07919740430900F40412D0D270DA6C2EA7E7653700007110311142932152D0B79E2C0FDBD9F970B91D0255E7ECFA390C124D9BD356DD5E26BFDBECB23B1D1681E06FD03A2CA797412A154C469381E06FF29A5D1FA3CBEEB00B240DA7CDE6727A5E768BC3EE35'
[Jan 13 13:41:06] NOTICE[9921]: at_response.c:1736 at_response: [tele2] Got Response for user's command:'+CMGR: 1,,94
07919740430900F40412D0D270DA6C2EA7E7653700007110311142932152D0B79E2C0FDBD9F970B91D0255E7ECFA390C124D9BD356DD5E26BFDBECB23B1D1681E06FD03A2CA797412A154C469381E06FF29A5D1FA3CBEEB00B240DA7CDE6727A5E768BC3EE35'
[tele2] Got SMS from Raiffeisen: 'Pozdravlyaem! Usluga "SMS-uvedomlenia" po karte **0242 podkluchena. Raiffeisenbank'
-- Executing [sms@default_dongle:1] NoOp("Local/sms@default_dongle-00000015;1", "Incoming SMS from Raiffeisen Pozdravlyaem! Usluga "SMS-uvedomlenia" po karte **0242 podkluchena. Raiffeisenbank") in new stack
Удаление
mpc1*CLI> dongle cmd tele2 AT+CMGD=1
[tele2] 'AT+CMGD=1' Command queued for execute
[tele2] Got Response for user's command:'OK'
[Jan 13 13:41:12] NOTICE[9921]: at_response.c:1736 at_response: [tele2] Got Response for user's command:'OK'
(Источник http://www.developershome.com/sms/cmgdCommand.asp, http://www.developershome.com/sms/cmgrCommand.asp)