[Freeswitch-users] schedule Broadcast into a conference

Matt Broad matt at supportedbusiness.com
Thu Jan 14 12:11:56 MSK 2016


Hi Bote & Anthony,

thanks for your suggestions.

Bote, the file location is fine as when I add one of the caller's UUID to
the sched_broadcast the file plays (though only to that caller).  The + is
not needed as the file should be repeated every x seconds during the call
(5 is just an example).  I guess I was clutching at straws that the
sched_broadcast would work in the same way with conferences as it does with
individual channels :)

Anthony,
funnily enough, I have just stumbled across sched_api and have managed to
get that to work in the same way you suggest.  Though are you able to
suggest a way of cancelling the api execute when the conference is ended?

I would like to have the file play every 3 minutes, which can be achieved
by using sched_api 180 conference testconf /tmp/test.wav.
This works fine all the time the conference is live, but when all parties
leave (or in my case the user with the endconf flag leaves) the api is
still trying to execute, and obviously fails.

thanks again

thanks
Matt

On 13 January 2016 at 17:49, Anthony Minessale <anthony.minessale at gmail.com>
wrote:

> sched_api +5 <confname> conference <confname> play /tmp/test.wav
>
>
> On Wed, Jan 13, 2016 at 9:29 AM, Bote Man <bote_radio at botecomm.com> wrote:
>
>> It might be informative to set the CLI to /log 7 for maximum debug detail
>> and set up a test conference.
>>
>>
>>
>> My first guess is that FS can’t find your audio file due to looking in a
>> different path, so specify an absolute path for testing to it to be sure.
>> But if it plays for one conferee then that might not be the trouble.
>>
>>
>>
>> Then again, per
>>
>>
>> https://freeswitch.org/confluence/display/FREESWITCH/mod_dptools:+sched+broadcast
>>
>>
>>
>> it looks like you must append ‘aleg’, ‘bleg’, or ‘both’ to that command
>> to tell it where the audio should be sent. You should test these to
>> discover which one works for the conference module since it says ‘bleg’
>> really means “the other leg” so experimentation is in order.
>>
>>
>>
>> Also, I think you need a plus sign in front of the 5 in your example to
>> mean “5 seconds from now”.
>>
>>
>>
>> Hope this helps.
>>
>>
>>
>> Bote
>>
>>
>>
>>
>>
>> *From:* Matt Broad
>> *Sent:* Wednesday, 13 January, 2016 08:50
>> *Subject:* [Freeswitch-users] schedule Broadcast into a conference
>>
>>
>>
>> Hi,
>>
>>
>>
>>
>>
>> I am wondering if there is an API command that will allow me to schedule
>> a broadcast into a conference?
>>
>>
>>
>> I have tried the following:
>>
>> sched_broadcast 5 UUID playback::tmp/test.wav
>>
>>
>>
>> I have tried replacing the UUID with the conference UUID and no file
>> plays (though the broadcast shows as being scheduled).
>>
>> I have also tried replacing UUID with one of the caller's UUID, the file
>> does play but only to that one caller and not all callers.
>>
>>
>>
>>
>>
>>
>>
>> many thanks
>>
>> Matt
>>
>> _________________________________________________________________________
>> 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       ♬ @anthmfs  ♬ @FreeSWITCH  ♬
>
>http://freeswitch.org/http://cluecon.com/> http://twitter.com/FreeSWITCH
> ☞ irc.freenode.net #freeswitch ☞ *http://freeswitch.org/g+
> <http://freeswitch.org/g+>*
>
> ClueCon Weekly Development Call
> ☎ sip:888 at conference.freeswitch.org  ☎ +19193869900
>
> https://www.youtube.com/watch?v=9XXgW34t40s
> https://www.youtube.com/watch?v=NLaDpGQuZDA
>
> _________________________________________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20160114/0cdb4be5/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list