Commit 552be143 authored by Muhammadali's avatar Muhammadali

update

parent a8b1ffe8
{
"name": "boxdialer",
"version": "1.7.8",
"version": "1.7.9",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -254,11 +254,6 @@ export class BoxDialer {
}
}
setGuiPhoneState({ stateCode, funcName, funcParam }) {
console.log(
'setGuiPhoneState: ',
window?.alovoice_wsphone,
!!stateCode?.length,
);
if (window?.alovoice_wsphone && !!stateCode?.length) {
this.callBxMethods({
bxMethodName: 'CallCardSetUiState',
......@@ -581,14 +576,18 @@ export class BoxDialer {
this.hangupButtonClick();
}
hangupButtonClick() {
console.log('hangupButtonClick');
this.onSoundType({ type: 'ring', bool: false });
this.onSipStateChange.modalState({
bool: false,
callType: 'answered',
callAnswerType: 'oncoming',
callFromName: null,
this.setGuiPhoneState({
funcName: 'modalState',
funcParam: {
bool: false,
callType: 'answered',
callAnswerType: 'oncoming',
callFromName: null,
},
});
if (this.oSipSessionCall) {
this.oSipSessionCall.hangup({
events_listener: {
......@@ -609,11 +608,14 @@ export class BoxDialer {
if (!window?.alovoice_wsphone) {
toast('Call transfered');
}
this.onSipStateChange.modalState({
bool: false,
callType: 'answered',
callAnswerType: 'oncoming',
callFromName: null,
this.setGuiPhoneState({
funcName: 'modalState',
funcParam: {
bool: false,
callType: 'answered',
callAnswerType: 'oncoming',
callFromName: null,
},
});
}
}
......
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