feat: siprect custom headers (#95)

* feat: siprect custom headers

* update siprec client utils

* wip
This commit is contained in:
Hoan Luu Huu authored and GitHub committed 2023-07-20 09:02:44 -04:00
1 parent 7e13c5559f
commit 6200f2b50a
3 files changed
+11 -9

No files matched your search

+3 -1
View File
@@ -733,6 +733,7 @@ Duration=${payload.duration} `
const to = this.req.getParsedHeader('To');
const aorFrom = from.uri;
const aorTo = to.uri;
const headers = contentType === 'application/json' && req.body ? JSON.parse(req.body) : {};
this.logger.info({to, from}, 'startCallRecording request for an outbound call');
const srsUrl = req.get('X-Srs-Url');
@@ -771,7 +772,8 @@ Duration=${payload.duration} `
del: this.del,
blockMedia: this.blockMedia,
unblockMedia: this.unblockMedia,
unsubscribe: this.unsubscribe
unsubscribe: this.unsubscribe,
headers
}));
try {
succeeded = (await Promise.all(