Dongle reset/reload 解決 3G Dongle 失蹤的問題
跟據角色 Ching提供的 解決 CMPhone "No Authentication" 的 script
參考
http://www.telecom-cafe.com/foru ... page%3D3&page=1
我改了做 dongle reset/reload script 解決 3G Dongle 失蹤的問題。- #!/bin/sh
- #/usr/sbin/asterisk -rx "dongle reset dongle0"
- #echo "dongle reset at `date`" >> /var/log/asterisk/dongle.log
- dongle_status=`/usr/sbin/asterisk -rx "dongle show devices" | grep " GSM not re"`
- if [ "$dongle_status" != "" ]
- then
- /usr/sbin/asterisk -rx "dongle reset dongle0"
- echo $dongle_status >> /var/log/asterisk/dongle.log
- echo "dongle reset at `date`" >> /var/log/asterisk/dongle.log
- fi
複製代碼 |