mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
tag outdial session (#643)
This commit is contained in:
@@ -100,6 +100,7 @@ class TaskDial extends Task {
|
|||||||
this.referHook = this.data.referHook;
|
this.referHook = this.data.referHook;
|
||||||
this.dtmfHook = this.data.dtmfHook;
|
this.dtmfHook = this.data.dtmfHook;
|
||||||
this.proxy = this.data.proxy;
|
this.proxy = this.data.proxy;
|
||||||
|
this.tag = this.data.tag;
|
||||||
|
|
||||||
if (this.dtmfHook) {
|
if (this.dtmfHook) {
|
||||||
const {parentDtmfCollector, childDtmfCollector} = parseDtmfOptions(logger, this.data.dtmfCapture || {});
|
const {parentDtmfCollector, childDtmfCollector} = parseDtmfOptions(logger, this.data.dtmfCapture || {});
|
||||||
|
|||||||
@@ -195,6 +195,10 @@ class SingleDialer extends Emitter {
|
|||||||
callSid: this.callSid,
|
callSid: this.callSid,
|
||||||
traceId: this.rootSpan.traceId
|
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({
|
this.logger = srf.locals.parentLogger.child({
|
||||||
callSid: this.callSid,
|
callSid: this.callSid,
|
||||||
parentCallSid: this.parentCallInfo.callSid,
|
parentCallSid: this.parentCallInfo.callSid,
|
||||||
|
|||||||
Reference in New Issue
Block a user