mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2025-12-19 04:27:45 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user