mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
include custom header X-Application-Sid to make it available to cdrs
This commit is contained in:
@@ -1302,7 +1302,8 @@ class CallSession extends Emitter {
|
|||||||
this.dlg = await this.srf.createUAS(this.req, this.res, {
|
this.dlg = await this.srf.createUAS(this.req, this.res, {
|
||||||
headers: {
|
headers: {
|
||||||
'X-Trace-ID': this.req.locals.traceId,
|
'X-Trace-ID': this.req.locals.traceId,
|
||||||
'X-Call-Sid': this.req.locals.callSid
|
'X-Call-Sid': this.req.locals.callSid,
|
||||||
|
...(this.applicationSid && {'X-Application-Sid': this.applicationSid})
|
||||||
},
|
},
|
||||||
localSdp: this.ep.local.sdp
|
localSdp: this.ep.local.sdp
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -36,7 +36,8 @@ class SipRecCallSession extends InboundCallSession {
|
|||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/sdp',
|
'Content-Type': 'application/sdp',
|
||||||
'X-Trace-ID': this.req.locals.traceId,
|
'X-Trace-ID': this.req.locals.traceId,
|
||||||
'X-Call-Sid': this.req.locals.callSid
|
'X-Call-Sid': this.req.locals.callSid,
|
||||||
|
...(this.applicationSid && {'X-Application-Sid': this.applicationSid})
|
||||||
},
|
},
|
||||||
localSdp: combinedSdp
|
localSdp: combinedSdp
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -67,7 +67,8 @@ class SingleDialer extends Emitter {
|
|||||||
...opts.headers,
|
...opts.headers,
|
||||||
...(this.target.headers || {}),
|
...(this.target.headers || {}),
|
||||||
'X-Jambonz-Routing': this.target.type,
|
'X-Jambonz-Routing': this.target.type,
|
||||||
'X-Call-Sid': this.callSid
|
'X-Call-Sid': this.callSid,
|
||||||
|
...(this.applicationSid && {'X-Application-Sid': this.applicationSid})
|
||||||
};
|
};
|
||||||
if (srf.locals.fsUUID) {
|
if (srf.locals.fsUUID) {
|
||||||
opts.headers = {
|
opts.headers = {
|
||||||
|
|||||||
Reference in New Issue
Block a user