Commit 4339943b authored by Muhammadali's avatar Muhammadali

update-

parent b860ed1b
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "3.1.8", "version": "3.1.9",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -595,13 +595,40 @@ export class BoxDialer { ...@@ -595,13 +595,40 @@ export class BoxDialer {
// }, // },
// }); // });
if (this.oSipSessionCall && this.oSipSessionCall.bHeld === false) { // -----------------------------------------------------
this.oSipSessionCall.hold({
events_listener: { // if (this.oSipSessionCall && this.oSipSessionCall.bHeld === false) {
events: '*', // this.oSipSessionCall.hold({
listener: (event) => this.onSessionEvent({ type: 'hold', event }), // events_listener: {
}, // events: '*',
}); // listener: (event) => this.onSessionEvent({ type: 'hold', event }),
// },
// });
// this.callBxMethods({
// bxMethodName: 'CallCardSetUiState',
// bxFuncParams: { muted: true },
// callback: (e) => {
// console.log(e, `CallCardSetUiState method done ${e}`);
// },
// });
// } else if (this.oSipSessionCall && this.oSipSessionCall.bHeld === true) {
// this.oSipSessionCall.resume({
// events_listener: {
// events: '*',
// listener: (event) => this.onSessionEvent({ type: 'resume', event }),
// },
// });
// this.callBxMethods({
// bxMethodName: 'CallCardSetUiState',
// bxFuncParams: { muted: false },
// callback: (e) => {
// console.log(e, `CallCardSetUiState method done ${e}`);
// },
// });
// }
if (this.oSipSessionCall.bHeld) {
this.oSipSessionCall.resume();
this.callBxMethods({ this.callBxMethods({
bxMethodName: 'CallCardSetUiState', bxMethodName: 'CallCardSetUiState',
bxFuncParams: { muted: true }, bxFuncParams: { muted: true },
...@@ -609,13 +636,8 @@ export class BoxDialer { ...@@ -609,13 +636,8 @@ export class BoxDialer {
console.log(e, `CallCardSetUiState method done ${e}`); console.log(e, `CallCardSetUiState method done ${e}`);
}, },
}); });
} else if (this.oSipSessionCall && this.oSipSessionCall.bHeld === true) { } else {
this.oSipSessionCall.resume({ this.oSipSessionCall.hold();
events_listener: {
events: '*',
listener: (event) => this.onSessionEvent({ type: 'resume', event }),
},
});
this.callBxMethods({ this.callBxMethods({
bxMethodName: 'CallCardSetUiState', bxMethodName: 'CallCardSetUiState',
bxFuncParams: { muted: false }, bxFuncParams: { muted: false },
......
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