Bug Fix
Wrong response class in MessageClass
This commit is contained in:
parent
5ea2c83115
commit
d2e9ac3184
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue