Skip to content

Commit

Permalink
correct pare callRecording headers from sip info (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu authored Jul 20, 2023
1 parent 17df3a4 commit b1296c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/call-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,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.headers ? req.body.headers : {};
const headers = contentType === 'application/json' && req.body ? JSON.parse(req.body) : {};
this.logger.info({to, from}, 'startCallRecording request for a call');

const srsUrl = req.get('X-Srs-Url');
Expand Down

0 comments on commit b1296c8

Please sign in to comment.