[Freeswitch-users] Dynamic local_stream?

Anthony Minessale anthony.minessale at gmail.com
Tue Apr 21 08:23:39 MSD 2015


The start_local_stream func will do an xml search every time its called.
Use it together with an xml hook module like mod_xml_curl or mod_xml_scgi
to look at the request and generate the particular custom xml.

If you keep using the word dynamic and you have not learned about xml hooks
you are doomed.

On Monday, April 20, 2015, Michael Collins <msc at freeswitch.org> wrote:

> It appears that there's nothing dynamic baked into mod_local_stream that
> would allow you to create a new stream from an API call. So it appears your
> two choices are: modify local_stream.conf.xml or use mod_xml_curl to serve
> up a dynamic configuration for local_stream.
>
> -MC
>
> On Mon, Apr 20, 2015 at 10:53 AM, Ali Pey <alipey at gmail.com
> <javascript:_e(%7B%7D,'cvml','alipey at gmail.com');>> wrote:
>
>> The problem with hold music is that it would restart the file/music if
>> there are more bridge calls. I'm looking for a way that the music would not
>> get restarted.
>>
>> Thanks.
>>
>>
>> On Thu, Apr 16, 2015 at 7:01 PM, Stanislav Sinyagin <ssinyagin at gmail.com
>> <javascript:_e(%7B%7D,'cvml','ssinyagin at gmail.com');>> wrote:
>>
>>> You can just playback those files or set them as ringback tone or hold
>>> music. Local stream is optimizing the playback so that the source file is
>>> read only once, and it restarts from the position it stopped last time. If
>>> it's not needed or not critical, you can just playback individual files
>>> instead.
>>>  On Apr 16, 2015 6:24 PM, "Ali Pey" <alipey at gmail.com
>>> <javascript:_e(%7B%7D,'cvml','alipey at gmail.com');>> wrote:
>>>
>>>> Hello,
>>>>
>>>> Is it possible to dynamically set different local_stream files for
>>>> different users/bridges?
>>>>
>>>> For instance I need a different custom MOH for call1 than call2 and
>>>> they dynamically change as users can upload their own custom moh and I
>>>> can't change the local_stream.conf.xml config file.
>>>>
>>>> Thanks,
>>>> Ali Pey
>>>>
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> <javascript:_e(%7B%7D,'cvml','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
>>>> <javascript:_e(%7B%7D,'cvml','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
>>> <javascript:_e(%7B%7D,'cvml','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
>>> <javascript:_e(%7B%7D,'cvml','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
>> <javascript:_e(%7B%7D,'cvml','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
>> <javascript:_e(%7B%7D,'cvml','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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150420/9bcc6ad7/attachment-0001.html 


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