Ok, I haven't thougth about that, it sounds good. I'll do it this way hoping that it will get accepted in the trunk
start_local_stream <name> [<path>] [<rate>] [<shuffle>] [<channels>] [<interval>] [<timer_name>] : so if you define a path it will take the path, if you don't define a path it will open the xml and search for <name> Thanks. Bye. Cesar Cepeda. De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Anthony Minessale Enviado el: Monday, September 22, 2008 6:26 PM Para: freeswitch-users@lists.freeswitch.org Asunto: Re: [Freeswitch-users] Creating and destroying local_stream dynamically $$ vars are only parsed by the xml engine. you could make it take the name of a stream as defined in the xml then open the xml and search for that stream config so when you want to add a new one called foo, you add the new stream def for foo to the xml file, reloadxml and start_stream foo then if you switch to xml_curl you can dynamically delver that xml too On Mon, Sep 22, 2008 at 5:53 PM, Cesar Cepeda <[EMAIL PROTECTED]> wrote: Hi Anthony, Using the same directory is not good for me, since I will need to have different number of local_streams running, and I don't know in advance how many will I have. Nevertheless I've modified mod_local_stream to support start_local_stream and stop_local_stream, but I have a question for you as the designer, I want the function start_local_stream to support a path of the form $${baseDir}/myDir, I can see that in switch_xml.c you have a function expand_vars to expand such kind of variables, but such function is not visible from mod_local_stream. In order to achieve such functionality and stay within the guidelines of the coding what should I do: . Duplicate the functionality in mod_local_stream, . Make expand_vars visible from mod_local_stream, or . Use another function I'm not aware of. Thanks. Cesar Cepeda. De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Anthony Minessale Enviado el: Sunday, September 21, 2008 5:24 PM Para: freeswitch-users@lists.freeswitch.org Asunto: Re: [Freeswitch-users] Creating and destroying local_stream dynamically just keep the same directory name and change the contents of the directory as much as you want. On Sun, Sep 21, 2008 at 3:34 PM, Cesar Cepeda <[EMAIL PROTECTED]> wrote: Thanks for an answer un Sunday ;) Cesar Cepeda. De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Michael Jerris Enviado el: Sunday, September 21, 2008 2:59 PM Para: freeswitch-users@lists.freeswitch.org Asunto: Re: [Freeswitch-users] Creating and destroying local_stream dynamically This is not currently possible. It's something that could be added but would require a rework of mod_local_stream Mike On Sep 21, 2008, at 3:15 PM, Cesar Cepeda wrote: Hi, I need to create and destroy local_streams dynamically, that is, I need to be changing the MOH of several fifo's in real-time, since local_stream creates a thread that is broadcasting audio I would like to be able to create and destroy them as I need them. How can this be achieved? Cesar Cepeda. _______________________________________________ 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 _______________________________________________ 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 -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> GTALK/JABBER/PAYPAL:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> iax:[EMAIL PROTECTED]/888 googletalk:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> pstn:213-799-1400 _______________________________________________ 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 -- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> GTALK/JABBER/PAYPAL:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> iax:[EMAIL PROTECTED]/888 googletalk:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> pstn:213-799-1400
_______________________________________________ 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