Method | Description | |
---|---|---|
getInstance ( array $options = [] ) : |
Returns a client instance for this call. |
Method | Description | |
---|---|---|
__construct ( array $options = [] ) : void | Constructor. | |
close ( ) : void | Closes the connection to agi. | |
open ( ) : void | Opens connection to agi. Will also read initial channel variables given by asterisk when launching the agi. | |
read ( ) : string | Reads input from asterisk. | |
send ( string $text ) : Result | Sends a command to asterisk. Returns an array with: [0] => AGI Result (3 digits) [1] => Command result [2] => Result data. |
protected __construct ( array $options = [] ) : void | ||
$options | array | Optional properties. |
return | void |
public static getInstance ( array $options = [] ) : |
||
$options | array | Optional properties. |
return |