Skip to content

Commit

Permalink
support X-CID for feature server to detect sip callid (#147)
Browse files Browse the repository at this point in the history
* support X-CID for feature server to detect sip callid

* fixed review comment

* fix review comment
  • Loading branch information
xquanluu authored Oct 15, 2024
1 parent f5ac51a commit 821275c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/call-session.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 821275c

Please sign in to comment.