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
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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@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@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@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@gmail.com <javascript:_e(%7B%7D,'cvml','alipey@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@gmail.com <javascript:_e(%7B%7D,'cvml','ssinyagin@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@gmail.com <javascript:_e(%7B%7D,'cvml','alipey@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@freeswitch.org <javascript:_e(%7B%7D,'cvml','consulting@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@lists.freeswitch.org <javascript:_e(%7B%7D,'cvml','FreeSWITCH-users@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@freeswitch.org <javascript:_e(%7B%7D,'cvml','consulting@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@lists.freeswitch.org <javascript:_e(%7B%7D,'cvml','FreeSWITCH-users@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@freeswitch.org <javascript:_e(%7B%7D,'cvml','consulting@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@lists.freeswitch.org <javascript:_e(%7B%7D,'cvml','FreeSWITCH-users@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@conference.freeswitch.org ☎ +19193869900 https://www.youtube.com/watch?v=9XXgW34t40s https://www.youtube.com/watch?v=NLaDpGQuZDA
participants (4)
-
Ali Pey
-
Anthony Minessale
-
Michael Collins
-
Stanislav Sinyagin