mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2026-07-04 19:32:01 +00:00
ensure sbcCallId is added to callInfo (#1529)
Co-authored-by: rhonda hollis <rhonda@jambonz.org>
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -234,6 +234,11 @@ class SingleDialer extends Emitter {
|
||||
await connectStream(this.dlg.remote.sdp, opts.isVideoCall);
|
||||
this.dlg.callSid = this.callSid;
|
||||
this.inviteInProgress = null;
|
||||
|
||||
/* ensure sbcCallid is set even if no provisional response was received */
|
||||
if (!this.callInfo.sbcCallid && this.dlg.res.has('X-CID')) {
|
||||
this.callInfo.sbcCallid = this.dlg.res.get('X-CID');
|
||||
}
|
||||
this.emit('callStatusChange', {
|
||||
sipStatus: 200,
|
||||
sipReason: 'OK',
|
||||
|
||||
Reference in New Issue
Block a user