Commit 552be143 authored by Muhammadali's avatar Muhammadali

update

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