Пример #1
0
 private void setCodecPriority(String codecName, short priority) {
   if (useCodecsPerSpeed) {
     prefsWrapper.setCodecPriority(codecName, bandtype, Short.toString(priority));
   } else {
     prefsWrapper.setCodecPriority(codecName, SipConfigManager.CODEC_NB, Short.toString(priority));
     prefsWrapper.setCodecPriority(codecName, SipConfigManager.CODEC_WB, Short.toString(priority));
   }
 }
Пример #2
0
 @Override
 public void setDefaultParams(PreferencesWrapper prefs) {
   super.setDefaultParams(prefs);
   prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_WB, "245");
   prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_NB, "245");
 }
Пример #3
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");
  }
Пример #4
0
  @Override
  public void setDefaultParams(PreferencesWrapper prefs) {
    super.setDefaultParams(prefs);

    // codecs WiFi: G711a, G711u, G722
    prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_WB, "220");
    prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB, "230");
    prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_WB, "240");
    prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_WB, "0");
    prefs.setCodecPriority("iLBC/8000/1", SipConfigManager.CODEC_WB, "0");
    prefs.setCodecPriority("speex/8000/1", SipConfigManager.CODEC_WB, "0");
    prefs.setCodecPriority("speex/16000/1", SipConfigManager.CODEC_WB, "0");
    prefs.setCodecPriority("speex/32000/1", SipConfigManager.CODEC_WB, "0");
    prefs.setCodecPriority("GSM/8000/1", SipConfigManager.CODEC_WB, "0");
    prefs.setCodecPriority("SILK/8000/1", SipConfigManager.CODEC_WB, "0");
    prefs.setCodecPriority("SILK/12000/1", SipConfigManager.CODEC_WB, "0");
    prefs.setCodecPriority("SILK/16000/1", SipConfigManager.CODEC_WB, "0");
    prefs.setCodecPriority("SILK/24000/1", SipConfigManager.CODEC_WB, "0");
    prefs.setCodecPriority("G726-16/8000/1", SipConfigManager.CODEC_WB, "0");
    prefs.setCodecPriority("G726-24/8000/1", SipConfigManager.CODEC_WB, "0");
    prefs.setCodecPriority("G726-32/8000/1", SipConfigManager.CODEC_WB, "0");
    prefs.setCodecPriority("G726-40/8000/1", SipConfigManager.CODEC_WB, "0");

    // codecs 3G: GSM, speex, (G729a - not possible license)
    prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_NB, "0");
    prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_NB, "0");
    prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_NB, "220");
    prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_NB, "0");
    prefs.setCodecPriority("iLBC/8000/1", SipConfigManager.CODEC_NB, "0");
    prefs.setCodecPriority("speex/8000/1", SipConfigManager.CODEC_NB, "230");
    prefs.setCodecPriority("speex/16000/1", SipConfigManager.CODEC_NB, "0");
    prefs.setCodecPriority("speex/32000/1", SipConfigManager.CODEC_NB, "0");
    prefs.setCodecPriority("GSM/8000/1", SipConfigManager.CODEC_NB, "240");
    prefs.setCodecPriority("SILK/8000/1", SipConfigManager.CODEC_NB, "0");
    prefs.setCodecPriority("SILK/12000/1", SipConfigManager.CODEC_NB, "0");
    prefs.setCodecPriority("SILK/16000/1", SipConfigManager.CODEC_NB, "0");
    prefs.setCodecPriority("SILK/24000/1", SipConfigManager.CODEC_NB, "0");
    prefs.setCodecPriority("G726-16/8000/1", SipConfigManager.CODEC_NB, "0");
    prefs.setCodecPriority("G726-24/8000/1", SipConfigManager.CODEC_NB, "0");
    prefs.setCodecPriority("G726-32/8000/1", SipConfigManager.CODEC_NB, "0");
    prefs.setCodecPriority("G726-40/8000/1", SipConfigManager.CODEC_NB, "0");
  }