Example #1
0
  public void setDefaultParams(PreferencesWrapper prefs) {
    super.setDefaultParams(prefs);

    // prefs.setPreferenceBooleanValue(PreferencesWrapper.IS_ADVANCED_USER, true);

    prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_DNS_SRV, true);
    prefs.setPreferenceBooleanValue(SipConfigManager.ECHO_CANCELLATION, true);
    // prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_TLS, true);
    prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, false);
    prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_ICE, false);
    // prefs.setPreferenceStringValue(SipConfigManager.LOG_LEVEL, "4");

    // wb codecs
    prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_WB, "245");
    prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_WB, "244");
    prefs.setCodecPriority("GSM/8000/1", SipConfigManager.CODEC_WB, "243");
    prefs.setCodecPriority("iLBC/8000/1", SipConfigManager.CODEC_WB, "242");
    prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB, "241");
    prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_WB, "240");
    prefs.setCodecPriority("speex/16000/1", SipConfigManager.CODEC_WB, "239");
    prefs.setCodecPriority("speex/8000/1", SipConfigManager.CODEC_WB, "0");
    prefs.setCodecPriority("speex/32000/1", SipConfigManager.CODEC_WB, "0");

    // nb codecs
    prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_NB, "245");
    prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_NB, "244");
    prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_NB, "243");
    prefs.setCodecPriority("iLBC/8000/1", SipConfigManager.CODEC_NB, "242");
    prefs.setCodecPriority("GSM/8000/1", SipConfigManager.CODEC_NB, "241");
    prefs.setCodecPriority("speex/8000/1", SipConfigManager.CODEC_NB, "240");
    prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_NB, "0");
    prefs.setCodecPriority("speex/16000/1", SipConfigManager.CODEC_NB, "0");
    prefs.setCodecPriority("speex/32000/1", SipConfigManager.CODEC_NB, "0");
  }
Example #2
0
  @Override
  public void setDefaultParams(PreferencesWrapper prefs) {
    super.setDefaultParams(prefs);
    // Disable ICE and turn on STUN!!!
    prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
    String provider = providerListPref.getValue();
    if (provider != null) {
      String[] set = providers.get(provider);
      if (!TextUtils.isEmpty(set[1])) {
        prefs.addStunServer(set[1]);
      }
    }

    prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_ICE, false);
  }
Example #3
0
 @Override
 public void setDefaultParams(PreferencesWrapper prefs) {
   super.setDefaultParams(prefs);
   prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_DNS_SRV, true);
   prefs.setPreferenceStringValue(SipConfigManager.KEEP_ALIVE_INTERVAL_MOBILE, "60");
   prefs.setPreferenceStringValue(SipConfigManager.KEEP_ALIVE_INTERVAL_WIFI, "60");
 }
Example #4
0
 @Override
 public void setDefaultParams(PreferencesWrapper prefs) {
   super.setDefaultParams(prefs);
   prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_TLS, true);
 }
Example #5
0
 @Override
 public void setDefaultParams(PreferencesWrapper prefs) {
   super.setDefaultParams(prefs);
   prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
   prefs.setPreferenceStringValue(SipConfigManager.STUN_SERVER, "stun.wimobile.it");
 }