Commit 377d4a81 authored by Muhammadali's avatar Muhammadali

update

parent 64dd4818
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "1.7.6", "version": "1.7.7",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -255,13 +255,13 @@ export class BoxDialer { ...@@ -255,13 +255,13 @@ export class BoxDialer {
} }
setGuiPhoneState({ stateCode, funcName, funcParam }) { setGuiPhoneState({ stateCode, funcName, funcParam }) {
if (window?.alovoice_wsphone && !!stateCode?.length) { if (window?.alovoice_wsphone && !!stateCode?.length) {
// this.callBxMethods({ this.callBxMethods({
// bxMethodName: 'CallCardSetUiState', bxMethodName: 'CallCardSetUiState',
// bxFuncParams: { uiState: this.getBxUiState(stateCode) }, bxFuncParams: { uiState: this.getBxUiState(stateCode) },
// callback: (e) => { callback: (e) => {
// console.log(e, `CallCardSetUiState method done ${e}`); console.log(e, `CallCardSetUiState method done ${e}`);
// }, },
// }); });
} else if (funcName && this.onSipStateChange[funcName] !== 'undefined') { } else if (funcName && this.onSipStateChange[funcName] !== 'undefined') {
this.onSipStateChange[funcName](funcParam); this.onSipStateChange[funcName](funcParam);
} }
...@@ -352,9 +352,13 @@ export class BoxDialer { ...@@ -352,9 +352,13 @@ export class BoxDialer {
case 'stack_i_new_call': case 'stack_i_new_call':
console.log('stack_i_new_call', event); console.log('stack_i_new_call', event);
this.onSipStateChange.secondLine(false);
if (this?.oSipSessionCall?.o_session?.o_stream_remote?.id) { if (this?.oSipSessionCall?.o_session?.o_stream_remote?.id) {
this.onSipStateChange.secondLine(true); // this.onSipStateChange.secondLine(true);
this.setGuiPhoneState({
funcName: 'secondLine',
funcParam: true,
});
this.callDirection = 'in'; this.callDirection = 'in';
this.oSipSessionCallSecond = event.newSession; this.oSipSessionCallSecond = event.newSession;
this.oSipSessionCallSecond.setConfiguration(this.oConfigCall); this.oSipSessionCallSecond.setConfiguration(this.oConfigCall);
...@@ -370,7 +374,11 @@ export class BoxDialer { ...@@ -370,7 +374,11 @@ export class BoxDialer {
// }); // });
} }
{ {
this.onSipStateChange.secondLine(false); // this.onSipStateChange.secondLine(false);
this.setGuiPhoneState({
funcName: 'secondLine',
funcParam: false,
});
this.callDirection = 'in'; this.callDirection = 'in';
this.oSipSessionCall = event.newSession; this.oSipSessionCall = event.newSession;
this.oSipSessionCall.setConfiguration(this.oConfigCall); this.oSipSessionCall.setConfiguration(this.oConfigCall);
......
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