From 46fa9cb64f1f046a99b1506144feb50dc78d5973 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Tue, 15 Oct 2024 08:48:37 +0700 Subject: [PATCH] fix review comment --- lib/call-session.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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,