Update server/monitor-types/sip-options.js

Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
Eddie Fiorentine 2026-01-04 22:22:25 -05:00 committed by GitHub
parent 7827033456
commit afa81fdef8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,12 +15,8 @@ class SIPMonitorType extends MonitorType {
* @throws Will throw an error if the command execution encounters any error.
*/
async check(monitor, heartbeat, _server) {
try {
let sipsakOutput = await this.runSipSak(monitor.hostname, monitor.port, 3000);
this.parseSipsakResponse(sipsakOutput, heartbeat);
} catch (err) {
throw new Error(`Error checking Sipsak: ${err} ${err.message} ${err.stack}`);
}
let sipsakOutput = await this.runSipSak(monitor.hostname, monitor.port, 3000);
this.parseSipsakResponse(sipsakOutput, heartbeat);
}
/**