org_heigl / asterisk
Access The AsteriskManagerConsole via PHP
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/org_heigl/asterisk
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-10-23 11:55:41 UTC
README
This package allows easy interaction with an Asterisk-Server.
Currently this package handles the following:
- login to the asterisk-server
- logout from the asterisk-server
- originate a call [1].
Requirements
This package has the following requirements:
- PHP-Version >= 5.3
Installation
Either via PEAR or composer or copy the 'Org/Heigl'-folder somewhere to your PHP-include-directory. More information can be found in the doc-section
Usage
<?php
use \Org\Heigl\Asterisk\AsteriskManager;
// Initiate the Asterisk Instance
$asteriskSocket = new AsteriskManagementConsoleSocket('asteriskserver');
$asterisk = new AsteriskManager($asteriskserver);
// Login
$asterisk->login($user, $password);
// Initiate a call
$asterisk->initiateCall($number, $myPhone, $context);
// Now your phone should ring and after lifting the receiver it should connect
// to the number you wanted to call.
?>
Documentation
More documentation can be found in the 'doc'-folder
| [1] | http://www.voip-info.org/wiki/view/Asterisk+Manager+API+Action+Originate |