fix failing testcase

This commit is contained in:
Quan HL
2023-05-07 17:32:25 +07:00
parent 522469ca89
commit e99260acd0
3 changed files with 70 additions and 73 deletions

View File

@@ -193,12 +193,11 @@ router.post('/', async(req, res) => {
direction: CallDirection.Outbound,
req: inviteReq,
to,
tag: app.tag,
tag: {...app.tag, ...req.body.metadata},
callSid,
accountSid: req.body.account_sid,
applicationSid: app.application_sid,
traceId: rootSpan.traceId,
metadata: req.body.metadata
traceId: rootSpan.traceId
});
cs = new RestCallSession({
logger: sipLogger,

View File

@@ -91,7 +91,6 @@ class CallInfo {
this.from = from || req.callingNumber;
this.to = to;
if (tag) this._customerData = tag;
if (opts.metadata) this._customerData = {...this._customerData, ...opts.metadata};
}
this.localSipAddress = srf.locals.localSipAddress;