Commit 48c21ecb authored by Muhammadali's avatar Muhammadali

update

parent 1640ae49
#!/bin/sh
CNM=$1
git add .
{
"name": "boxdialer",
"version": "1.3.5",
"version": "1.3.7",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -235,7 +235,13 @@ export class BoxDialer {
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 }) {
if (window?.alovoice_wsphone) {
this.callBxMethods({
......@@ -306,6 +312,7 @@ export class BoxDialer {
case 'hangup_terminating':
// QORA EKRANNI OCHIRISH KERE
this.setGuiPhoneState({
funcName: 'modalState',
......@@ -318,9 +325,8 @@ export class BoxDialer {
break;
case 'call_terminated':
console.log('%c call_terminated', 'background-color: yellow;');
this.onSoundType({ type: 'ring', bool: false });
this.closeBxCall();
this.setGuiPhoneState({
funcName: 'modalState',
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