Page 1 of 1

Different SoundBoard Audio for Different Agent

PostPosted: Sat Dec 02, 2017 4:00 pm
by elyc1990
Hi all,

I successfully configured soundboard for agents. However, the audio files in soundboard are shared. Is there any way to upload and play different audio file (each recorded with agents' own voice) for different agents?

The reason is that our customers may ask out-of-box questions so we need agents to come in whenever this happens.

My Vicidial Version:
VERSION: 2.14-636a
BUILD: 171011-1450

Re: Different SoundBoard Audio for Different Agent

PostPosted: Sat Dec 02, 2017 8:44 pm
by blackbird2306
No this feature is not implemented yet.
But follow my instructions and then it's possible:
1. Backup and edit "vdc_soundboard_display.php" in directory srv/www/htdocs/agc :
change line 476 to:
Code: Select all
PLAY_query = "source=soundboard&stage=PLAY&dial_override=Y&function=audio_playback&user=" + api_user + "&pass=" + clean_var(api_set) + "&agent_user=" + agent_user + "&value=" + temp_audio_file + "_" + agent_user + "&agent_debug=" + soundboard_event_log;

2. Upload your files for each agent with different file name in this format: "soundfilename_agent_user" e.g. "traffic_6666.gsm"
3. Take care that all files have the same prefix soundfilename from soundboard configuration menu followed by "_" and the agent id: e.g. traffic_6666.gsm, traffic_4444.gsm and so on
3. This is just a fast solution: the real sound file length for the progress bar will be ignored (put for all sound files a base file also in directory e.g. "traffic.gsm" without agent prefix
3. That's all for now have fun

Re: Different SoundBoard Audio for Different Agent

PostPosted: Sun Dec 03, 2017 12:41 am
by elyc1990
Thanks for your solution! I will try it out