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
|