Wrong response class in MessageClass
This commit is contained in:
steve-lad 2021-06-14 16:17:18 +02:00
parent 5ea2c83115
commit d2e9ac3184
2 changed files with 2 additions and 2 deletions

View file

@ -392,7 +392,7 @@ class SCCPTokenAckAction extends ActionMessage
{ {
parent::__construct('SCCPTokenAck'); parent::__construct('SCCPTokenAck');
$this->setKey('DeviceId', $DeviceName); $this->setKey('DeviceId', $DeviceName);
$this->setResponseHandler("SCCPGeneric"); $this->setResponseHandler("Generic");
} }
} }

View file

@ -415,7 +415,7 @@ class aminterface
$_action = new \FreePBX\modules\Sccp_manager\aminterface\SCCPDeviceRestartAction($devicename, $action); $_action = new \FreePBX\modules\Sccp_manager\aminterface\SCCPDeviceRestartAction($devicename, $action);
} }
$_response = $this->send($_action); $_response = $this->send($_action);
$result['data'] = 'Device :'.$devicename.' Result: '.$_response->getMessage(); $result['data'] = 'Device: '.$devicename.' Result: '.$_response->getMessage();
$result['Response']=$_response->getKey('Response'); $result['Response']=$_response->getKey('Response');
} }
return $result; return $result;