mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
feat: add metadata to create call as tag
This commit is contained in:
@@ -13,6 +13,7 @@ class CallInfo {
|
||||
this.direction = opts.direction;
|
||||
this.traceId = opts.traceId;
|
||||
this.callTerminationBy = undefined;
|
||||
this.metadata = opts.metadata;
|
||||
if (opts.req) {
|
||||
const u = opts.req.getParsedHeader('from');
|
||||
const uri = parseUri(u.uri);
|
||||
@@ -91,6 +92,7 @@ class CallInfo {
|
||||
this.from = from || req.callingNumber;
|
||||
this.to = to;
|
||||
if (tag) this._customerData = tag;
|
||||
if (this.metadata) this._customerData = {...this._customerData , ...this.metadata}
|
||||
}
|
||||
|
||||
this.localSipAddress = srf.locals.localSipAddress;
|
||||
|
||||
Reference in New Issue
Block a user