@94ai/softphone 5.0.13 → 5.0.14
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/micro-call-ui/microphone.js +18 -26
- package/html-softphone-demo/micro-call-ui/util.js +3 -0
- package/html-softphone-demo/softphone.umd.min.js +2 -2
- package/lib/index.d.ts +1 -1
- 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
|
@@ -285,42 +285,34 @@ class SoftphoneManager {
|
|
|
285
285
|
sgOpen,
|
|
286
286
|
sgDomain
|
|
287
287
|
} = props
|
|
288
|
-
if (sgOpen) {
|
|
289
|
-
|
|
290
|
-
|
|
288
|
+
if (isDomainOrIP(sgOpen)) {
|
|
289
|
+
return sgOpen
|
|
290
|
+
}
|
|
291
|
+
if (sgOpen === '1') {
|
|
292
|
+
if (sgDomain === '1') {
|
|
293
|
+
return 'https://seat.teleai.com/sgopenapi'
|
|
291
294
|
}
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
return 'https://seat.teleai.com/openapi'
|
|
297
|
-
}
|
|
298
|
-
} else if (sgOpen === '0') {
|
|
299
|
-
if (sgDomain === '1') {
|
|
300
|
-
return 'https://seat.94ai.com/sgopenapi'
|
|
301
|
-
} else {
|
|
302
|
-
return 'https://seat.94ai.com/openapi'
|
|
303
|
-
}
|
|
295
|
+
return 'https://seat.teleai.com/openapi'
|
|
296
|
+
} else {
|
|
297
|
+
if (sgDomain === '1') {
|
|
298
|
+
return 'https://seat.94ai.com/sgopenapi'
|
|
304
299
|
}
|
|
300
|
+
return 'https://seat.94ai.com/openapi'
|
|
305
301
|
}
|
|
306
|
-
return 'https://seat.94ai.com/openapi'
|
|
307
302
|
}
|
|
308
303
|
|
|
309
304
|
getBase() {
|
|
310
305
|
const {
|
|
311
306
|
sgBase
|
|
312
307
|
} = props
|
|
313
|
-
if (sgBase) {
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
return 'https://seat.94ai.com/api'
|
|
321
|
-
}
|
|
308
|
+
if (isDomainOrIP(sgBase)) {
|
|
309
|
+
return sgBase
|
|
310
|
+
}
|
|
311
|
+
if (sgBase === '1') {
|
|
312
|
+
return 'https://seat.teleai.com/api'
|
|
313
|
+
} else if (sgBase === '0') {
|
|
314
|
+
return 'https://seat.94ai.com/api'
|
|
322
315
|
}
|
|
323
|
-
return undefined
|
|
324
316
|
}
|
|
325
317
|
|
|
326
318
|
getIsOem() {
|