include custom header X-Application-Sid to make it available to cdrs

This commit is contained in:
Dave Horton committed 2022-09-20 13:54:54 +02:00
1 parent dcedf68264
commit 8da85ebd5a
3 files changed
+6 -3

No files matched your search

+2 -1
View File
@@ -67,7 +67,8 @@ class SingleDialer extends Emitter {
...opts.headers,
...(this.target.headers || {}),
'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) {
opts.headers = {