beroNet / Open-PBX

embedded PBX based on Asterisk, which runs on a beroNet Gateway
MIT License
5 stars 3 forks source link

Better AMI commands (AsteriskManagerInterface) integration #7

Closed sebastianertz closed 11 years ago

sebastianertz commented 11 years ago

The class 'amifunc' could use the specific AMI commands. Currently is made much on the Action-Command 'Command'.

Example:

function del ($family, $key) {

    $sQuery = "Action: command\r\n" .
          "command: database del ". $family . " " . $key . "\r\n\r\n";

    return($this->Query($sQuery));
}

The right command is DBdel with parameters Family and Key.

And so on.

sebastianertz commented 11 years ago

implemented in https://github.com/beroNet/Open-PBX/commit/43cb3d433ce641903d03af91b6ba6704e89a3a3e