Author Message
Swapnil_Bhosale
Joined: May 18, 2015
Messages: 88
Offline
In my current problem i want to send DTMF automatically through code instead of manually entering Digits by the User.
Is there any provision to send DTMF programmatically?

I am using EDP SDK version 3.1.1

Waiting for your earlier response.


Thanks and Regards,
Swapnil Bhosale.
MrinalThigale
Joined: Dec 19, 2013
Messages: 8
Offline
Hi Swapnil
Are you able to intercept the call ?
Once intercepted , you can send digits programmatically using API call below :

Using sendDigits method in MediaService, you can send digits (DTMF tones) to a participant in a
call. The method also allows you to register a MediaListener instance, so that you get a callback to
perform some actions after the send digits operation completes. The sendDigits API supports
sending the set of digits { A,B,C,D, 0-9, *, # }. A typical use of this API will look like the below code
snippet.
//Obtain a participant
Participant participant = ... ;
//The digits to be
sentString digits = "D19175";
//create an instance of MediaListenerMediaListener
listener = new MediaListenerAbstract()
{
public void sendDigitsCompleted(final UUID requestId, final SendDigitsOperationCause
cause)
{
//it's invoked when send digits operation gets completed

}}
...
//obtain an instance of MediaServiceMediaService
mediaService = MediaFactory.createMediaService();
//Perform send digits operation
mediaService.sendDigits(participant, digits,listener);


Reference : Avaya Engagement Development Platform Snap-in Development Guide

Let us know how this goes
Regards
Mrinal
Go to:   
Mobile view