Asterisk-users Digest, Vol 167, Issue 21
Hi, I sent the requested information. I always get this responde:
Response: Success Message: Timeout Set But keep the old timeout, interestingly, decreasing the timeout works perfectly. The problem is increasing.
Version Asterisk 1.8.32.
$this->setTimeout($chan, $timeout);
public function setTimeout($channel, $timeout){
$this->_checkSocket();
$command = “Action: AbsoluteTimeout\r\nChannel: $channel\r\nTimeout: $timeout\r\n”;
$response = $this->_sendCommand($command.”\r\n”);
return $response;
}
private function _sendCommand($command)
{
if (!fwrite($this->_socket, $command)) {
throw new Net_AsteriskManagerException(
Net_AsteriskManagerException::CMDSENDERR
);
}
$response = stream_get_contents($this->_socket);
if ($response == false) {
throw new Net_AsteriskManagerException(
Net_AsteriskManagerException::RESPERR
);
}
return $response;
}
Thanks again