Hi All,
I was wondering if someone could tell me how to send in band DTMF using the Audio Proxy Server. Should we use the CMdaAudioToneUtility?
Thanks,
Francois
Hi All,
I was wondering if someone could tell me how to send in band DTMF using the Audio Proxy Server. Should we use the CMdaAudioToneUtility?
Thanks,
Francois
You are right. This will be documented in next release of APS. Here are the right audio pref & prio values to support DTFM tones over a VoIP call:
//VoIP Call
const TUint KAudioPrefVoipAudioUplinkNonSignal = 0x05230001;
//VoIP Call
const TUint KAudioPriorityVoipAudioUplinkNonSignal = 100;
The NonSignal constant causes that DTMF tones replace mic signal when tones are present present.
i've been using the audio proxy server to do this, just using the 0x05220001 preference value for uplink given in the example.
You either have to generate the tones yourself from sine waves as a buffer of samples, and send these to the APS, or have a pre-recorded wave file for each digit and send them one at a time. Both these methods have worked for me.
@nly:
The values you have provided - are these values to use with the APS, or are they values to use with CMdaAudioToneUtility? I tried a sequential search of all preference values and couldn't find one that didn't give access denied during a phone call.
Also, where are these preference values defined? There is an older set of these magic numbers in the avkon.hrh header, but where is the list of these 0x052X0001 values and their meanings?
Thanks!
To play DTMF tones, you need to create and use CMdaAudioToneUtility with the same VoIP preference APS is using for uplink (0x05220001) and downlink (0x05210001).
Hi Nly,
We tried that but found it didn't work at all.
Using CMdaAudioToneUtility gave an access denied error no matter what preference value we used - we cycled through all of them, after trying the voip onces published here! And yes, we had multimedia DD capability.
Cheers
Rob
Hi,
Just tried with the same results as Rob, access denied...
Also found that sending keys to the phone application will only generate the tone if the phone appliction is in the foreground. Im not sure if that's phone/firmware specific.
Desperately need some pointers to continue...
Thanks in advance, Aymen