Commit 9ab30321 authored by Muhammadali's avatar Muhammadali

update-

parent aed4f1c4
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "2.6.7", "version": "2.6.8",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -215,6 +215,7 @@ export class BoxDialer { ...@@ -215,6 +215,7 @@ export class BoxDialer {
} }
getBxUiState(sipState) { getBxUiState(sipState) {
console.log('this_callDirection: ', this.callDirection);
if (sipState && !!sipState.length) sipState = this.sipState; if (sipState && !!sipState.length) sipState = this.sipState;
let uiStates = { let uiStates = {
stack_i_new_call: this.callDirection === 'in' ? 'incoming' : 'outgoing', stack_i_new_call: this.callDirection === 'in' ? 'incoming' : 'outgoing',
......
...@@ -8,7 +8,8 @@ import Modal from '../components/Modal'; ...@@ -8,7 +8,8 @@ import Modal from '../components/Modal';
import BxMiniWidjetUi from '../components/BxMiniWidjetUi'; import BxMiniWidjetUi from '../components/BxMiniWidjetUi';
import SecondNotifSip from '../components/SecondNotifSip'; import SecondNotifSip from '../components/SecondNotifSip';
// setWsphonedata; // setWsphonedata;
const Root = ({ wsphonedata, onSetDnd, setWsphonedata }) => { // const Root = ({ wsphonedata, onSetDnd, setWsphonedata }) => {
const Root = ({ wsphonedata, onSetDnd, setWsphonedata, callMethod }) => {
// const [dataSecond, setDataSecond] = useState([]); // const [dataSecond, setDataSecond] = useState([]);
// if (!data) { // if (!data) {
// data = { // data = {
...@@ -69,6 +70,14 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata }) => { ...@@ -69,6 +70,14 @@ const Root = ({ wsphonedata, onSetDnd, setWsphonedata }) => {
let result = await onSetDnd(e); let result = await onSetDnd(e);
setWsphonedata(result); setWsphonedata(result);
}; };
const getTransferers = async (e) => {
let result = await callMethod({
method: 'getPeers',
});
setWsphonedata(result);
};
const selectWidjetType = (type) => { const selectWidjetType = (type) => {
switch (type) { switch (type) {
case 'bxmini': case 'bxmini':
......
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