Commit 9b602373 authored by Muhammadali's avatar Muhammadali

update-

parent 5e846082
{
"name": "boxdialer",
"version": "2.5.5",
"version": "2.5.6",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -543,35 +543,36 @@ export class BoxDialer {
});
}
holdButtonClick() {
// console.log(`holdButtonClick`);
// if (this.callEvetsBoxDialer.callHold) {
// this.oSipSessionCall.resume();
// this.callEvetsBoxDialer = {
// ...this.callEvetsBoxDialer,
// callHold: false,
// };
// } else {
// this.oSipSessionCall.hold();
// this.callEvetsBoxDialer = {
// ...this.callEvetsBoxDialer,
// callHold: true,
// };
// }
console.log(`holdButtonClick`);
if (this.callEvetsBoxDialer.callHold) {
this.oSipSessionCall.resume();
this.callEvetsBoxDialer = {
...this.callEvetsBoxDialer,
callHold: false,
};
} else {
this.oSipSessionCall.hold();
this.callEvetsBoxDialer = {
...this.callEvetsBoxDialer,
callHold: true,
};
}
// this.oSipSessionCall.bHeld = this.callEvetsBoxDialer.callHold;
// this.onSipStateChange.setCallEvents(this.callEvetsBoxDialer);
this.oSipSessionCall.bHeld = this.callHold;
this.onSipStateChange.setCallEvents(this.callEvetsBoxDialer);
this.callBxMethods({
bxMethodName: 'CallCardSetHold',
// bxFuncParams: { held: this.oSipSessionCall.bHeld },
bxFuncParams: { held: true },
bxFuncParams: { held: this.oSipSessionCall.bHeld },
// bxFuncParams: { held: this.test() },
callback: (e) => {
console.log(e, `CallCardSetUiState method done ${e}`);
},
});
console.log('this_oSipSessionCall_bHeld', this.callEvetsBoxDialer.callHold);
console.log('this_oSipSessionCall_bHeld', this.callEvetsBoxDialer.);
}
closeButtonClick() {
console.log('closeButtonClick');
this.hangupButtonClick();
......
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