PHPDaemon\Clients\Asterisk\Connection::extensionState PHP Method

extensionState() public method

Description: function can be used to retrieve the state from any hinted extension. Variables: (Names marked with * are required) *Exten: Extension to get state Context: Context for exten ActionID: Optional Action id for message matching.
public extensionState ( array $params, callable $cb ) : void
$params array
$cb callable Callback called when response received
return void
    public function extensionState(array $params, $cb)
    {
        $this->command("Action: ExtensionState\r\n" . $this->implodeParams($params), $cb);
    }