tag outdial session (#643)

This commit is contained in:
Anton Voylenko
2024-02-12 20:16:43 +02:00
committed by GitHub
parent 42be9ff1ca
commit 5c070597cf
2 changed files with 5 additions and 0 deletions

View File

@@ -195,6 +195,10 @@ class SingleDialer extends Emitter {
callSid: this.callSid,
traceId: this.rootSpan.traceId
});
if (this.dialTask && this.dialTask.tag !== null &&
typeof this.dialTask.tag === 'object' && !Array.isArray(this.dialTask.tag)) {
this.callInfo.customerData = this.dialTask.tag;
}
this.logger = srf.locals.parentLogger.child({
callSid: this.callSid,
parentCallSid: this.parentCallInfo.callSid,