Consultation, Dynamic Audio in Strategy

Dear expert friends, I hope you are well, I come to consult you a topic:

It turns out that I need to dynamically configure waiting audios, for example if a client calls “X” his data will enter a database and return information such as a promotion or offer.

According to the information provided by the database, a waiting audio should be configured in a particular way, and this is where I appeal to your knowledge to help me find a way to do this.

I was checking and I noticed that in the Places (Extension) they have default audios configured, exactly in the parameter: “default-music” here they enter an audio path.

Using this configuration, how could this requirement work, I looked for a function at the IRD level but I did not find any.

I look forward to your kind contribution, thank you for your time and help.

Thanks

Well you can set the wav file names based on your WS response, example:

You have 3 music files under some web server:
http://fileserver/queue/
or just under MCP music folder:

A.wav
B.wav
C.wav

Now your WS returns 3 digits or even better the music file already existing:
0->100 = A.wav
100->200 = B.wav
200->9999999 = C.wav

So in your strategy according to those values you set a variable:

v_music = ‘x.wav’ where x can be A, B or C.

Now under your target object you can set the music as v_music and MCP will go and fetch that audio.

Same applies for Music On Hold, you can just attach an AttributeExtension KVP ‘music-on-hold’ with the v_music and will work too.

https://docs.genesys.com/Documentation/SIPS/8.1.1/Dep/CustomMOH

thanks Kavagnaro, your idea helped me a lot, thanks for all your support,