本文整理匯總了Java中com.csipsimple.utils.PreferencesWrapper.addStunServer方法的典型用法代碼示例。如果您正苦於以下問題:Java PreferencesWrapper.addStunServer方法的具體用法?Java PreferencesWrapper.addStunServer怎麽用?Java PreferencesWrapper.addStunServer使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.csipsimple.utils.PreferencesWrapper
的用法示例。
在下文中一共展示了PreferencesWrapper.addStunServer方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
/**
* {@inheritDoc}
*/
@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);
}
示例2: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
// Add stun server
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.addStunServer("stun.aa.net.uk");
}
示例3: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_DNS_SRV, true);
prefs.addStunServer("stun.telopar.net");
}
示例4: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_ICE, true);
prefs.setPreferenceBooleanValue(SipConfigManager.USE_COMPACT_FORM, true);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_DNS_SRV, true);
prefs.addStunServer("stun.callromania.ro");
}
示例5: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_DNS_SRV, true);
// Add stun server
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
for (String bandwidth : new String[] {
SipConfigManager.CODEC_WB, SipConfigManager.CODEC_NB
}) {
prefs.setCodecPriority("PCMU/8000/1", bandwidth, "0");
prefs.setCodecPriority("PCMA/8000/1", bandwidth, "0");
prefs.setCodecPriority("G722/16000/1", bandwidth, "0");
prefs.setCodecPriority("iLBC/8000/1", bandwidth, "0");
prefs.setCodecPriority("speex/8000/1", bandwidth, "0");
prefs.setCodecPriority("speex/16000/1", bandwidth, "0");
prefs.setCodecPriority("speex/32000/1", bandwidth, "0");
prefs.setCodecPriority("SILK/8000/1", bandwidth, "0");
prefs.setCodecPriority("SILK/12000/1", bandwidth, "0");
prefs.setCodecPriority("SILK/16000/1", bandwidth, "0");
prefs.setCodecPriority("SILK/24000/1", bandwidth, "0");
prefs.setCodecPriority("GSM/8000/1", bandwidth, "240");
}
prefs.addStunServer("stun.telopar.net");
}
示例6: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
// Add stun server
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.addStunServer("stun.pfingo.com");
}
示例7: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
// Add stun server
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.addStunServer("stun.mysecretary.net");
}
示例8: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
// Add stun server
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.addStunServer("stun.clickphone.ro");
}
示例9: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
// Add stun server
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.addStunServer("stun.sip2mobile.dk");
prefs.setPreferenceBooleanValue(SipConfigManager.USE_COMPACT_FORM, true);
}
示例10: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
// Add stun server
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.addStunServer("stun.sipkom.com");
prefs.setPreferenceBooleanValue(SipConfigManager.USE_COMPACT_FORM, true);
}
示例11: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
// Add stun server
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.addStunServer("209.205.85.130");
// Prefer pcmu/pcma/g729 -- g729 not set as not legal
prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB,"230");
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,"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");
// Prefer pcmu/pcma/g729 -- g729 not set as not legal
prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_NB,"230");
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,"0");
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, "0");
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");
}
示例12: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
// Add stun server
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.addStunServer("stun.counterpath.com");
}
示例13: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.addStunServer("stun.skylink.ru");
}
示例14: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
// Add stun server
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
prefs.addStunServer("stun.voipbel.nl");
}
示例15: setDefaultParams
import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
super.setDefaultParams(prefs);
prefs.addStunServer("stun.sipcel.com");
prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
}