Nandlal Virani
Nandlal Virani

Reputation: 674

Working with DTMF tones in android

I want to do following in android. Is it possible ?

1) call +xx xxxxxxx

2) wait to the first tone to end

3) insert pass: xxxx

4) wait for the short high tone to end

5) press 1 till you hear specific sound.

Here tones are DTMF tones and I tried to do it with call intent but how can i enter pass in ongoing call using code?

Can anybody guide me ?

Thanks in advance !

Upvotes: 1

Views: 2794

Answers (2)

Kevin Junghans
Kevin Junghans

Reputation: 17540

You may not be able to do it directly from an Android device but you could use a programmable service that uses Call Control XML (CCXML) to accomplish this. You would call the CCXML application which would in turn dial the phone number of the system you want to interact with. The CCXML application would then take over the automated process you describe. Listening for the tones, as described in your process, is often referred to as Call Progress Analysis. A platform that has a great CCXML and Call Progress Analysis is Voxeo's Prophecy. You can try it out for free. Since you are listening for DTMF tones you may want to use a combination of CCXML and VoiceXML. Prophecy supports both. VoiceXML can detect specific DTMF tones. There is no method for telling VoiceXML or CCXML to send DTMF. The way this is handles is playing audio recordings of DTMF. You can get audio recordings of DTMF tones that work on Prophecy here.

Upvotes: 2

Alex Lockwood
Alex Lockwood

Reputation: 83313

Writing to phone call stream is not possible, sorry.

Upvotes: 0

Related Questions