<div dir="ltr">$$ vars are only parsed by the xml engine.<br><br>you could make it take the name of a stream as defined in the xml<br>then open the xml and search for that stream config <br>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<br>
then if you switch to xml_curl you can dynamically delver that xml too<br><br><br><div class="gmail_quote">On Mon, Sep 22, 2008 at 5:53 PM, Cesar Cepeda <span dir="ltr">&lt;<a href="mailto:cesar@auronix.com">cesar@auronix.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div link="blue" vlink="purple" lang="ES-MX">

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Hi Anthony,</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">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.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Nevertheless I've modified mod_local_stream to
support&nbsp; 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.&nbsp; In order to achieve such functionality and
stay within the guidelines of the coding what should I do:</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</span></p>

<p style="text-indent: -18pt;"><span style="font-size: 11pt; font-family: Symbol; color: rgb(31, 73, 125);" lang="EN-US"><span>·<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Duplicate the functionality
in mod_local_stream,</span></p>

<p style="text-indent: -18pt;"><span style="font-size: 11pt; font-family: Symbol; color: rgb(31, 73, 125);" lang="EN-US"><span>·<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Make expand_vars visible from
mod_local_stream, or</span></p>

<p style="text-indent: -18pt;"><span style="font-size: 11pt; font-family: Symbol; color: rgb(31, 73, 125);" lang="EN-US"><span>·<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Use another function I'm
not aware of.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Thanks.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Cesar Cepeda.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</span></p>

<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;">

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p><b><span style="font-size: 10pt;" lang="ES">De:</span></b><span style="font-size: 10pt;" lang="ES">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>En nombre de </b>Anthony
Minessale<br>
<b>Enviado el:</b> Sunday, September 21, 2008 5:24 PM<div><div></div><div class="Wj3C7c"><br>
<b>Para:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
<b>Asunto:</b> Re: [Freeswitch-users] Creating and destroying local_stream
dynamically</div></div></span></p>

</div>

</div><div><div></div><div class="Wj3C7c">

<p>&nbsp;</p>

<div>

<p style="margin-bottom: 12pt;">just keep the same directory
name and change the contents of the directory as much as you want.<br>
<br>
</p>

<div>

<p>On Sun, Sep 21, 2008 at 3:34 PM, Cesar Cepeda &lt;<a href="mailto:cesar@auronix.com" target="_blank">cesar@auronix.com</a>&gt; wrote:</p>

<div>

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Thanks for an answer
un Sunday ;)</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">Cesar Cepeda.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);" lang="EN-US">&nbsp;</span></p>

<div style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; border-width: medium medium medium 1.5pt; padding: 0cm 0cm 0cm 4pt;">

<div>

<div style="border-style: solid none none; border-color: -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p><b><span style="font-size: 10pt;" lang="ES">De:</span></b><span style="font-size: 10pt;" lang="ES"> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>En nombre
de </b>Michael Jerris<br>
<b>Enviado el:</b> Sunday, September 21, 2008 2:59 PM<br>
<b>Para:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>
<b>Asunto:</b> Re: [Freeswitch-users] Creating and destroying local_stream
dynamically</span></p>

</div>

</div>

<div>

<div>

<p>&nbsp;</p>

<p>This is not currently possible. &nbsp;It&#39;s something that could be added but
would require a rework of mod_local_stream</p>

<div>

<div>

<p>&nbsp;</p>

</div>

<div>

<p>Mike</p>

<div>

<div>

<p>On Sep 21, 2008, at 3:15 PM, Cesar Cepeda wrote:</p>

</div>

<p style="margin-bottom: 12pt;">&nbsp;</p>

<div>

<div>

<div>

<p><span style="font-size: 11pt; color: black;" lang="EN-US">Hi,</span></p>

</div>

<div>

<p><span style="font-size: 11pt; color: black;" lang="EN-US">&nbsp;</span></p>

</div>

<div>

<p><span style="font-size: 11pt; color: black;" lang="EN-US">I need to create and
destroy local_streams dynamically, that is, I need to be changing the MOH of
several fifo&#39;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.</span></p>

</div>

<div>

<p><span style="font-size: 11pt; color: black;" lang="EN-US">&nbsp;</span></p>

</div>

<div>

<p><span style="font-size: 11pt; color: black;" lang="EN-US">How can this be
achieved?</span></p>

</div>

<div>

<p><span style="font-size: 11pt; color: black;" lang="EN-US">&nbsp;</span></p>

</div>

<div>

<p><span style="font-size: 11pt; color: black;" lang="EN-US">Cesar Cepeda.</span></p>

</div>

</div>

<p><span style="font-size: 9pt; color: black;">_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></p>

</div>

</div>

<p>&nbsp;</p>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

<p style="margin-bottom: 12pt;"><br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org" target="_blank">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></p>

</div>

<p><br>
<br clear="all">
<br>
-- <br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com" target="_blank">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com" target="_blank">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org" target="_blank">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400</p>

</div>

</div></div></div>

</div>

</div>


<br>_______________________________________________<br>
Freeswitch-users mailing list<br>
<a href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>pstn:213-799-1400<br>
</div>