Hi All,
i am very much interested in sendDigits() API.
However, I am facing issue with this API. I am not sure, how it actually works or if it works in real.
I am doing Single party Call, Playing the TTS on receiving the call by user.
final UUID requestId=mediaservice.play(call.getCalledParty(), playItem, myMediaListener);
In play completed callback i am sending digits using this API. IF
"#" is sent the TTS will be played again.
MediaService mediaService = MediaFactory.createMediaService();
MyMediaListener mediaListner = new MyMediaListener(call);
logger.info("Calling Party Is : "+call.getCallingParty().getHandle());
mediaService.sendDigits(call.getCallingParty(), "#", mediaListner);
However, in above code i tried participant as both Called Party and Calling Party but still its not working.
In JavaDoc its written as participant should be to whom you want to send digits.
UUID sendDigits(Participant participant,
String digits,
MediaListener mediaListener)
Sends digits (DTMF tones) to a participant on a call.
Parameters:
participant - the digits will be sent to this participant on the call
digits - the digits to be sent. The supported digits are from the set {0-9, A, B, C, D, *, #}.
mediaListener - the MediaListener that receives media events on completion of the operation.
Please let me know how i can make it works.
Also single party just was a POC where i want to check the potential of sendDIgits API.
In my real project i want to send digits to SCOPIA bridge to get into conference without manually entering the conference id.
In this case, to whom digits need to be sent.
in above case :
firstParty : user who is going to be in confrence
secondParty : scopia bridge.
Need help urgently, as we need to release Snap-In asap.
Thanks and Regards,
Swapnil.