support X-CID for feature server to detect sip callid (#147)

* support X-CID for feature server to detect sip callid

* fixed review comment

* fix review comment
This commit is contained in:
Hoan Luu Huu
2024-10-15 18:19:25 +07:00
committed by GitHub
parent f5ac51a8f7
commit 821275cb67

View File

@@ -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,