diff --git a/lib/call-session.js b/lib/call-session.js index c28041f..4c73814 100644 --- a/lib/call-session.js +++ b/lib/call-session.js @@ -521,6 +521,11 @@ class CallSession extends Emitter { '-Allow', '-Session-Expires' ], + // Add X-CID header to feature server response. + // to allow calling/status hooks contains sbc_callid. + responseHeaders: (uacRes, headers) => { + headers['X-CID'] = uacRes.get('Call-ID'); + }, headers: hdrs, auth: gw ? gw.auth : undefined, localSdpB: response.sdp,