lines.add(line);
}
}
catch (IOException e)
{
throw new AgiNetworkException("Unable to read request from Asterisk: " + e.getMessage(), e);
}
request = new AgiRequestImpl(lines);
request.setLocalAddress(socket.getLocalAddress());
request.setLocalPort(socket.getLocalPort());