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

challenge() protected method

Action: Challenge Synopsis: Generate Challenge for MD5 Auth Privilege:
protected challenge ( callable $cb ) : void
$cb callable
return void
    protected function challenge($cb)
    {
        $this->onChallenge = $cb;
        $this->state = self::CONN_STATE_CHALLENGE_PACKET_SENT;
        $this->write("Action: Challenge\r\n" . "AuthType: MD5\r\n" . "\r\n");
    }