Commit 6b3d1668 authored by Muhammadali's avatar Muhammadali

update-

parent 6d84c1de
...@@ -218,7 +218,9 @@ export class BoxDialer { ...@@ -218,7 +218,9 @@ export class BoxDialer {
if (sipState && !!sipState.length) sipState = this.sipState; if (sipState && !!sipState.length) sipState = this.sipState;
let uiStates = { let uiStates = {
stack_i_new_call: stack_i_new_call:
this.callDirection === 'in' ? 'connectingIncoming' : 'connected', this.callDirection === 'in'
? 'connectingIncoming'
: 'connectingOutgoing',
call_connected: 'connected', call_connected: 'connected',
call_m_stream_audio_remote_added: 'connected', call_m_stream_audio_remote_added: 'connected',
...@@ -547,6 +549,9 @@ export class BoxDialer { ...@@ -547,6 +549,9 @@ export class BoxDialer {
`this_callEvetsBoxDialer_callHold: `, `this_callEvetsBoxDialer_callHold: `,
this.callEvetsBoxDialer.callHold, this.callEvetsBoxDialer.callHold,
); );
// BX24.placement.call('CallCardSetHold', { held: true }, () => {
// });
if (this.callEvetsBoxDialer.callHold) { if (this.callEvetsBoxDialer.callHold) {
this.oSipSessionCall.resume(); this.oSipSessionCall.resume();
this.callEvetsBoxDialer = { this.callEvetsBoxDialer = {
...@@ -564,14 +569,14 @@ export class BoxDialer { ...@@ -564,14 +569,14 @@ export class BoxDialer {
this.oSipSessionCall.bHeld = this.callHold; this.oSipSessionCall.bHeld = this.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: false }, // bxFuncParams: { held: false },
// callback: (e) => { callback: (e) => {
// console.log(e, `CallCardSetUiState method done ${e}`); console.log(e, `CallCardSetUiState method done ${e}`);
// }, },
// }); });
} }
closeButtonClick() { closeButtonClick() {
......
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