Skip to content

kstkn/phpagi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPAGI

PHPAGI is a set of PHP classes for use in developing applications with the Asterisk Gateway Interface forked from https://github.com/d4rkstar/phpagi.

Installation

The suggested installation method is via composer:

composer require gietos/phpagi

Usage

Create a script agi.php

Put there:

<?php

require 'vendor/autoload.php';

$agi = new \gietos\AGI\Handler();
$agi->handleRequest();
$agi->sayTime();

Put in extensions.ael:

context incoming {
    _7XXXXXXXXXX => {
        AGI(/path/to/agi.php);
        Hangup();
    }
}

Test

composer install
composer test

About

PHPAGI is a PHP class for the Asterisk Gateway Interface. The package is available for use and distribution under the terms of the GNU Public License.

Resources

License

Stars

1 star

Watchers

2 watching

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 100.0%