This commit is contained in:
Dave Horton
2020-01-29 16:46:38 -05:00
parent 8487bb0571
commit 44a1b45357
7 changed files with 20 additions and 24 deletions

View File

@@ -130,12 +130,6 @@ class TaskDial extends Task {
callingNumber: this.callerId || req.callingNumber
};
// construct bare-bones callInfo for the new outbound call attempt
const callInfo = Object.assign({}, cs.callInfo);
callInfo.parentCallSid = cs.callSid;
callInfo.direction = CallDirection.Outbound;
['callSid', 'callID', 'from', 'to', 'callerId', 'sipStatus', 'callStatus'].forEach((k) => delete callInfo[k]);
const ms = await cs.getMS();
const timerRing = setTimeout(() => {
this.logger.info(`Dial:_attemptCall: ring no answer timer ${this.timeout}s exceeded`);
@@ -154,7 +148,7 @@ class TaskDial extends Task {
sbcAddress,
target: t,
opts,
callInfo
callInfo: cs.callInfo
});
this.dials.set(sd.callSid, sd);