Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Dynamic Dialplan

Goto page Previous  1, 2
 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
anthony.minessale at g...
Guest





PostPosted: Tue Feb 10, 2009 5:37 pm    Post subject: [Freeswitch-users] Dynamic Dialplan Reply with quote

oh yeah, i forgot about those too.
python,perl and lua can all do that.


On Tue, Feb 10, 2009 at 1:01 PM, Adam Long <ajlong@worldlink.net (ajlong@worldlink.net)> wrote:
Quote:
What about a mod_perl XML binding like the example here?
http://wiki.freeswitch.org/wiki/Mod_perl and
http://wiki.freeswitch.org/wiki/Mod_perl_and_Generating_XML

Would this be faster than a setup like

mod_curl_xml -> lighttpd -> FastCGI/Perl ?

I guess it would depend on if mod_perl in FreeSWITCH spawns new interpreter per request
or if it uses one interpreter instance with multiple threads to execute pre-loaded perl.

Anyone know if this is the case?

Regards,
-Adam




-----Original Message-----
From: 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)] On Behalf Of kokoska rokoska
Sent: Monday, February 09, 2009 1:03 PM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] Dynamic Dialplan






Raymond Chandler napsal(a):
Quote:
kokoska rokoska wrote:
Quote:
Just my 2c:

If you use curl with lighttpd and custom built fastcgi "C" responder (it
is really simple with fcgi libs - even I can do it Smile performance could
be not that bad.
hmmm, mod_xml_curl using C, interesting thought..

May be not the best way, but very simple.
Well, it depends on what you have to do, but "directory" serving based
on DB queries (this what I'm using it for) is very simple - just few
lines of code.

Quote:
all of the
complexities of writing your own module without the nice structured FS
API...

I should say I have no idea how hard is to write custom FreeSWITCH
module (may be I should try it Smile, but the FS code is very nice!

Quote:
although, as a benefit, i guess you do get a little extra latency Wink
</sarcasm>

Smile Yes, you are right. And as a bonus some CPU utilization...

Like I wrote above, I didn't say it is faster, but IMO it is very simple
and not as slow as it looks (when using apache + php + apc).

Best regards,

kokoska.rokoska


_______________________________________________
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
ajlong at worldlink.net
Guest





PostPosted: Tue Feb 10, 2009 9:25 pm    Post subject: [Freeswitch-users] Dynamic Dialplan Reply with quote

There sure are lots of options J

Does the perl implementation use a single persistent embedded interpreter or does it spawn a new interpreter per request?

Things like persistent database handles come to mind.
Performance would be drastically impacted if it were to spawn new interpreter per request.

Any ideas?

Regards,
-Adam

From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale
Sent: Tuesday, February 10, 2009 5:33 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Dynamic Dialplan


oh yeah, i forgot about those too.
python,perl and lua can all do that.


On Tue, Feb 10, 2009 at 1:01 PM, Adam Long <ajlong@worldlink.net (ajlong@worldlink.net)> wrote:
What about a mod_perl XML binding like the example here?
http://wiki.freeswitch.org/wiki/Mod_perl and
http://wiki.freeswitch.org/wiki/Mod_perl_and_Generating_XML

Would this be faster than a setup like

mod_curl_xml -> lighttpd -> FastCGI/Perl ?

I guess it would depend on if mod_perl in FreeSWITCH spawns new interpreter per request
or if it uses one interpreter instance with multiple threads to execute pre-loaded perl.

Anyone know if this is the case?

Regards,
-Adam




-----Original Message-----
From: 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)] On Behalf Of kokoska rokoska
Sent: Monday, February 09, 2009 1:03 PM
To: freeswitch-users@lists.freeswitch.org (freeswitch-users@lists.freeswitch.org)
Subject: Re: [Freeswitch-users] Dynamic Dialplan





Raymond Chandler napsal(a):
Quote:
kokoska rokoska wrote:
Quote:
Just my 2c:

If you use curl with lighttpd and custom built fastcgi "C" responder (it
is really simple with fcgi libs - even I can do it Smile performance could
be not that bad.
hmmm, mod_xml_curl using C, interesting thought..

May be not the best way, but very simple.
Well, it depends on what you have to do, but "directory" serving based
on DB queries (this what I'm using it for) is very simple - just few
lines of code.

Quote:
all of the
complexities of writing your own module without the nice structured FS
API...

I should say I have no idea how hard is to write custom FreeSWITCH
module (may be I should try it Smile, but the FS code is very nice!

Quote:
although, as a benefit, i guess you do get a little extra latency Wink
</sarcasm>

Smile Yes, you are right. And as a bonus some CPU utilization...

Like I wrote above, I didn't say it is faster, but IMO it is very simple
and not as slow as it looks (when using apache + php + apc).

Best regards,

kokoska.rokoska


_______________________________________________
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
chavpaskov at shaw.ca
Guest





PostPosted: Tue Feb 10, 2009 9:42 pm    Post subject: [Freeswitch-users] Dynamic Dialplan Reply with quote

Adam Long wrote:
Quote:

There sure are lots of options J



Does the perl implementation use a single persistent embedded
interpreter or does it spawn a new interpreter per request?



Things like persistent database handles come to mind.

Performance would be drastically impacted if it were to spawn new
interpreter per request.



Any ideas?



Regards,

-Adam



*From:* freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of
*Anthony Minessale
*Sent:* Tuesday, February 10, 2009 5:33 PM
*To:* freeswitch-users@lists.freeswitch.org
*Subject:* Re: [Freeswitch-users] Dynamic Dialplan



oh yeah, i forgot about those too.
python,perl and lua can all do that.

On Tue, Feb 10, 2009 at 1:01 PM, Adam Long <ajlong@worldlink.net
<mailto:ajlong@worldlink.net>> wrote:

What about a mod_perl XML binding like the example here?
http://wiki.freeswitch.org/wiki/Mod_perl and
http://wiki.freeswitch.org/wiki/Mod_perl_and_Generating_XML

Would this be faster than a setup like

mod_curl_xml -> lighttpd -> FastCGI/Perl ?

I guess it would depend on if mod_perl in FreeSWITCH spawns new
interpreter per request
or if it uses one interpreter instance with multiple threads to
execute pre-loaded perl.

Anyone know if this is the case?

Regards,
-Adam





-----Original Message-----
From: freeswitch-users-bounces@lists.freeswitch.org
<mailto:freeswitch-users-bounces@lists.freeswitch.org>
[mailto:freeswitch-users-bounces@lists.freeswitch.org
<mailto:freeswitch-users-bounces@lists.freeswitch.org>] On Behalf Of
kokoska rokoska
Sent: Monday, February 09, 2009 1:03 PM
To: freeswitch-users@lists.freeswitch.org
<mailto:freeswitch-users@lists.freeswitch.org>
Subject: Re: [Freeswitch-users] Dynamic Dialplan



Raymond Chandler napsal(a):
Quote:
kokoska rokoska wrote:
Quote:
Just my 2c:

If you use curl with lighttpd and custom built fastcgi "C"
responder (it
Quote:
Quote:
is really simple with fcgi libs - even I can do it Smile performance
could
Quote:
Quote:
be not that bad.
hmmm, mod_xml_curl using C, interesting thought..

May be not the best way, but very simple.
Well, it depends on what you have to do, but "directory" serving based
on DB queries (this what I'm using it for) is very simple - just few
lines of code.

Quote:
all of the
complexities of writing your own module without the nice structured FS
API...

I should say I have no idea how hard is to write custom FreeSWITCH
module (may be I should try it Smile, but the FS code is very nice!

Quote:
although, as a benefit, i guess you do get a little extra latency Wink
</sarcasm>

Smile Yes, you are right. And as a bonus some CPU utilization...

Like I wrote above, I didn't say it is faster, but IMO it is very simple
and not as slow as it looks (when using apache + php + apc).

Best regards,

kokoska.rokoska


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
<mailto: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
<mailto: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
<mailto:MSN%3Aanthony_minessale@hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
<mailto:PAYPAL%3Aanthony.minessale@gmail.com>
IRC: irc.freenode.net <http://irc.freenode.net> #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
<mailto:sip%3A888@conference.freeswitch.org>
iax:guest@conference.freeswitch.org/888
<http://iax:guest@conference.freeswitch.org/888>
googletalk:conf+888@conference.freeswitch.org
<mailto: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

Perl is the language i'm using.
and is working exactly as i expect.
Chav

_______________________________________________
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
Back to top
chavpaskov at shaw.ca
Guest





PostPosted: Tue Feb 10, 2009 9:43 pm    Post subject: [Freeswitch-users] Dynamic Dialplan Reply with quote

Adam Long wrote:
Quote:
What about a mod_perl XML binding like the example here?
http://wiki.freeswitch.org/wiki/Mod_perl and
http://wiki.freeswitch.org/wiki/Mod_perl_and_Generating_XML

Would this be faster than a setup like

mod_curl_xml -> lighttpd -> FastCGI/Perl ?

I guess it would depend on if mod_perl in FreeSWITCH spawns new interpreter per request
or if it uses one interpreter instance with multiple threads to execute pre-loaded perl.

Anyone know if this is the case?

Regards,
-Adam




-----Original Message-----
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of kokoska rokoska
Sent: Monday, February 09, 2009 1:03 PM
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] Dynamic Dialplan




Raymond Chandler napsal(a):

Quote:
kokoska rokoska wrote:

Quote:
Just my 2c:

If you use curl with lighttpd and custom built fastcgi "C" responder (it
is really simple with fcgi libs - even I can do it Smile performance could
be not that bad.

hmmm, mod_xml_curl using C, interesting thought..


May be not the best way, but very simple.
Well, it depends on what you have to do, but "directory" serving based
on DB queries (this what I'm using it for) is very simple - just few
lines of code.


Quote:
all of the
complexities of writing your own module without the nice structured FS
API...


I should say I have no idea how hard is to write custom FreeSWITCH
module (may be I should try it Smile, but the FS code is very nice!


Quote:
although, as a benefit, i guess you do get a little extra latency Wink
</sarcasm>


Smile Yes, you are right. And as a bonus some CPU utilization...

Like I wrote above, I didn't say it is faster, but IMO it is very simple
and not as slow as it looks (when using apache + php + apc).

Best regards,

kokoska.rokoska


_______________________________________________
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


I'm developing something similar and now on testing mode.
xml works just fine.
The key is FCGI and web server.
i think this week i made a progress in the right direction.
will report the progress promptly when done.
If you need hand pls drop an e-mail i do not mind sharing. and if it
works for you i'll come with kind of how to instructions if anybody
else is interested.
Regards
Chav

_______________________________________________
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services