wdoekes / asterisk-chan-dongle

chan_dongle channel driver for Huawei UMTS cards, works with Asterisk 14+
Other
299 stars 104 forks source link

GL-AR150 - OpenWrt #64

Closed adamiD closed 5 years ago

adamiD commented 5 years ago

Hello guys,

I have my system working fine, but sometimes the modem stops communicating, it is necessary to remove and reconnect, but I wanted the task to be automatic. (my device lets you control the power of the USB port).

My question is, any suggestions to trigger a script that does the job?

Greetings everyone!

dentys03 commented 5 years ago

hi, what does "stops communicating mean"?

have you tried this: asterisk -rx "dongle cmd dongle0 AT^CFUN=1,1"

?

adamiD commented 5 years ago

hi, what does "stops communicating mean"?

have you tried this: asterisk -rx "dongle cmd dongle0 AT^CFUN=1,1"

?

The device is no longer available on the system, it is necessary to remove it from the USB port and re-insert ... my intention is to monitor this state and the script does this automatically.

dentys03 commented 5 years ago

chan_dongle.c:423 do_monitor_phone: [5] Lost connection to Dongle

Maybe hook here your script?

Please do post your solution when you find it.