当前位置: 首页>>代码示例>>Java>>正文


Java PreferencesWrapper.addStunServer方法代码示例

本文整理汇总了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);
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:19,代码来源:Betamax.java

示例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");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:9,代码来源:Aaisp.java

示例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");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:ReachPhones.java

示例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");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:11,代码来源:CallRomania.java

示例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");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:28,代码来源:Telopar.java

示例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");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:Pfingo.java

示例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");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:Cellip.java

示例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");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:ClickPhone.java

示例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);
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:9,代码来源:Ip2Mobile.java

示例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);
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:9,代码来源:Sipkom.java

示例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");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:37,代码来源:Spirit.java

示例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");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:Ekiga.java

示例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");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:DeltaTelecom.java

示例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");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:9,代码来源:VoipBel.java

示例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);
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:7,代码来源:CardTel.java


注:本文中的com.csipsimple.utils.PreferencesWrapper.addStunServer方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。