Skip to content

Commit

Permalink
fix review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Oct 15, 2024
1 parent 7218db5 commit 46fa9cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/call-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,9 +524,7 @@ class CallSession extends Emitter {
// Add X-CID header to feature server response.
// to allow calling/status hooks contains sbc_callid.
responseHeaders: (uacRes, headers) => {
if (this.req.locals.cdr) {
headers['X-CID'] = this.req.locals.cdr.sip_callid;
}
headers['X-CID'] = uacRes.get('Call-ID');
},
headers: hdrs,
auth: gw ? gw.auth : undefined,
Expand Down

0 comments on commit 46fa9cb

Please sign in to comment.