[Freeswitch-users] Endless playback in conference
Danny Gershman
danny.gershman at gmail.com
Thu Jul 23 21:40:53 MSD 2015
Ok what I did was the following, that seems to work.
1) Created a new dialplan extension
<extension name="dynamicmoh">
<condition field="destination_number" expression="^dynamicmoh-(.*)$">
<action application="endless_playback" data="$1" />
</condition>
</extension>
2) From a conference I do this
conference <conf> bgdial sofia/internal/dynamicmoh-/path/to/file at server-ip
3) To end playback, just hup the member in the conference.
Thanks.
--Danny
On Thu, Jul 23, 2015 at 12:15 PM Chris Tunbridge <blasterjr at gmail.com>
wrote:
> Danny the fastest solution i can come up with is doing an originate that
> connects a hold music extension to the conference, then when you wanna stop
> it, you just kick that member out.
>
> On Thu, Jul 23, 2015 at 9:28 AM, Danny Gershman <danny.gershman at gmail.com>
> wrote:
>
>> I want to be able to play a file into a conference and have it loop
>> forever, like music on hold does. And then when I need to I want to stop
>> it.
>>
> On Thu, Jul 23, 2015 at 11:20 AM Brian West <brian at freeswitch.org> wrote:
>>
> What is your goal here? Maybe I missed the entire scenario.
>>>
>>> On Thu, Jul 23, 2015 at 10:07 AM, Danny Gershman <
>>> danny.gershman at gmail.com> wrote:
>>>
>>>> Wouldn't a profile have to be created on the fly for this? From what I
>>>> can see you cannot set this for a conference from an api call. Also to stop
>>>> it, you would have to change the profile for the conference to remove it.
>>>> On Wed, Jul 22, 2015 at 6:28 PM Bote Man <bote_radio at botecomm.com>
>>>> wrote:
>>>>
>>>>> There’s a parameter for mod_conference named “perpetual-sound” that
>>>>> looks like it would do the trick.
>>>>>
>>>>>
>>>>>
>>>>> It’s about 1/3 of the way down
>>>>>
>>>>> https://freeswitch.org/confluence/display/FREESWITCH/mod_conference
>>>>>
>>>>>
>>>>>
>>>>> PLEASE check further for any changes that might have been made in the
>>>>> latest FreeSWITCH as the conference module has undergone substantial
>>>>> changes and perpetual-sound might have been one of them.
>>>>>
>>>>>
>>>>>
>>>>> Bote
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> *From:* Danny Gershman
>>>>> *Sent:* Wednesday, 22 July, 2015 17:09
>>>>> *Subject:* [Freeswitch-users] Endless playback in conference
>>>>>
>>>>>
>>>>>
>>>>> I'm trying to do an endless playback of an mp3 file in a conference.
>>>>> I have a couple of ideas, but none seem really solid.
>>>>>
>>>>>
>>>>>
>>>>> 1) Pass a variable on play and monitor from mod_event_socket and play
>>>>> again if not forcibly terminated.
>>>>>
>>>>>
>>>>>
>>>>> 2) Load up local_stream dynamically from an xmlhttp server, and then
>>>>> restart the local stream service, however will interrupt MOH for other
>>>>> users.
>>>>>
>>>>>
>>>>>
>>>>> Any other ideas? Is there a way to do looping for "api" through
>>>>> mod_event_socket? I know you can with "sendmsg"
>>>>>
>>>>>
>>>>>
>>>>> --Danny Gershman
>>>>>
>>>>> _________________________________________________________________________
>>>>> 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
>>>>
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> 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
>>>>
>>>
>>>
>>>
>>> --
>>>
>> *Brian West*
>>> brian at freeswitch.org
>>>
>>>
>>> *Twitter: @FreeSWITCH , @briankwest*
>>> http://www.freeswitchbook.com
>>> http://www.freeswitchcookbook.com
>>>
>>> Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit:
>>> /r/freeswitch <https://www.reddit.com/r/freeswitch>
>>>
>> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378)
>>>
>>
>>> *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>>>
>> _________________________________________________________________________
>>> 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
>>
>> _________________________________________________________________________
>> 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
>>
> _________________________________________________________________________
> 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/20150723/4e9430ef/attachment.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list