[Freeswitch-users] How to playbak a file in a conference?

Anthony Minessale anthony.minessale at gmail.com
Sat May 5 12:08:33 UTC 2018


Yep, that’s fine.  You could also opt to make the conf name a var too.


On Sat, May 5, 2018 at 7:08 AM Babak Yakhchali <babak.freeswitch at gmail.com>
wrote:

> I changed caller-controlls to this:
> ...
> <control action="execute_application" digits="0" data="set
> api_result=${conference paging play applications/2/test.mp3}"/>
> ...
> and it is working now but I donno if this is a good solution :)
>
> On Sat, May 5, 2018 at 1:43 PM, Babak Yakhchali <
> babak.freeswitch at gmail.com> wrote:
>
>> Hi
>> I'm using the following lua script to add some users taken as argument to
>> a conference:
>>
>> session:execute('answer');
>> session:setVariable('api_hangup_hook','conference paging kick all'); --kick
>> out all page devices on hangup
>> session:setVariable('conference_auto_outcall_timeout','5'); --??
>> session:setVariable('conference_auto_outcall_flags','none') --you can
>> mute page devices
>>
>> session:setVariable('conference_auto_outcall_announce','tone_stream://%(500,200,800);loops=3')
>>
>> for i,v in ipairs(argv) do
>> session:execute('conference_set_auto_outcall','user/'..v)
>> end
>> session:execute('conference','paging at default');
>>
>> this is working fine and all members are connected to conference. now I
>> need to start playing a file into conference. currently I'm using
>> caller-controls part of conference.conf.xml to play the file when a caller
>> presses the 0 key:
>>
>> ...
>> <caller-controls>
>>     <group name="default">
>>       <control action="execute_application"  digits="0" data="playback
>> applications/2/test.mp3"/>
>>       ...
>>     </group>
>>   </caller-controls>
>> ....
>> now when each member presses 0 the file is played but just to the member
>> which pressed the 0 key. how can I make it to play the file for all
>> conference members?
>>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at 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 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

-- 
Anthony Minessale II
Founder, FreeSWITCH.
http://freeswitch.com


https://youtu.be/l_hOxzCt6X4
https://www.youtube.com/watch?v=oAxXgyx5jUw
https://www.youtube.com/watch?v=9XXgW34t40s
https://www.youtube.com/watch?v=NLaDpGQuZDA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20180505/4d01f81a/attachment.html>


More information about the FreeSWITCH-users mailing list