diff --git a/lib/call-session.js b/lib/call-session.js index c71a841..4c73814 100644 --- a/lib/call-session.js +++ b/lib/call-session.js @@ -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,