mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2026-10-30 15:14:20 +00:00
feat: siprect custom headers (#95)
* feat: siprect custom headers * update siprec client utils * wip
This commit is contained in:
1 parent
7e13c5559f
commit
6200f2b50a
3 files changed
+11
-9
No files matched your search
+3
-1
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user