Per-Channel Hold Music Question
Hey all, I'm using FS in a multi-tenant scenario where I'm trying to set hold music via the hold_music channel var with a file_string:// of hold music files. However, I'd like to get something closer to local_stream:// behavior (without being able to use it since hold music is dynamic). Ideally, I want callers to hear a random file from the hold_music file string each time they're placed on hold. Is there a file handler like file_string:// that would pick a file to play randomly? Or another suggestion to accomplish a similar goal of getting callers to hear something different when they're placed on hold multiple times? Best, Colin
check out this https://freeswitch.org/jira/browse/FS-4480 as you'll see it's not perfect. you can also have an esl listener that changes the hold_music variable after each hold event. the ultimate solution would be to have something like random_play://file1.wav,file2.wav,file3.wav but I don't think anyone developed that. if you do come up with another solution please let me know. On Wed, Jul 27, 2016 at 9:32 AM, Colin Morelli <colin.morelli@gmail.com> wrote:
Hey all,
I'm using FS in a multi-tenant scenario where I'm trying to set hold music via the hold_music channel var with a file_string:// of hold music files.
However, I'd like to get something closer to local_stream:// behavior (without being able to use it since hold music is dynamic). Ideally, I want callers to hear a random file from the hold_music file string each time they're placed on hold. Is there a file handler like file_string:// that would pick a file to play randomly? Or another suggestion to accomplish a similar goal of getting callers to hear something different when they're placed on hold multiple times?
Best, Colin
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks for the reply! Agreed, I was thinking something like random_play://. Too bad it's not available yet. I can try the lua solution for now. If I have any time I might put in a quick try at building it. Given that file_string already exists, I can't imagine it would be considerably harder to implement a random_play. Best, Colin On Wed, Jul 27, 2016 at 12:05 PM Abaci B <abaci64@gmail.com> wrote:
check out this https://freeswitch.org/jira/browse/FS-4480 as you'll see it's not perfect. you can also have an esl listener that changes the hold_music variable after each hold event. the ultimate solution would be to have something like random_play://file1.wav,file2.wav,file3.wav but I don't think anyone developed that. if you do come up with another solution please let me know.
On Wed, Jul 27, 2016 at 9:32 AM, Colin Morelli <colin.morelli@gmail.com> wrote:
Hey all,
I'm using FS in a multi-tenant scenario where I'm trying to set hold music via the hold_music channel var with a file_string:// of hold music files.
However, I'd like to get something closer to local_stream:// behavior (without being able to use it since hold music is dynamic). Ideally, I want callers to hear a random file from the hold_music file string each time they're placed on hold. Is there a file handler like file_string:// that would pick a file to play randomly? Or another suggestion to accomplish a similar goal of getting callers to hear something different when they're placed on hold multiple times?
Best, Colin
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Abaci B
-
Colin Morelli