The page for the Asterisk PHP API...
There have been other PHP libraries built for this in the past but they are either poorly documented or too 'low level' forcing you to understand the manager API before you can use it.
I decided to build my own to fill the gap I saw and plan on implementing every function of the Asterisk manager interface as a distinct method in the class. So far I've succeeded in producing the following:
- Command: Execute Command
- IAXpeers: List IAX Peers
- ListCommands: List available manager commands
- Logoff: Logoff Manager
- Monitor: Monitor/Record a channel
- Originate: Originate Call
- Ping: Pong
- QueueAdd: Add member to queue
- QueueRemove: Remove member from queue
- Queues: Queue list and status
- SIPpeers: List SIP Peers
Get The API
Page: Google Project Page
SVN: svn checkout http://asterisk-php-api.googlecode.com/svn/trunk/ asterisk-php-api-read-only
PEAR
The API is now in the PEAR repository. I think Asterisk finally deserves a solid API in PHP and this process will involve the following (non-exhaustive list):
- End user documentation.
- Use of PEAR_Exception library.
- Take on boardpear-dev group comments.
- Code cleanup.
- Robust testing.
Please feel free to discuss this in the comments, email me, comment at Google Code project site or post in the pear-dev mailing list.












Recent Comments