wdoekes / asterisk-chan-dongle

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

Add dialplan DongleSendUSSD(Device,USSD) function #14

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 (I can use it 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:.

It would be nice to add this feature in master branch .

fadasi commented 8 years ago

I'm going to try. I must familiarize myself with github, currently not inconclusive trials. I'll start over as soon as I have time.

wdoekes commented 8 years ago

You were just a squash and a typo away from getting merged :)

You just had to git rebase -i HEAD~3 and then put a fix instead of pick on the commits you want to merge into the first.

(Note that it's "example", not "exemple".)

wdoekes commented 8 years ago

(And a git push -f after the squash (rebase).)