Commit 432fa227 authored by Muhammadali's avatar Muhammadali

update-

parent b3d91b25
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "2.6.9", "version": "2.7.0",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -216,17 +216,33 @@ export class BoxDialer { ...@@ -216,17 +216,33 @@ export class BoxDialer {
getBxUiState(sipState) { getBxUiState(sipState) {
console.log('this_callDirection: ', this.callDirection); console.log('this_callDirection: ', this.callDirection);
let arcodes = {
incoming: 1,
transferIncoming: 2,
outgoing: 3,
connectingIncoming: 4,
connectingOutgoing: 5,
connected: 6,
transferring: 7,
transferFailed: 8,
transferConnected: 9,
idle: 10,
error: 11,
moneyError: 12,
sipPhoneError: 13,
redial: 14,
externalCard: 15,
};
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' ? '' : '3',
call_connected: '6',
call_connected: 'connected', call_m_stream_audio_remote_added: '6',
call_m_stream_audio_remote_added: 'connected',
// call_i_ao_request: 'connectingOutgoing', // call_i_ao_request: 'connectingOutgoing',
stack_m_permission_accepted: stack_m_permission_accepted: this.callDirection === 'in' ? '1 ' : '5',
this.callDirection === 'in' ? 'incoming ' : 'connectingOutgoing', call_i_ao_request: this.callDirection === 'in' ? '1 ' : '5',
call_i_ao_request:
this.callDirection === 'in' ? 'incoming ' : 'connectingOutgoing',
}; };
return sipState && uiStates[sipState] ? uiStates[sipState] : ''; return sipState && uiStates[sipState] ? uiStates[sipState] : '';
} }
......
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