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

redirect() public method

Variables: (Names marked with * are required) *Channel: Channel to redirect ExtraChannel: Second call leg to transfer (optional) *Exten: Extension to transfer to *Context: Context to transfer to *Priority: Priority to transfer to ActionID: Optional Action id for message matching.
public redirect ( array $params, callable $cb ) : void
$params array
$cb callable Callback called when response received
return void
    public function redirect(array $params, $cb)
    {
        $this->command("Action: Redirect\r\n" . $this->implodeParams($params), $cb);
    }