Commit 377d4a81 authored by Muhammadali's avatar Muhammadali

update

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