[PEPr] Comment on Networking::AsteriskManager

From: Date: Sat, 22 Mar 2008 16:14:29 +0000
Subject: [PEPr] Comment on Networking::AsteriskManager
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-49498@lists.php.net to get a copy of this message
Doug Bromley (http://pear.php.net/user/ashiro) has commented on the proposal for Networking::AsteriskManager. Comment: Thanks for all your suggestions. The class has now been heavily updated taking into acocunt what you've said. Changelog should give further details. With regards to two points: command method - It was suggested to have an array of acceptable commands. This isn't really practical as Asterisk can have numerous plugins installed changing the command set. There can sometimes be hundreds of possible CLI commands. What I have therefore done is to check the response from the server and if it returns the standard command not found error then an exception is thrown. Queues, IaxPeers, SipPeers return vlaues - The return is a string listing directly from the server. I've looked into providing this as an array but the response from Asterisk seems very variable between Asterisk versions, plugins installed, OS, etc. This is inherent to the API. I could lock it down to specific server setups but I feel this would exclude too many server configurations. It's certainly something I'm still looking into though and if I feel there's a good clean way of returning PHP friendly variables I will do. Proposal information: http://pear.php.net/pepr/pepr-proposal-show.php?id=543 -- Sent by PEPr, the automatic proposal system at http://pear.php.net

« previous php.pear.dev (#49498) next »