Exemplo n.º 1
0
  @Override
  public void setDefaultParams(PreferencesWrapper prefs) {
    super.setDefaultParams(prefs);

    prefs.setCodecPriority("g729/8000/1", SipConfigManager.CODEC_NB, "240");
    prefs.setCodecPriority("g729/8000/1", SipConfigManager.CODEC_WB, "240");
  }
Exemplo n.º 2
0
  @Override
  public void setDefaultParams(PreferencesWrapper prefs) {
    super.setDefaultParams(prefs);

    // Prefer GSM、PCMU、PCMA、ILBC
    prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB, "240");
    prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_WB, "239");
    prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_WB, "0");
    prefs.setCodecPriority("iLBC/8000/1", SipConfigManager.CODEC_WB, "235");
    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, "245");
    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("PCMU/8000/1", SipConfigManager.CODEC_NB, "240");
    prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_NB, "239");
    prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_NB, "0");
    prefs.setCodecPriority("iLBC/8000/1", SipConfigManager.CODEC_NB, "235");
    prefs.setCodecPriority("speex/8000/1", SipConfigManager.CODEC_NB, "0");
    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, "245");
    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");
  }
Exemplo n.º 3
0
 @Override
 public void setDefaultParams(PreferencesWrapper prefs) {
   super.setDefaultParams(prefs);
   prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_DNS_SRV, true);
 }
Exemplo n.º 4
0
 @Override
 public void setDefaultParams(PreferencesWrapper prefs) {
   super.setDefaultParams(prefs);
   prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
   prefs.addStunServer("stun.t-online.de");
 }