pulpoff/asterisk-chan-dongle ? reverse-engineered prompt
Reverse engineered prompt
Build me a working Asterisk channel driver for Huawei GSM and UMTS dongles, based on this project, and make sure it runs with Asterisk 20.
I need it to let Asterisk place and receive voice calls, send and receive SMS, and handle USSD messages through a Huawei USB modem. Please keep the existing dial string and CLI behavior so I can route calls through a dongle, a group, or by provider details, and check device status from the Asterisk CLI. Also make it easy to run in Docker, with a simple compose setup that starts Asterisk, detects the USB dongle, and uses environment variables for trunk login and the inbound context.
If anything depends on current Asterisk or Docker behavior, look up the latest docs online and adjust the code where needed. I’d also like clear install and usage instructions, plus a small example dialplan for incoming calls, SMS, and USSD.