ensure sbcCallId is added to callInfo (#1529)

Co-authored-by: rhonda hollis <rhonda@jambonz.org>
This commit is contained in:
rhondahollis
2026-03-25 17:00:05 -04:00
committed by GitHub
co-authored by rhonda hollis
parent 18a13971ca
commit 6147ec3f6a
2 changed files with 11 additions and 0 deletions
+6
View File
@@ -340,6 +340,12 @@ router.post('/',
}
});
connectStream(dlg.remote.sdp);
/* ensure sbcCallid is set even if no provisional response was received */
if (!cs.callInfo.sbcCallid && dlg.res.has('X-CID')) {
cs.callInfo.sbcCallid = dlg.res.get('X-CID');
}
cs.emit('callStatusChange', {
callStatus: CallStatus.InProgress,
sipStatus: 200,