Hi<br><br>I am trying to play different moh sound for each conference call by passing a variable to moh-sound from the dialplan to autoload_configs/conference.conf.xml<br><br>In my dialplan/default.xml<br><br> <extension name="conference_incoming"><br>
<condition field="destination_number" expression="^(.*)$"><br> <action application="set" data="knowlus_hold_music=$1" /><br> <action application="conference" data="3001@default"/><br>
<action application="hangup" /><br> </condition><br> </extension><br><br>In my autoload_configs/conference.conf.xml<br><br><param name="moh-sound" value="local_stream://${knowlus_hold_music}"/><br>
<br>However, it does not work. It is not able to expand the variable ${knowlus_hold_music}<br><br>In the log<br>2012-02-15 19:55:31.195264 [WARNING] mod_local_stream.c:393 Unknown source ${knowlus_hold_music}, trying 'default'<br>
<br>Is it even possible to pass a channel variable to a config file ? Or is there another way to achieve what I am trying to do ?<br><br>Thanks. <br><br clear="all">regards,<br>Anita<br><br>