The wiki says you can use the channel variable ${hold_music} (http://wiki.freeswitch.org/wiki/Mod_callcenter#moh-sound) Yet when you use <param name="moh-sound" value="${hold_music}"/> You will get: mod_native_file.c:74 Error opening /usr/local/freeswitch/sounds/en/us/callie/${hold_music}.PCMU If you use <param name="moh-sound" value="$${hold_music}"/> It will play the hold music set in the global variable. Is there any way for mod_callcenter to take a channel variable as the music on hold?
This was answered in IRC: use the channel variable: cc_moh_override like <action application="set" data="cc_moh_override=tone_stream://%(2000,4000,440,480)"/> or <action application="set" data="cc_moh_override=/var/sounds/2_4f57c0e54467d.mp3"/> or <action application="set" data="cc_moh_override=file_string:///var/sounds/2_4f57c101e6116.wav!/var/sounds/2_4f57c0e54467d.mp3"/> Thanks Moc, this module is badass! On Wed, Mar 28, 2012 at 3:17 PM, Vik Killa <vipkilla@gmail.com> wrote:
The wiki says you can use the channel variable ${hold_music} (http://wiki.freeswitch.org/wiki/Mod_callcenter#moh-sound) Yet when you use <param name="moh-sound" value="${hold_music}"/> You will get: mod_native_file.c:74 Error opening /usr/local/freeswitch/sounds/en/us/callie/${hold_music}.PCMU
If you use <param name="moh-sound" value="$${hold_music}"/> It will play the hold music set in the global variable. Is there any way for mod_callcenter to take a channel variable as the music on hold?
participants (1)
-
Vik Killa