VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
cesar at auronix.com Guest
|
Posted: Sun Sep 21, 2008 3:36 pm Post subject: [Freeswitch-users] Creating and destroying local_stream dyna |
|
|
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 (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 |
|
Back to top |
|
|
cesar at auronix.com Guest
|
Posted: Mon Sep 22, 2008 5:54 pm Post subject: [Freeswitch-users] Creating and destroying local_stream dyna |
|
|
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:
<![if !supportLists]>· <![endif]>Duplicate the functionality in mod_local_stream,
<![if !supportLists]>· <![endif]>Make expand_vars visible from mod_local_stream, or
<![if !supportLists]>· <![endif]>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 (cesar@auronix.com)> wrote:
Thanks for an answer un Sunday
Cesar Cepeda.
De: freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org) [mailto:freeswitch-users-bounces@lists.freeswitch.org (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 (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 (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
cesar at auronix.com Guest
|
Posted: Mon Sep 22, 2008 6:46 pm Post subject: [Freeswitch-users] Creating and destroying local_stream dyna |
|
|
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: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] 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 <cesar@auronix.com (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 (freeswitch-users-bounces@lists.freeswitch.org) [mailto:freeswitch-users-bounces@lists.freeswitch.org (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 (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 (cesar@auronix.com)> wrote:
Thanks for an answer un Sunday
Cesar Cepeda.
De: freeswitch-users-bounces@lists.freeswitch.org (freeswitch-users-bounces@lists.freeswitch.org) [mailto:freeswitch-users-bounces@lists.freeswitch.org (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 (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 (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 (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (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 ([email]MSN%3Aanthony_minessale@hotmail.com[/email])
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com ([email]PAYPAL%3Aanthony.minessale@gmail.com[/email])
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org ([email]sip%3A888@conference.freeswitch.org[/email])
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org ([email]googletalk%3Aconf%2B888@conference.freeswitch.org[/email])
pstn:213-799-1400 |
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|