[Freeswitch-users] different moh in conference for each call?
Brian West
brian at freeswitch.org
Wed Feb 15 21:54:12 MSK 2012
sir...
conference_moh_sound variable set in dialplan before you enter the conference.
/b
On Feb 15, 2012, at 12:35 PM, Ken Rice wrote:
> ok let me try this again.....
>
> In your autoload_configs/conference.
> conf.xml
>
> <param name="moh-sound" value="local_stream://${hold_music}"/>
>
> That Variable is NOT expanded at call time it is only expanded at
> mod_conference configure time (i.e.: when mod_conference is loaded) this is
> outside of the context of the dial plan completely...
>
>
>
>
> On Wed, Feb 15, 2012 at 11:41 AM, Anita Hall <anita.hall at simmortel.com>wrote:
>
>> 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
>>>
>>>
>>
>> _________________________________________________________________________
>> 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
--
Brian West
FreeSWITCH Solutions, LLC
Phone: +1 (918) 420-9266
Fax: +1 (918) 420-9267
brian at freeswitch.org
http://www.freeswitch.org
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list