Re: [asterisk-users] asterisk, phpagi and singleton

2008-10-07 Thread Giedrius Augys
2008/10/6 Steve Edwards [EMAIL PROTECTED] On Mon, 6 Oct 2008, Alex Balashov wrote: Giedrius Augys wrote: What tools and programming (scripting) language do you use for FastAGI? Whatever languages FastAGI APIs are available for. You are pretty much limited to languages whose

Re: [asterisk-users] asterisk, phpagi and singleton

2008-10-06 Thread Giedrius Augys
2008/10/6 Alex Balashov [EMAIL PROTECTED] I think the problem is that every [Dead]AGI call is still a distinct invocation of the script, even if the interpreter stays loaded as an ELF module or whatnot. A good solution to this problem would be to use a FastAGI service, wherein a daemon runs

Re: [asterisk-users] asterisk, phpagi and singleton

2008-10-06 Thread Alex Balashov
Giedrius Augys wrote: What tools and programming (scripting) language do you use for FastAGI? Whatever languages FastAGI APIs are available for. You are pretty much limited to languages whose interpreter lends itself to invocation as a standalone daemon, which may or may not exclude PHP and

Re: [asterisk-users] asterisk, phpagi and singleton

2008-10-06 Thread Steve Edwards
On Mon, 6 Oct 2008, Alex Balashov wrote: Giedrius Augys wrote: What tools and programming (scripting) language do you use for FastAGI? Whatever languages FastAGI APIs are available for. You are pretty much limited to languages whose interpreter lends itself to invocation as a standalone

Re: [asterisk-users] asterisk, phpagi and singleton

2008-10-05 Thread Philipp Kempgen
Giedrius Augys schrieb: I've this situation: 300+ simultaneous calls and dialplan like this: exten = _X.,1,Answer() exten = _X.,2,DEADAGI(check_status.php) exten = _X.,3,Dial(SIP/other/${NUMBER}) exten = _X.,4,Hangup exten = h,1,DEADAGI(cdr.php) When project is running , I had a

Re: [asterisk-users] asterisk, phpagi and singleton

2008-10-05 Thread Steve Edwards
On Sun, 5 Oct 2008, Giedrius Augys wrote: I've this situation: 300+ simultaneous calls and dialplan like this: exten = _X.,1,Answer() exten = _X.,2,DEADAGI(check_status.php) exten = _X.,3,Dial(SIP/other/${NUMBER}) exten = _X.,4,Hangup exten = h,1,DEADAGI(cdr.php) When project is

Re: [asterisk-users] asterisk, phpagi and singleton

2008-10-05 Thread Alex Balashov
I think the problem is that every [Dead]AGI call is still a distinct invocation of the script, even if the interpreter stays loaded as an ELF module or whatnot. A good solution to this problem would be to use a FastAGI service, wherein a daemon runs persistently with a reusable DB handle.