Commit 103f99ce authored by Muhammadali's avatar Muhammadali

update-

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