Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
FrugalHorn
Posts: 27
Registered: ‎04-09-2009
My Device: Not Specified
Accepted Solution

DTMF

Greetings,

 

Enviornment - JDE - 4.5.0 and default simulator.

 

In my app, after a call is connected I need to send,
- A digit
- Pause for 2 seconds
- Send 12 digits
- Pause for 2 seconds
- Send another 12 digits

 

However I'm stuck at the first step.

 

1. In the callConnected method if I try to send a digit(..say '1', '2' etc) Though the function sendDTMFTone returns true, the result is a constant audio tone. Is this Ok?

2. Is it possible to generate one big string, for above mentioned steps 1 to 5, inserting pauses and call sendDTMFTones only once?

3. Can someone please point out to resources/samples/code-snippets/FAQs where I can read about basics of DTMF, sending and receiving tones on blackberry platform?

 

Thanks you fellows.


FrugalHorn

Please use plain text.
New Developer
FrugalHorn
Posts: 27
Registered: ‎04-09-2009
My Device: Not Specified

Re: DTMF

Hello.

 

Anyone..please!!

Please use plain text.
Developer
simon_hain
Posts: 16,010
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: DTMF

it is not possible to receive dtmf on the blackberry, you can only send them.
you can use sendDTMFTones(String tones) to add multiple tones to the calls send queue.
both methods are asynchronous so you can not place a sleep(2000) to create a pause of 2 seconds.
i measured the time it takes to send a dtmf tone myself and set the sleep accordingly after adding all tones of one sequence to the send queue.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
New Developer
FrugalHorn
Posts: 27
Registered: ‎04-09-2009
My Device: Not Specified

Re: DTMF

simon_hain,

 

Thanks very much for your reply. It did further my understanding of dtmf.

 

See if you can share thoughts on following two doubts:

 

1. Is there a way to verify if dtmf tones are transmitted correctly? How about checking a boolean return value of sendDTMFTones function? If it returns true, can one assume then that the DTMF tones are copied to the queue and transmitted properly?

 

2. Doesn't the sendDTMFTones function generate corresponding audio tones and beeps? My sendDTMFTones method doesn't produce the audio tones/beeps?

 

Regards,
FH

Please use plain text.
Developer
simon_hain
Posts: 16,010
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: DTMF

no, you can not verify it as the dtmf is handled internally by the phone application. i did not test if the phone call stays open if you end it manually and there are still dtmf tones to send. maybe it is best to override the hangup button.

no, the beeps are generated by the phone application as a response to the keys you press. sending dtmf programatically does not give a feedback.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
New Developer
FrugalHorn
Posts: 27
Registered: ‎04-09-2009
My Device: Not Specified

Re: DTMF

Many many thanks..simon_hain!!
Please use plain text.
New Developer
dexterprab
Posts: 10
Registered: ‎07-01-2009
My Device: Not Specified

Re: DTMF

Hi sohm,

 

In your post you talked about overriding the functionality of hang up button. can u explain more how we can do it. I think this cannot be done. As in u cannot stop a call from getting disconnected when u press hang up button even if u have overrided it in ur application.

 

correct me if am wrong.

 

Thanks

Please use plain text.
Developer
simon_hain
Posts: 16,010
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: DTMF

please open an own thread for your question

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.