Commit 48c21ecb authored by Muhammadali's avatar Muhammadali

update

parent 1640ae49
#!/bin/sh
CNM=$1
git add .
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "1.3.5", "version": "1.3.7",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -235,7 +235,13 @@ export class BoxDialer { ...@@ -235,7 +235,13 @@ export class BoxDialer {
window.alovoicePhone.callMethods[bxMethodName](bxFuncParams, callback); window.alovoicePhone.callMethods[bxMethodName](bxFuncParams, callback);
} }
} }
closeBxCall() {
if (window.BX24 && window.BX24.placement) {
window?.BX24.placement.call('CallCardClose', {}, () => {});
} else if (window.alovoicePhone && window.alovoicePhone.callMethods) {
window.alovoicePhone.close();
}
}
setGuiPhoneState({ stateCode, funcName, funcParam }) { setGuiPhoneState({ stateCode, funcName, funcParam }) {
if (window?.alovoice_wsphone) { if (window?.alovoice_wsphone) {
this.callBxMethods({ this.callBxMethods({
...@@ -306,6 +312,7 @@ export class BoxDialer { ...@@ -306,6 +312,7 @@ export class BoxDialer {
case 'hangup_terminating': case 'hangup_terminating':
// QORA EKRANNI OCHIRISH KERE // QORA EKRANNI OCHIRISH KERE
this.setGuiPhoneState({ this.setGuiPhoneState({
funcName: 'modalState', funcName: 'modalState',
...@@ -318,9 +325,8 @@ export class BoxDialer { ...@@ -318,9 +325,8 @@ export class BoxDialer {
break; break;
case 'call_terminated': case 'call_terminated':
console.log('%c call_terminated', 'background-color: yellow;');
this.onSoundType({ type: 'ring', bool: false }); this.onSoundType({ type: 'ring', bool: false });
this.closeBxCall();
this.setGuiPhoneState({ this.setGuiPhoneState({
funcName: 'modalState', funcName: 'modalState',
funcParam: { funcParam: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment