New extension for VoIP Asterisk Manager ( Request for comments )

From: Date: Tue, 02 Jan 2007 06:23:34 +0000
Subject: New extension for VoIP Asterisk Manager ( Request for comments )
References: 1 2 3 4 5 6  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-4429@lists.php.net to get a copy of this message
On 1/1/07, Pedram Nimreezi <zenstyle@gmail.com> wrote:
Cool... I've got a good bit of experience with asterisk if you need a hand, I've also integrated an interface to my framework for it.. I can also help with benchmarks...
Thanks :), im adapting the extension to PHP internal streams, as suggested by Sara Golemon, once is finished we can start with testing and benchmarks.
php socket functions would definitely give you less requests per second then c, but it can easily do 40 a second, isn't 40 calls per second like more then even large answering services do?
1 single call can generate many events, like DTMF, MeetMe talking etc. So actually were talking here about events/second, it does not matter if comes from 1 call, or from 0 calls. You still get events like "PeerStatus" when some SIP, IAX2 peer registers, unregisters, etc. So there are lots of system events than can happend without any active call. There are low level events currently being implemented in Asterisk to report RTP status for health network monitoring.
I kinda see why Wez is curious why you didnt just use php..heh for instance even though you could potentially execute 2000 requests per second with benchmarks on extension over php, wouldn't you be hitting bandwidth bottle necks before then? I have already implemented this using pure PHP. I should have
clarified that. Im not using PHP-CGI, im using PHP-CLI and the system I programmed is running forever, is a PHP daemon that works like a proxy using unix sockets to accept client connections, and TCP socket to connect to the Asterisk Manager. I must confess the strongest motivation to do this in C is that I wanted to learn C doing something practical, and I think is cool to use a native interface to connect to asterisk. Regarding the bandwidth limits, Im using localhost or intranet TCP connections, so i dont think bandwidth will be a concern. Regards -- "Su nombre es GNU/Linux, no solamente Linux, mas info en http://www.gnu.org"

« previous php.pecl.dev (#4429) next »