Commit cb93c368 authored by Muhammadali's avatar Muhammadali

update-

parent 144e0814
{ {
"name": "boxdialer", "name": "boxdialer",
"version": "2.6.4", "version": "2.6.5",
"description": "", "description": "",
"main": "src/boxDialer.js", "main": "src/boxDialer.js",
"scripts": { "scripts": {
......
...@@ -217,16 +217,15 @@ export class BoxDialer { ...@@ -217,16 +217,15 @@ export class BoxDialer {
getBxUiState(sipState) { getBxUiState(sipState) {
if (sipState && !!sipState.length) sipState = this.sipState; if (sipState && !!sipState.length) sipState = this.sipState;
let uiStates = { let uiStates = {
stack_i_new_call: stack_i_new_call: this.callDirection === 'in' ? 'incoming' : 'outgoing',
this.callDirection === 'in'
? 'connectingIncoming'
: 'connectingOutgoing',
call_connected: 'connected', call_connected: 'connected',
call_m_stream_audio_remote_added: 'connected', 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' ? 'incoming' : 'outgoing', this.callDirection === 'in'
? 'connectingIncoming'
: '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