wdoekes / asterisk-chan-dongle

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

Add DongleSendUSSD in extension.conf #12

Closed fadasi closed 8 years ago

fadasi commented 8 years ago

I need to use a DongleSendUSSD function in extensions.conf :

root@pabx:~# grep DongleSendUSSD /etc/asterisk/extensions.conf
exten => *#123#,n,DongleSendUSSD(dongle1,${EXTEN})
root@pabx:~#

to check the balance of a SIM (after a "Dial(Dongle/...", etc).

I found a code example at http://a.dmin.pro/?p=2712 (thanks Google) and I modified sources app.c: asterisk-chan-dongle-fadasi-3.zip

It would be nice to add this feature.

wdoekes commented 8 years ago

It helps if you try and make a pull request of your changes instead of zipping a diff.

It's real easy once you get the hang of it. Reviewing those changes can then be done from the github interface.

fadasi commented 8 years ago

Done. Sorry for inconvenience, but I did not know how to do it.