Commit 3d63e726 authored by Muhammadali's avatar Muhammadali

0.6.1

parent 8e9cb4f5
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "0.6.0", "version": "0.6.1",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -226,7 +226,7 @@ export class BoxDialer { ...@@ -226,7 +226,7 @@ export class BoxDialer {
setGuiPhoneState({ stateCode, funcName, funcParam }) { setGuiPhoneState({ stateCode, funcName, funcParam }) {
if (window?.alovoice_wsphone) { if (window?.alovoice_wsphone) {
let uiState = ''; let uiState = false;
switch (stateCode) { switch (stateCode) {
case 'i_new_call': case 'i_new_call':
...@@ -239,6 +239,7 @@ export class BoxDialer { ...@@ -239,6 +239,7 @@ export class BoxDialer {
break; break;
} }
if (uiState) {
this.callBxMethods({ this.callBxMethods({
bxMethodName: 'CallCardSetUiState', bxMethodName: 'CallCardSetUiState',
bxFuncParams: { uiState }, bxFuncParams: { uiState },
...@@ -246,6 +247,7 @@ export class BoxDialer { ...@@ -246,6 +247,7 @@ export class BoxDialer {
console.log(e, `CallCardSetUiState method done ${e}`); console.log(e, `CallCardSetUiState method done ${e}`);
}, },
}); });
}
} else if (funcName && this.onSipStateChange[funcName] !== 'undefined') { } else if (funcName && this.onSipStateChange[funcName] !== 'undefined') {
this.onSipStateChange[funcName](funcParam); this.onSipStateChange[funcName](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