@@ -197,29 +197,29 @@ public void onServiceConnected(ComponentName className, IBinder service)
197197 RCDevice .RCDeviceBinder binder = (RCDevice .RCDeviceBinder ) service ;
198198 device = binder .getService ();
199199
200- HashMap <String , Object > params = new HashMap <String , Object >();
201- params .put (RCDevice .ParameterKeys .INTENT_INCOMING_CALL , new Intent (RCDevice .ACTION_INCOMING_CALL , null , getApplicationContext (), CallActivity .class ));
202- params .put (RCDevice .ParameterKeys .INTENT_INCOMING_MESSAGE , new Intent (RCDevice .ACTION_INCOMING_MESSAGE , null , getApplicationContext (), MessageActivity .class ));
203- params .put (RCDevice .ParameterKeys .SIGNALING_DOMAIN , prefs .getString (RCDevice .ParameterKeys .SIGNALING_DOMAIN , "" ));
204- params .put (RCDevice .ParameterKeys .SIGNALING_USERNAME , prefs .getString (RCDevice .ParameterKeys .SIGNALING_USERNAME , "android-sdk" ));
205- params .put (RCDevice .ParameterKeys .SIGNALING_PASSWORD , prefs .getString (RCDevice .ParameterKeys .SIGNALING_PASSWORD , "1234" ));
206- params .put (RCDevice .ParameterKeys .MEDIA_ICE_URL , prefs .getString (RCDevice .ParameterKeys .MEDIA_ICE_URL , "" ));
207- params .put (RCDevice .ParameterKeys .MEDIA_ICE_USERNAME , prefs .getString (RCDevice .ParameterKeys .MEDIA_ICE_USERNAME , "" ));
208- params .put (RCDevice .ParameterKeys .MEDIA_ICE_PASSWORD , prefs .getString (RCDevice .ParameterKeys .MEDIA_ICE_PASSWORD , "" ));
209- params .put (RCDevice .ParameterKeys .MEDIA_TURN_ENABLED , prefs .getBoolean (RCDevice .ParameterKeys .MEDIA_TURN_ENABLED , true ));
210- params .put (RCDevice .ParameterKeys .SIGNALING_SECURE_ENABLED , prefs .getBoolean (RCDevice .ParameterKeys .SIGNALING_SECURE_ENABLED , true ));
211- // The SDK provides the user with default sounds for calling, ringing, busy (declined) and message, but the user can override them
212- // by providing their own resource files (i.e. .wav, .mp3, etc) at res/raw passing them with Resource IDs like R.raw.user_provided_calling_sound
213- //params.put(RCDevice.ParameterKeys.RESOURCE_SOUND_CALLING, R.raw.user_provided_calling_sound);
214- //params.put(RCDevice.ParameterKeys.RESOURCE_SOUND_RINGING, R.raw.user_provided_ringing_sound);
215- //params.put(RCDevice.ParameterKeys.RESOURCE_SOUND_DECLINED, R.raw.user_provided_declined_sound);
216- //params.put(RCDevice.ParameterKeys.RESOURCE_SOUND_MESSAGE, R.raw.user_provided_message_sound);
217-
218- // These are for debugging purposes, NOT for release builds!
219- //params.put(RCDevice.ParameterKeys.DEBUG_JAIN_SIP_LOGGING_ENABLED, prefs.getBoolean(RCDevice.ParameterKeys.DEBUG_JAIN_SIP_LOGGING_ENABLED, true));
220- //params.put(RCDevice.ParameterKeys.DEBUG_JAIN_DISABLE_CERTIFICATE_VERIFICATION, prefs.getBoolean(RCDevice.ParameterKeys.DEBUG_JAIN_DISABLE_CERTIFICATE_VERIFICATION, true));
221-
222200 if (!device .isInitialized ()) {
201+ HashMap <String , Object > params = new HashMap <String , Object >();
202+ params .put (RCDevice .ParameterKeys .INTENT_INCOMING_CALL , new Intent (RCDevice .ACTION_INCOMING_CALL , null , getApplicationContext (), CallActivity .class ));
203+ params .put (RCDevice .ParameterKeys .INTENT_INCOMING_MESSAGE , new Intent (RCDevice .ACTION_INCOMING_MESSAGE , null , getApplicationContext (), MessageActivity .class ));
204+ params .put (RCDevice .ParameterKeys .SIGNALING_DOMAIN , prefs .getString (RCDevice .ParameterKeys .SIGNALING_DOMAIN , "" ));
205+ params .put (RCDevice .ParameterKeys .SIGNALING_USERNAME , prefs .getString (RCDevice .ParameterKeys .SIGNALING_USERNAME , "android-sdk" ));
206+ params .put (RCDevice .ParameterKeys .SIGNALING_PASSWORD , prefs .getString (RCDevice .ParameterKeys .SIGNALING_PASSWORD , "1234" ));
207+ params .put (RCDevice .ParameterKeys .MEDIA_ICE_URL , prefs .getString (RCDevice .ParameterKeys .MEDIA_ICE_URL , "" ));
208+ params .put (RCDevice .ParameterKeys .MEDIA_ICE_USERNAME , prefs .getString (RCDevice .ParameterKeys .MEDIA_ICE_USERNAME , "" ));
209+ params .put (RCDevice .ParameterKeys .MEDIA_ICE_PASSWORD , prefs .getString (RCDevice .ParameterKeys .MEDIA_ICE_PASSWORD , "" ));
210+ params .put (RCDevice .ParameterKeys .MEDIA_TURN_ENABLED , prefs .getBoolean (RCDevice .ParameterKeys .MEDIA_TURN_ENABLED , true ));
211+ params .put (RCDevice .ParameterKeys .SIGNALING_SECURE_ENABLED , prefs .getBoolean (RCDevice .ParameterKeys .SIGNALING_SECURE_ENABLED , true ));
212+ // The SDK provides the user with default sounds for calling, ringing, busy (declined) and message, but the user can override them
213+ // by providing their own resource files (i.e. .wav, .mp3, etc) at res/raw passing them with Resource IDs like R.raw.user_provided_calling_sound
214+ //params.put(RCDevice.ParameterKeys.RESOURCE_SOUND_CALLING, R.raw.user_provided_calling_sound);
215+ //params.put(RCDevice.ParameterKeys.RESOURCE_SOUND_RINGING, R.raw.user_provided_ringing_sound);
216+ //params.put(RCDevice.ParameterKeys.RESOURCE_SOUND_DECLINED, R.raw.user_provided_declined_sound);
217+ //params.put(RCDevice.ParameterKeys.RESOURCE_SOUND_MESSAGE, R.raw.user_provided_message_sound);
218+
219+ // These are for debugging purposes, NOT for release builds!
220+ //params.put(RCDevice.ParameterKeys.DEBUG_JAIN_SIP_LOGGING_ENABLED, prefs.getBoolean(RCDevice.ParameterKeys.DEBUG_JAIN_SIP_LOGGING_ENABLED, true));
221+ //params.put(RCDevice.ParameterKeys.DEBUG_JAIN_DISABLE_CERTIFICATE_VERIFICATION, prefs.getBoolean(RCDevice.ParameterKeys.DEBUG_JAIN_DISABLE_CERTIFICATE_VERIFICATION, true));
222+
223223 device .initialize (getApplicationContext (), params , this );
224224 device .setLogLevel (Log .VERBOSE );
225225 }
0 commit comments