[Freeswitch-users] Dynamic Dialplan

Adam Long ajlong at worldlink.net
Tue Feb 10 18:22:31 PST 2009


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 at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Anthony
Minessale
Sent: Tuesday, February 10, 2009 5:33 PM
To: freeswitch-users at 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 at 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 at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of kokoska
rokoska
Sent: Monday, February 09, 2009 1:03 PM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Dynamic Dialplan





Raymond Chandler napsal(a):
> kokoska rokoska wrote:
>> 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 :-) 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.

> 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 :-), but the FS code is very nice!

> although, as a benefit, i guess you do get a little extra latency ;-)
> </sarcasm>

:-) 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 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/20090210/024df86e/attachment-0002.html 


More information about the FreeSWITCH-users mailing list