Apache License, 2.0 FREE

The Apache License, 2.0 is an
open-source license.
Read full license

You need to log-in or create an account
  • Create an account
  • Log-in
  • Please use your real name.
  • Account activation link will be sent to this address.
  • Minimum 8 characters

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

PAMI

PHP Asterisk Manager Interface ( AMI ) is an event driven, object oriented client for ami.

Description

PHP Asterisk Manager Interface ( AMI ) supports synchronous command ( action )/ responses and asynchronous events using the pattern observer-listener. Supports commands with responses with multiple events. Very suitable for development of operator consoles and / or asterisk / channels / peers monitoring through SOA, etc

Back to top

Features

  • TCP and TLS connections.
  • Event Driven (the framework will dispatch events to your listener)
  • Lightweight, easy of use, and useful.-
  • Supports synchronous and asynchronous events (Actions with Responses, and Responses with Events associated).
  • Supports SMS via VGMS boards.
  • Supports chan_dongle (huawei 3g).
Back to top

About

PAMI means PHP Asterisk Manager Interface. It is an OOP client for the Asterisk Manager protocol, implemented in PHP.

Where to find

You can find PAMI:

  • Home: http://marcelog.github.com/PAMI
  • Github: https://github.com/marcelog/PAMI
  • Ohloh: https://www.ohloh.net/p/PAMI
  • Freshmeat: http://freshmeat.net/projects/pami
  • Binpress: http://www.binpress.com/app/pami/104
Back to top

Installation

Requirements

  • PHP 5.3.3+
  • Extensions: sockets
  • log4php (just put the src/main/php directory of the src distribution in your path).

Installing with pear

You can now easily install PAMI by issuing:

pear channel-discover pear.marcelog.name
pear install marcelog/PAMI

or:

pear install marcelog/PAMI-1.31.0

just replace 1.31.0 by the release version you'd like to install :)

See: http://pear.marcelog.name/

Manual Install

You can download PAMI directly from github in the following forms:

Back to top

Examples

NOTE: You will need to have log4php installed and in your include path (the src/main/php directory of the source distribution).

For a very raw quickstart: https://github.com/marcelog/PAMI/tree/master/docs/examples for all (and full) examples.

Also, for a more elegant example, mixing Ding and PAMI, Please see https://github.com/marcelog/AsterTrace

Also, you might want to look at this article.

Back to top

Metrics

Questions & Comments

No questions have been posted yet

Leave a comment

You must be logged-in to leave a comment.
Log-in now or register for a free account.
You must be logged-in to vote. Log-in to your account or register now.

User Reviews

No reviews have been submitted yet.