[Freeswitch-users] different moh in conference for each call?
Anita Hall
anita.hall at simmortel.com
Wed Feb 15 20:41:58 MSK 2012
Yes Ken, I tried setting up different profiles and it has worked but
ideally this should work
http://wiki.freeswitch.org/wiki/Channel_Variables#hold_music
Even when I set hold_music (which is a pre-defined channel variable) in the
dialplan, it does not expand and gives the following error.
2012-02-15 22:28:19.775258 [ERR] switch_core_file.c:112 Unknown file Format
[/usr/local/freeswitch/sounds/en/us/callie/${hold_music}]
In my dialplan/default.xml
<action application="set" data="hold_music=$1" />
In my autoload_configs/conference.
conf.xml
<param name="moh-sound" value="local_stream://${hold_music}"/>
I am missing something here, or this could be a bug?
regards,
Anita
On Wed, Feb 15, 2012 at 9:01 PM, Ken Rice <krice at freeswitch.org> wrote:
> you can't put dial plan variables in the conference config like that and
> expect them to work... thats load time setup on the conferences you should
> probably set up separate profiles for them... see mod_conference page not
> he wiki
>
> On Wed, Feb 15, 2012 at 9:18 AM, Anita Hall <anita.hall at simmortel.com>wrote:
>
>> Hi
>>
>> 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
>>
>> In my dialplan/default.xml
>>
>> <extension name="conference_incoming">
>> <condition field="destination_number" expression="^(.*)$">
>> <action application="set" data="knowlus_hold_music=$1" />
>> <action application="conference" data="3001 at default"/>
>> <action application="hangup" />
>> </condition>
>> </extension>
>>
>> In my autoload_configs/conference.conf.xml
>>
>> <param name="moh-sound" value="local_stream://${knowlus_hold_music}"/>
>>
>> However, it does not work. It is not able to expand the variable
>> ${knowlus_hold_music}
>>
>> In the log
>> 2012-02-15 19:55:31.195264 [WARNING] mod_local_stream.c:393 Unknown
>> source ${knowlus_hold_music}, trying 'default'
>>
>> 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 ?
>>
>> Thanks.
>>
>> regards,
>> Anita
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120215/a87f528a/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list