invoso.com Report post Posted 09/25/2013 11:37 AM Hi, we need solution for a MoH for waiting loop. When all agents are busy we want to play music during wait, but with two parameters: file to play and time to play. So to start playing wav file (long for example 60 seconds) and terminate after declared time (after 10 seconds) Share this post Link to post
SupportTeam Report post Posted 09/25/2013 08:28 PM Best approach is to have a series of files that are of different lengths, and choose to play the file of length that you want to play. eg: moh_10.wav moh_20.wav moh_30.wav moh_40.wav etc. Share this post Link to post
invoso.com Report post Posted 09/26/2013 06:27 AM We need solution where we import one MoH file and in different places length is declared in $RV. Share this post Link to post
SupportTeam Report post Posted 09/26/2013 06:33 AM (edited) Our advice is to create a set of files as advised above, and then use a play module to play this expression: moh_$RV[mylength].wav the correct length file would then be selected for play. looks like your maximum length is 60 seconds - so at most you would need to create 60 files - and if you round the time to nearest 5 seconds then number of files would be only 12. The alternative would be to run a separate VBScript .EXE that communicates with VoiceGuide using WCF and has some timeout inside it and issues a vgServices Play_Stop command (while monitoring for end of call events) - but we would not advise doing this. Edited 09/29/2013 01:27 AM by SupportTeam WCF approach fleshed out. Share this post Link to post