Commit 5e846082 authored by Muhammadali's avatar Muhammadali

update-

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