Commit 103f99ce authored by Muhammadali's avatar Muhammadali

update-

parent ace7093c
{
"name": "boxdialer",
"version": "3.8.9",
"version": "3.9.0",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -88,6 +88,7 @@ export class BoxDialer {
// window.innerCallBegin(true);
this.onSipStateChange.innerCallerModal({
bool: true,
type: null,
});
this.setGuiPhoneState({
funcName: 'modalState',
......@@ -111,6 +112,7 @@ export class BoxDialer {
});
this.onSipStateChange.innerCallerModal({
bool: false,
type: null,
});
window.navigator.mediaDevices
.getUserMedia({ audio: true })
......@@ -130,6 +132,7 @@ export class BoxDialer {
this.closeBxCall();
this.onSipStateChange.innerCallerModal({
bool: false,
type: null,
});
this.setGuiPhoneState({
funcName: 'modalState',
......@@ -143,6 +146,10 @@ export class BoxDialer {
confirmed: (e) => {
console.log('% cconfirmed', 'font-size: 22px; color: green;', e);
// console.log(`%c BXLOG:`, datas, 'background-color: red;');
this.onSipStateChange.innerCallerModal({
bool: true,
type: 'connected',
});
this.setGuiPhoneState({
funcName: 'modalState',
stateCode: 'connected',
......@@ -319,6 +326,7 @@ export class BoxDialer {
// innerCallerModal;
this.onSipStateChange.innerCallerModal({
bool: true,
type: null,
});
if (this.callSession.direction === 'incoming') {
this.showNotification(() => {
......@@ -393,6 +401,7 @@ export class BoxDialer {
console.log('%c incoming end', 'font-size: 22px; color: yellow;');
this.onSipStateChange.innerCallerModal({
bool: false,
type: null,
});
this.setGuiPhoneState({
funcName: 'modalState',
......
......@@ -38,6 +38,7 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
const [secondLine, setSecondLine] = useState(false);
const [innerCallerModal, setInnerCallerModal] = useState({
bool: false,
type: null
});
const boxDialer = window.BoxDialer;
......
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