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

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

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 = {