Commit 1a6852de authored by Muhammadali's avatar Muhammadali

update verison: 0.7.9

parent 8d1b245d
{
"name": "boxdialer",
"version": "0.7.8",
"version": "0.7.9",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -146,7 +146,7 @@ const WidjetButton = ({ data, onSetDnd, position }) => {
}, [handleKeyUp]);
const hangupButton = () => {
boxDialer.stopCall();
boxDialer.hangupButtonClick();
};
const callButton = () => {
......
......@@ -440,28 +440,9 @@ export class BoxDialer {
});
}
}
stopCall() {
console.log('stopCall');
this.onSoundType({ type: 'ring', bool: false });
this.onSipStateChange.modalState({
bool: false,
callType: 'answered',
callAnswerType: 'oncoming',
callFromName: null,
});
if (this.oSipSessionCall) {
this.oSipSessionCall.hangup({
events_listener: {
events: '*',
listener: (event) => this.onSessionEvent({ type: 'hangup', event }),
},
});
}
}
skipButtonClick() {
this.onSoundType({ type: 'ring', bool: false });
this.stopCall();
this.hangupButtonClick();
}
answerButtonClick() {
......@@ -531,11 +512,25 @@ export class BoxDialer {
closeButtonClick() {
console.log('closeButtonClick');
this.stopCall();
this.hangupButtonClick();
}
hangupButtonClick() {
this.stopCall();
console.log('hangupButtonClick');
this.onSoundType({ type: 'ring', bool: false });
this.onSipStateChange.modalState({
bool: false,
callType: 'answered',
callAnswerType: 'oncoming',
callFromName: null,
});
if (this.oSipSessionCall) {
this.oSipSessionCall.hangup({
events_listener: {
events: '*',
listener: (event) => this.onSessionEvent({ type: 'hangup', event }),
},
});
}
}
transferButtonClick(number) {
......
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