How to cancel recording on pressing DTMF 0 tone only?

hi everybody…
i want to canel my recording [recorded by record() function ] on pressing only DTMF 0 tone.since current record application has option for the same is DTMF #, DTMF * and DTMF all remaining tones?

waiting for reply :smile: ,
thanx in advance.

You could modify the source code and recompile. Or, you might be able to use the Asterisk Manager Interface to parse the DTMF events and hack up something with the ChannelRedirect application. Either way, this is non-trivial.