$$ 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 <cesar@auronix.com> 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:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *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 <cesar@auronix.com> wrote:
Thanks for an answer un Sunday ;)
Cesar Cepeda.
*De:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *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:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> 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:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400