Author Message
AdamEurich
Joined: Nov 8, 2013
Messages: 55
Offline
Hi,

I'm using getPhone.getMedia.StartPlaying to play a wav file. Is there an event that will tell me when the file is done playing?

Would one of these be what I'm looking for?

getPhone.getMedia.OnMediaStoppedEvent
getPhone.getMedia.OnPlayingStoppedEvent

Also, can you send me a link to a document that explains what all the events represent? I have AESDeviceMediaandCallControl.NETAPIProgrammersGuide.10.0-Aug 2022.pdf but neither of those events are in the document.

Thanks in advance,

Adam
MartinFlynn
Joined: Nov 30, 2009
Messages: 1931
Offline
Firstly, if you are using Media.StartPlaying, then your terminal is registered in Server media mode. This relies on AES to process the media and is not scalable. It's probably OK if you only expect to use it for occasional calls but will not be useful for a high load. I urge you to check Table 2 of the "Capacities for calls in DMCC applications" section of "Avaya Aura Application Enablement
Services Overview and Specification".

OnMediaStoppedEvent will be generated when AES finishes playing the wav file. You can see this in action in the SimpleRecord sample application which is included in the .Net SDK. I also suggest you use the Dashboard (also included in the SDK) to exercise the DMCC interface. This is probably the easiest way to become familiar with DMCC.

The JTAPI SDK includes many more sample applications. The architecture of the client is different but the events and their contents are basically the same as the .Net SDK.

I have attached an old white paper on using DMCC which may give some more useful information.

Martin
Filename MasteringDeviceMediaAndCallControl_MIS4040-DEV.pdf [Disk] Download
MartinFlynn
Joined: Nov 30, 2009
Messages: 1931
Offline
It looks like the attachment didn't attach. You can download the ebook "Mastering Device, Media and Call Control using the DMCC Dashboard" from https://www.devconnectprogram.com/site/global/products_resources/avaya_aura_application_enablement_services/educational_resources/index.gsp
AdamEurich
Joined: Nov 8, 2013
Messages: 55
Offline
Could you please send me a link to "Avaya Aura Application Enablement
Services Overview and Specification". Your web site is not very friendly for finding documents.
MartinFlynn
Joined: Nov 30, 2009
Messages: 1931
Offline
You can download it from this page:
https://www.devconnectprogram.com/site/global/products_resources/avaya_aura_application_enablement_services/releases/10_1/index.gsp#download-1
AdamEurich
Joined: Nov 8, 2013
Messages: 55
Offline
If Avaya doesn't suggest using server mode, do you have any examples, documents or APIs on how to reliably stream audio to Avaya? I saw some code in the C# simple record but it doesn't explain much and by its own comments does not account for jitter or quality of service.
MartinFlynn
Joined: Nov 30, 2009
Messages: 1931
Offline
The media is transported by RTP (Real Time Protocol) which is a standard, defined by RFC 3550 https://datatracker.ietf.org/doc/html/rfc3550. Therefore, all developers can write/procure a library to handle it which is suitable for their own environment. Avaya does not provide such a library.

The sample application is designed to demonstrate the DMCC API. Its media handling code is purely to support the rest of the sample and is not designed for production.

Note: If you intend to handle secure media (SRTP) in the future, you will need to familiarize yourself with rfc3711 and write/procure a library to support this too.

Martin
Go to:   
Mobile view