support sbcCallId in calling/status hook (#934)

* support sbcCallId in calling/status hook

* support sbcCallId in calling/status hook

* support sbcCallId in calling/status hook

* wip

* wip

* wip
This commit is contained in:
Hoan Luu Huu authored and GitHub committed 2024-10-14 18:00:09 -04:00
1 parent f541ff1a15
commit e7fd40e297
4 files changed
+7

No files matched your search

+2
View File
@@ -213,6 +213,8 @@ class SingleDialer extends Emitter {
},
cbProvisional: (prov) => {
const status = {sipStatus: prov.status, sipReason: prov.reason};
// Update call-id for sbc outbound INVITE
this.callInfo.sbcCallid = prov.get('X-CID');
if ([180, 183].includes(prov.status) && prov.body) {
if (status.callStatus !== CallStatus.EarlyMedia) {
status.callStatus = CallStatus.EarlyMedia;