minor logging

This commit is contained in:
Dave Horton
2021-11-20 11:36:18 -05:00
parent 1ada62551c
commit 6b83d0fb54

View File

@@ -39,7 +39,6 @@ class TaskSipRefer extends Task {
/* if we fail, fall through to next verb. If success, we should get BYE from far end */ /* if we fail, fall through to next verb. If success, we should get BYE from far end */
if (this.referStatus === 202) { if (this.referStatus === 202) {
this.logger.info('waiting for eventual BYE');
await this.awaitTaskDone(); await this.awaitTaskDone();
} }
else await this.performAction({refer_status: this.referStatus}); else await this.performAction({refer_status: this.referStatus});
@@ -58,13 +57,13 @@ class TaskSipRefer extends Task {
res.send(200); res.send(200);
const contentType = req.get('Content-Type'); const contentType = req.get('Content-Type');
this.logger.info({body: req.body}, `TaskSipRefer:_handleNotify got ${contentType}`); this.logger.debug({body: req.body}, `TaskSipRefer:_handleNotify got ${contentType}`);
if (contentType === 'message/sipfrag') { if (contentType === 'message/sipfrag') {
const arr = /SIP\/2\.0\s+(\d+)/.exec(req.body); const arr = /SIP\/2\.0\s+(\d+)/.exec(req.body);
if (arr) { if (arr) {
const status = arr[1]; const status = arr[1];
this.logger.info(`call got status ${status}`); this.logger.debug(`TaskSipRefer:_handleNotify: call got status ${status}`);
if (this.eventHook) { if (this.eventHook) {
await cs.requestor.request(this.eventHook, {event: 'transfer-status', call_status: status}); await cs.requestor.request(this.eventHook, {event: 'transfer-status', call_status: status});
} }