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


Java PreferencesWrapper.setCodecPriority方法代码示例

本文整理汇总了Java中com.csipsimple.utils.PreferencesWrapper.setCodecPriority方法的典型用法代码示例。如果您正苦于以下问题:Java PreferencesWrapper.setCodecPriority方法的具体用法?Java PreferencesWrapper.setCodecPriority怎么用?Java PreferencesWrapper.setCodecPriority使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.csipsimple.utils.PreferencesWrapper的用法示例。


在下文中一共展示了PreferencesWrapper.setCodecPriority方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@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");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:GatherCall.java

示例2: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
    super.setDefaultParams(prefs);
       prefs.setPreferenceStringValue(SipConfigManager.UDP_TRANSPORT_PORT, "6000");
       prefs.setPreferenceStringValue(SipConfigManager.DTMF_MODE, Integer.toString(SipConfigManager.DTMF_MODE_RTP));
       

       // Prefer pcmu/pcma
       prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB,"239");
       prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_WB,"230");
       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
       prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_NB,"239");
       prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_NB,"230");
       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,代码行数:36,代码来源:Telphin.java

示例3: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@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");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:32,代码来源:Skytel.java

示例4: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
	super.setDefaultParams(prefs);
       // Prefer g729 (not possible due to license), and keep g711 fallback
       prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB,"240");
       prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_WB,"239");
       prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_WB, "0");
       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 silk, g729 (not possible due to license), and keep g711 fallback
       prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_NB,"240");
       prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_NB,"239");
       prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_NB, "0");
       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,代码行数:34,代码来源:VoipNor.java

示例5: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
	super.setDefaultParams(prefs);

       // Only speex (I force keep pcma if any other sip account)
       prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB,"0");
       prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_WB,"230");
       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,"239");
       prefs.setCodecPriority("speex/16000/1", SipConfigManager.CODEC_WB,"240");
       prefs.setCodecPriority("speex/32000/1", SipConfigManager.CODEC_WB,"244");
       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");

       // Only speex (I force keep pcma if any other sip account)
       prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_NB,"0");
       prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_NB,"230");
       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,"244");
       prefs.setCodecPriority("speex/16000/1", SipConfigManager.CODEC_NB,"240");
       prefs.setCodecPriority("speex/32000/1", SipConfigManager.CODEC_NB,"239");
       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,代码行数:33,代码来源:Hibritel.java

示例6: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
    super.setDefaultParams(prefs);

    prefs.setCodecPriority("speex/8000/1", SipConfigManager.CODEC_NB, "245");
    prefs.setCodecPriority("GSM/8000/1", SipConfigManager.CODEC_NB, "244");
    prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_NB, "243");
    prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_NB, "242");

    prefs.setCodecPriority("speex/16000/1", SipConfigManager.CODEC_WB, "245");
    prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_WB, "243");
    prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB, "242");
    prefs.setCodecPriority("GSM/8000/1", SipConfigManager.CODEC_WB, "241");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:15,代码来源:Speakezi.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("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

示例8: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
	super.setDefaultParams(prefs);
	
	prefs.setPreferenceBooleanValue(SipConfigManager.ECHO_CANCELLATION, true);
	prefs.setPreferenceBooleanValue(SipConfigManager.USE_COMPACT_FORM, true);
       prefs.setPreferenceBooleanValue(SipConfigManager.SUPPORT_MULTIPLE_CALLS, true);
       prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_QOS, true);
       prefs.setPreferenceStringValue(SipConfigManager.SND_CLOCK_RATE, "8000");
	prefs.setPreferenceStringValue(SipConfigManager.DTMF_MODE, Integer.toString(SipConfigManager.DTMF_MODE_AUTO));

       prefs.setPreferenceStringValue(SipConfigManager.KEEP_ALIVE_INTERVAL_MOBILE, "800");
       prefs.setPreferenceStringValue(SipConfigManager.KEEP_ALIVE_INTERVAL_WIFI, "1200");
       prefs.setPreferenceStringValue(SipConfigManager.TCP_KEEP_ALIVE_INTERVAL_MOBILE, "800");
       prefs.setPreferenceStringValue(SipConfigManager.TCP_KEEP_ALIVE_INTERVAL_WIFI, "1200");

	//For Wifi: Speex 32Khz, speex 16, g729, gsm.
	prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_WB,"242");
	prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB,"100");
	prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_WB,"0");
	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,"243");
	prefs.setCodecPriority("speex/32000/1", SipConfigManager.CODEC_WB,"244");
	prefs.setCodecPriority("GSM/8000/1", SipConfigManager.CODEC_WB, "241");
	
	//For 3G: G729, GSM 8Khz, Ilbc 8Khz, speex 8Khz.
	prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_NB,"244");
	prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_NB,"100");
	prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_NB,"0");
	prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_NB,"0");
	prefs.setCodecPriority("iLBC/8000/1", SipConfigManager.CODEC_NB,"242");
	prefs.setCodecPriority("speex/8000/1", SipConfigManager.CODEC_NB,"241");
	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, "243");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:39,代码来源:SipCel.java

示例9: 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

示例10: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
    super.setDefaultParams(prefs);

       //Only G711a/u and g722 on WB
       prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB,"0");
       prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_WB,"244");
       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");
       
       //On NB set for gsm high priority
       prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_NB,"0");
       prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_NB,"244");
       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.setPreferenceStringValue(SipConfigManager.USER_AGENT, "ZON ZON Phone 1.0.0 (1); ANDROIDv2.3.6; i9000");
    
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:28,代码来源:ZonPt.java

示例11: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
    super.setDefaultParams(prefs);

    // Prefer pcmu/pcma
    prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB, "239");
    prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_WB, "230");
    prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_WB, "220");
    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
    prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_NB, "239");
    prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_NB, "230");
    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,代码行数:33,代码来源:Brvoz.java

示例12: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@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");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:Ingetel.java

示例13: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
    super.setDefaultParams(prefs);

    //Only G711a/u and g722 on WB
    prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB,"0");
    prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_WB,"0");
    prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_WB,"235");
    prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_WB,"245");
    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, "242");
    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, "244");
    prefs.setCodecPriority("G726-16/8000/1", SipConfigManager.CODEC_WB, "236");
    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, "200");
    
    //On NB set for gsm high priority
    prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_NB,"0");
    prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_NB,"0");
    prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_NB,"0");
    prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_NB,"245");
    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, "244");
    prefs.setCodecPriority("SILK/12000/1", SipConfigManager.CODEC_NB, "239");
    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, "236");
    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, "200");
    
    prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_TLS, true);
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:45,代码来源:Cryptel.java

示例14: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
	super.setDefaultParams(prefs);

       // G.711a/u, G.729, G723.1, GSM
       prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB,"210");
       prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_WB,"200");
       prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_WB,"0");
       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, "190");
       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");
       prefs.setCodecPriority("opus/48000/1", SipConfigManager.CODEC_WB, "0");
       
       // G.711a/u, G.729, G723.1, GSM
       prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_NB,"210");
       prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_NB,"200");
       prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_NB,"0");
       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,"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, "230");
       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");
       prefs.setCodecPriority("opus/48000/1", SipConfigManager.CODEC_NB, "0");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:45,代码来源:MegafonBg.java

示例15: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //导入方法依赖的package包/类
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
	super.setDefaultParams(prefs);

       prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB,"210");
       prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_WB,"220");
       prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_WB,"0");
       prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_WB,"0");
       prefs.setCodecPriority("iLBC/8000/1", SipConfigManager.CODEC_WB,"200");
       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");
       prefs.setCodecPriority("opus/48000/1", SipConfigManager.CODEC_WB, "0");
       
       prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_NB,"200");
       prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_NB,"210");
       prefs.setCodecPriority("G722/16000/1", SipConfigManager.CODEC_NB,"0");
       prefs.setCodecPriority("G729/8000/1", SipConfigManager.CODEC_NB,"0");
       prefs.setCodecPriority("iLBC/8000/1", SipConfigManager.CODEC_NB,"220");
       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");
       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");
       prefs.setCodecPriority("opus/48000/1", SipConfigManager.CODEC_NB, "0");
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:43,代码来源:BgCall.java


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