src/PAGI/Client/Impl/ClientImpl.php
protected function read()
    {
        $line = fgets($this->input);
        if ($line === false) {
            throw new PAGIException('Could not read from AGI');
        }
        $line = substr($line, 0, -1);
        $this->logger->debug('Read: ' . $line);
        return $line;
    }
protected function read()
    {
        $line = fgets($this->input);
        if ($line === false) {
            throw new PAGIException('Could not read from AGI');
        }
        $line = substr($line, 0, -1);
        $this->logger->debug('Read: ' . $line);
        return $line;
    }
protected function read ( ) { $ line = fgets ( $ this -> input ) ; if ( $ line === false ) { throw new PAGIException ( 'Could not read from AGI' ) ; } $ line = substr ( $ line , 0 , - 1 ) ; $ this -> logger -> debug ( 'Read: ' . $ line ) ; return $ line ; }
Reads input from asterisk.

@throws PAGIException

@return string
Reads input from asterisk .