Commit d955d68e authored by Muhammadali's avatar Muhammadali

update

parent a68edead
...@@ -254,6 +254,12 @@ export class BoxDialer { ...@@ -254,6 +254,12 @@ export class BoxDialer {
} }
} }
setGuiPhoneState({ stateCode, funcName, funcParam }) { setGuiPhoneState({ stateCode, funcName, funcParam }) {
console.log(
'dsadsadsad',
!(window?.alovoice_wsphone && !!stateCode?.length) &&
funcName &&
this.onSipStateChange[funcName] !== 'undefined',
);
if (window?.alovoice_wsphone && !!stateCode?.length) { if (window?.alovoice_wsphone && !!stateCode?.length) {
this.callBxMethods({ this.callBxMethods({
bxMethodName: 'CallCardSetUiState', bxMethodName: 'CallCardSetUiState',
...@@ -262,7 +268,11 @@ export class BoxDialer { ...@@ -262,7 +268,11 @@ 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 (
!(window?.alovoice_wsphone && !!stateCode?.length) &&
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