@@ -252,6 +252,7 @@ public void onRinging(Call call) {
252
252
}
253
253
eventManager .sendEvent (EVENT_CALL_STATE_RINGING , params );
254
254
}
255
+
255
256
@ Override
256
257
public void onConnected (Call call ) {
257
258
if (BuildConfig .DEBUG ) {
@@ -303,15 +304,14 @@ public void onConnected(Call call) {
303
304
304
305
@ Override
305
306
public void onDisconnected (Call call , CallException error ) {
307
+ if (BuildConfig .DEBUG ) {
308
+ Log .d (TAG , "CALL DISCONNECTED callListener().onDisconnected call state = " +call .getState ());
309
+ }
306
310
unsetAudioFocus ();
307
311
proximityManager .stopProximitySensor ();
308
312
headsetManager .stopWiredHeadsetEvent (getReactApplicationContext ());
309
313
callAccepted = false ;
310
314
311
- if (BuildConfig .DEBUG ) {
312
- Log .d (TAG , "call disconnected" );
313
- }
314
-
315
315
WritableMap params = Arguments .createMap ();
316
316
String callSid = "" ;
317
317
if (call != null ) {
@@ -347,14 +347,15 @@ public void onStats(@NonNull List<StatsReport> statsReports) {
347
347
348
348
@ Override
349
349
public void onConnectFailure (Call call , CallException error ) {
350
+ if (BuildConfig .DEBUG ) {
351
+ Log .d (TAG , "CALL FAILURE callListener().onConnectFailure call state = " +call .getState ());
352
+ }
350
353
unsetAudioFocus ();
351
354
proximityManager .stopProximitySensor ();
352
355
callAccepted = false ;
353
- if (BuildConfig .DEBUG ) {
354
- Log .d (TAG , "connect failure" );
355
- }
356
356
357
- Log .e (TAG , String .format ("CallListener onDisconnected error: %d, %s" ,
357
+
358
+ Log .e (TAG , String .format ("CallListener onConnectFailure error: %d, %s" ,
358
359
error .getErrorCode (), error .getMessage ()));
359
360
360
361
WritableMap params = Arguments .createMap ();
@@ -733,9 +734,9 @@ public void disconnect() {
733
734
}
734
735
735
736
@ ReactMethod
736
- public void setMuted (Boolean muteValue ) {
737
+ public void setMuted (Boolean value ) {
737
738
if (activeCall != null ) {
738
- activeCall .mute (muteValue );
739
+ activeCall .mute (value );
739
740
}
740
741
}
741
742
0 commit comments