Commit 4339943b authored by Muhammadali's avatar Muhammadali

update-

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