Commit 1640ae49 authored by Muhammadali's avatar Muhammadali

update

parent 7dc13fd8
{
"name": "boxdialer",
"version": "1.3.4",
"version": "1.3.5",
"description": "",
"main": "src/boxDialer.js",
"scripts": {
......
......@@ -216,11 +216,13 @@ export class BoxDialer {
getBxUiState(sipState) {
if (sipState && !!sipState.length) sipState = this.sipState;
let uiStates = {
stack_i_new_call: 'connected',
stack_i_new_call:
this.callDirection === 'in' ? 'connectingIncoming' : 'connected',
call_connected: 'connected',
call_m_stream_audio_remote_added: 'connected',
call_i_ao_request: 'connectingOutgoing',
stack_m_permission_accepted: 'incoming',
stack_m_permission_accepted:
this.callDirection === 'in' ? 'incoming' : 'outgoing',
};
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