Grabbing DTMF digits

sblomstedt
Joined: Tue 04 of Sep, 2012

Re: Grabbing DTMF digits

Posted:Wed 05 of Sep, 2012 (17:44 UTC)
Okay. I've figured it out. I discovered the Read() function that will take the DTMF tones and puts them into a variable. I execute the Read function first, then I call that variable instead of using '5000' or '5001', and that kicks all the participants.

exten => s,1,Read(COUNT,conf-getconfno) <-- using 'conf-getconfno' will prompt for a conference number
exten => s,n,MeetMeAdmin(${COUNT},K)

Not so bad.
sblomstedt
Joined: Tue 04 of Sep, 2012

Grabbing DTMF digits

Posted:Tue 04 of Sep, 2012 (17:01 UTC)
Hello everyone.

I'm working on an application that kicks out every conference participant, effectively ending the conference. Technically, it already works, but what I want to do is grab the DTMF digits (if it's even possible) of that conference and use them in such a way as to make the application universal, and super easy to copy over to other systems without having to change a thing.

Here's what I've got:

[hangup-conference]
;kick all conference participants
exten => s,n,MeetMeAdmin(5000,K) <-- Instead of '5000', would possibly be a variable containing the DTMF digits (5000)
exten => s,n,MeetMeAdmin(5001,K)
exten => s,n,Wait(5)

;verify no one left in conference and end call
exten => s,n,MeetMeCount(5000)
exten => s,n,Wait(1)
exten => s,n,MeetMeCount(5001)
exten => s,n,Wait(2)
exten => s,n,Background(/var/lib/asterisk/sounds/en/goodbye)

;--== end of [hangup-conference] ==--;