src/PAGI/Client/Impl/ClientImpl.php
protected function open()
    {
        if (isset($this->options['stdin'])) {
            $this->input = $this->options['stdin'];
        } else {
            $this->input = fopen('php://stdin', 'r');
        }
        if (isset($this->options['stdout'])) {
            $this->output = $this->options['stdout'];
        } else {
            $this->output = fopen('php://stdout', 'w');
        }
        while (true) {
            $line = $this->read($this->input);
            if ($this->isEndOfEnvironmentVariables($line)) {
                break;
            }
            $this->readEnvironmentVariable($line);
        }
        $this->logger->debug(print_r($this->variables, true));
    }
protected function open()
    {
        if (isset($this->options['stdin'])) {
            $this->input = $this->options['stdin'];
        } else {
            $this->input = fopen('php://stdin', 'r');
        }
        if (isset($this->options['stdout'])) {
            $this->output = $this->options['stdout'];
        } else {
            $this->output = fopen('php://stdout', 'w');
        }
        while (true) {
            $line = $this->read($this->input);
            if ($this->isEndOfEnvironmentVariables($line)) {
                break;
            }
            $this->readEnvironmentVariable($line);
        }
        $this->logger->debug(print_r($this->variables, true));
    }
protected function open ( ) { if ( isset ( $ this -> options [ 'stdin' ] ) ) { $ this -> input = $ this -> options [ 'stdin' ] ; } else { $ this -> input = fopen ( 'php://stdin' , 'r' ) ; } if ( isset ( $ this -> options [ 'stdout' ] ) ) { $ this -> output = $ this -> options [ 'stdout' ] ; } else { $ this -> output = fopen ( 'php://stdout' , 'w' ) ; } while ( true ) { $ line = $ this -> read ( $ this -> input ) ; if ( $ this -> isEndOfEnvironmentVariables ( $ line ) ) { break ; } $ this -> readEnvironmentVariable ( $ line ) ; } $ this -> logger -> debug ( print_r ( $ this -> variables , true ) ) ; }
Opens connection to agi. Will also read initial channel variables given
by asterisk when launching the agi.

@return void
Opens connection to agi . Will also read initial channel variables given by asterisk when launching the agi .