[Freeswitch-users] Creating and destroying local_stream dynamically

Cesar Cepeda cesar at auronix.com
Mon Sep 22 18:53:26 EDT 2008


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 at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] En nombre de Anthony
Minessale
Enviado el: Sunday, September 21, 2008 5:24 PM
Para: freeswitch-users at 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 at auronix.com> wrote:

Thanks for an answer un Sunday ;)

 

Cesar Cepeda.

 

De: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] En nombre de Michael
Jerris
Enviado el: Sunday, September 21, 2008 2:59 PM
Para: freeswitch-users at 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 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

 


_______________________________________________
Freeswitch-users mailing list
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

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com
<mailto:MSN%3Aanthony_minessale at hotmail.com> 
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
<mailto:PAYPAL%3Aanthony.minessale at gmail.com> 
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
<mailto:sip%3A888 at conference.freeswitch.org> 
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org
<mailto:googletalk%3Aconf%2B888 at conference.freeswitch.org> 
pstn:213-799-1400

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080922/23ac3541/attachment-0001.html 


More information about the Freeswitch-users mailing list