@94ai/softphone 5.0.14 → 5.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/html-softphone-demo/embed-ui/index.html +1 -0
- package/html-softphone-demo/embed-ui/softphone.js +3 -0
- package/html-softphone-demo/micro-call-ui/index.html +1 -0
- package/html-softphone-demo/micro-call-ui/microphone.js +8 -2
- package/html-softphone-demo/softphone.umd.min.js +2 -2
- package/lib/softphone.cjs.min.cjs +1 -1
- package/lib/softphone.esm-bundler.min.mjs +1 -1
- package/lib/softphone.umd.min.js +2 -2
- package/package.json +1 -1
|
@@ -80,6 +80,7 @@ const nfSoftPhone1 = (new SoftphoneManager()).initSoftphone({ // 👈 当多实
|
|
|
80
80
|
softphoneConnectCallBack: (data) => {
|
|
81
81
|
console.log('softphone-connect')
|
|
82
82
|
}, // 👈 签入签出回调
|
|
83
|
+
softphoneAutoIgnoreCallback: (data) => {console.log('softphone-auto-ignore-callback', data)}, // 👈 自动忽略回调
|
|
83
84
|
softphoneCallRefreshCallBack: (data) => {console.log('softphone-call-refresh')}, // 👈 来电刷新来电记录列表回调
|
|
84
85
|
softphoneSeatStatusChangeCallBack: (data) => {console.log('softphone-seats-status-change')},// 👈 小休和在线切换回调
|
|
85
86
|
softphoneAcceptCallBack: (data) => {console.log('softphone-accept')},// 👈 接听回调
|
|
@@ -61,6 +61,7 @@ class SoftphoneManager {
|
|
|
61
61
|
softphoneAcceptCallBack: () => {console.log('softphone-accept')},
|
|
62
62
|
softphoneIgnoreCallBack: () => {console.log('softphone-ignore')},
|
|
63
63
|
softphoneHangupCallBack: () => {console.log('softphone-hangup')},
|
|
64
|
+
softphoneAutoIgnoreCallback: () => {console.log('softphone-auto-ignore-callback')},
|
|
64
65
|
softphoneSessionStateChangeCallBack: () => {console.log('softphone-session-state-change')},
|
|
65
66
|
softphoneIncomingCallBack: () => {console.log('softphone-incoming')},
|
|
66
67
|
softphoneSendDtmfCallBack: () => {console.log('softphone-send-dtmf')},
|
|
@@ -155,6 +156,8 @@ class SoftphoneManager {
|
|
|
155
156
|
this.option.softphoneIgnoreCallBack?.(data)
|
|
156
157
|
} else if (data.type === 'softphone-hangup') {
|
|
157
158
|
this.option.softphoneHangupCallBack?.(data)
|
|
159
|
+
} else if (data.type === 'softphone-auto-ignore-callback') {
|
|
160
|
+
this.option.softphoneAutoIgnoreCallback?.(data)
|
|
158
161
|
} else if (data.type === 'softphone-session-state-change') {
|
|
159
162
|
this.option.softphoneSessionStateChangeCallBack?.(data)
|
|
160
163
|
} else if (data.type === 'softphone-incoming') {
|
|
@@ -75,6 +75,7 @@ document.addEventListener('DOMContentLoaded', async (event) => {
|
|
|
75
75
|
// }
|
|
76
76
|
// }))
|
|
77
77
|
}, // 👈 签入签出回调
|
|
78
|
+
softphoneAutoIgnoreCallback: (data) => {console.log('softphone-auto-ignore-callback', data)}, // 👈 自动忽略回调
|
|
78
79
|
softphoneCallRefreshCallBack: (data) => {console.log('softphone-call-refresh', data)}, // 👈 来电刷新来电记录列表回调
|
|
79
80
|
softphoneSeatStatusChangeCallBack: (data) => {console.log('softphone-seats-status-change', data)},// 👈 小休和在线切换回调
|
|
80
81
|
softphoneAcceptCallBack: (data) => {console.log('softphone-accept', data)},// 👈 接听回调
|
|
@@ -80,6 +80,9 @@ class SoftphoneManager {
|
|
|
80
80
|
softphoneAcceptCallBack: () => {
|
|
81
81
|
console.log('softphone-accept')
|
|
82
82
|
},
|
|
83
|
+
softphoneAutoIgnoreCallback: () => {
|
|
84
|
+
console.log('softphone-auto-ignore-callback')
|
|
85
|
+
},
|
|
83
86
|
softphoneIgnoreCallBack: () => {
|
|
84
87
|
console.log('softphone-ignore')
|
|
85
88
|
},
|
|
@@ -290,12 +293,12 @@ class SoftphoneManager {
|
|
|
290
293
|
}
|
|
291
294
|
if (sgOpen === '1') {
|
|
292
295
|
if (sgDomain === '1') {
|
|
293
|
-
return 'https://seat.teleai.com/
|
|
296
|
+
return 'https://seat.teleai.com/teleaiopenapi'
|
|
294
297
|
}
|
|
295
298
|
return 'https://seat.teleai.com/openapi'
|
|
296
299
|
} else {
|
|
297
300
|
if (sgDomain === '1') {
|
|
298
|
-
return 'https://seat.94ai.com/
|
|
301
|
+
return 'https://seat.94ai.com/teleaiopenapi'
|
|
299
302
|
}
|
|
300
303
|
return 'https://seat.94ai.com/openapi'
|
|
301
304
|
}
|
|
@@ -721,6 +724,9 @@ class SoftphoneManager {
|
|
|
721
724
|
'softphone-accept': (data) => {
|
|
722
725
|
props.softphoneAcceptCallBack?.(data)
|
|
723
726
|
},
|
|
727
|
+
'softphone-auto-ignore-callback': (data) => {
|
|
728
|
+
props.softphoneAutoIgnoreCallback?.(data)
|
|
729
|
+
},
|
|
724
730
|
'softphone-seats-status-change': (data) => {
|
|
725
731
|
props.softphoneSeatStatusChangeCallBack?.(data)
|
|
726
732
|
},
|