Author Message
ManishPatil3
Joined: Mar 28, 2014
Messages: 1
Offline
I am currently developing application for CE, where i need to play announcement when user receives a call.

Code flow is working fine from HTTP request from user to ringing a call to provided number, when it tries to play an announcement call drops with following error in CE logs.

2014-03-28 00:50:41,480 [SipContainerPool : 0] state.listeners.AnnouncementPlayerListener FINEST - Enter AnnouncementPlayerListener onEvent
2014-03-28 00:50:41,480 [SipContainerPool : 0] state.listeners.AnnouncementPlayerListener FINEST - Play qualifier = NO_QUALIFIER type = PLAY_COMPLETED
2014-03-28 00:50:41,480 [SipContainerPool : 0] state.listeners.AnnouncementPlayerListener FINEST - Play Failed
2014-03-28 00:50:41,480 [SipContainerPool : 0] media.state.PlayingState FINEST - Entering playFailed
2014-03-28 00:50:41,480 [SipContainerPool : 0] media.state.AbstractState FINEST - Enter playFailed
2014-03-28 00:50:41,480 [SipContainerPool : 0] media.state.AbstractState ERROR - 0c0c5bae-c43b-4819-b8bb-53292aa86c09 playFailed reason dialog exit - play.failed, NOT_FOUND

I understand there is specific format required to play an announcement on Avaya Media Server. I am following required format and my file is located at : /usr/tmp/MOH.wav which I pass to 'playItem' by method setSource().

I am not getting, why it is showing above error and not playing announcement of provided sound file.

Any help would be appreciated.
DipeshGandhi2 [Avatar]

Joined: Nov 14, 2011
Messages: 35
Offline
There are few things I would recommend checking..

1) Please check that you are providing file URI in proper file URI format such as this: playItem.setSource("file:///usr/tmp/MOH.wav");
2) Check file permission for directory/file where your wav is located. CE must be able to access the file.
3) There are set of default wav files that are deployed with AMS. You could see if the default wav file can be played. If so, then the issue could be with your wav file or permissions to the file/directory. The default wav file as follows:
playItem.setSource("file:///opt/avaya/ma/MAS/platdata/Announcements/mmf/system/default/twenty-five-dollars.wav");








Dipesh Gandhi Software Engineer, Avaya DevConnect
JoelEzell
Joined: Nov 15, 2013
Messages: 780
Offline
Something else you might want to check is the format of the wav file. I recently found that using the default Windows 7 sound recorder will result in a stereo wav file, which is not compatible with the Avaya Media Server. The recommended wav file format is 16 bit mono 8000Hz. Audacity may be a good free tool that would provide more control over the recording format than the Windows 7 sound recorder.
Go to:   
Mobile view