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,13 +239,15 @@ export class BoxDialer { ...@@ -239,13 +239,15 @@ export class BoxDialer {
break; break;
} }
this.callBxMethods({ if (uiState) {
bxMethodName: 'CallCardSetUiState', this.callBxMethods({
bxFuncParams: { uiState }, bxMethodName: 'CallCardSetUiState',
callback: (e) => { bxFuncParams: { uiState },
console.log(e, `CallCardSetUiState method done ${e}`); callback: (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