mirror of
https://github.com/jambonz/sbc-outbound.git
synced 2026-01-25 02:07:59 +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',
|
'-Allow',
|
||||||
'-Session-Expires'
|
'-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,
|
headers: hdrs,
|
||||||
auth: gw ? gw.auth : undefined,
|
auth: gw ? gw.auth : undefined,
|
||||||
localSdpB: response.sdp,
|
localSdpB: response.sdp,
|
||||||
|
|||||||
Reference in New Issue
Block a user