當前位置: 首頁>>代碼示例>>Java>>正文


Java PreferencesWrapper.setPreferenceStringValue方法代碼示例

本文整理匯總了Java中com.csipsimple.utils.PreferencesWrapper.setPreferenceStringValue方法的典型用法代碼示例。如果您正苦於以下問題:Java PreferencesWrapper.setPreferenceStringValue方法的具體用法?Java PreferencesWrapper.setPreferenceStringValue怎麽用?Java PreferencesWrapper.setPreferenceStringValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.csipsimple.utils.PreferencesWrapper的用法示例。


在下文中一共展示了PreferencesWrapper.setPreferenceStringValue方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: 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.setPreferenceStringValue(SipConfigManager.STUN_SERVER, "stun.voipplanet.nl:3478");
}
 
開發者ID:treasure-lau,項目名稱:CSipSimple,代碼行數:8,代碼來源:VoipPlanet.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);

       //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

示例4: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
	super.setDefaultParams(prefs);
	prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_DNS_SRV, true);
	prefs.setPreferenceStringValue(SipConfigManager.KEEP_ALIVE_INTERVAL_MOBILE, "60");
	prefs.setPreferenceStringValue(SipConfigManager.KEEP_ALIVE_INTERVAL_WIFI, "60");
}
 
開發者ID:treasure-lau,項目名稱:CSipSimple,代碼行數:8,代碼來源:Vanbergsystems.java

示例5: 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("stun01.sipphone.com");
	prefs.setPreferenceStringValue(SipConfigManager.DTMF_MODE, Integer.toString(SipConfigManager.DTMF_MODE_INBAND));
}
 
開發者ID:treasure-lau,項目名稱:CSipSimple,代碼行數:9,代碼來源:Gizmo5.java

示例6: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
	super.setDefaultParams(prefs);
	prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_TLS, true);
       prefs.setPreferenceStringValue(SipConfigManager.TLS_TRANSPORT_PORT, "5061");
       prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_QOS, true);
       prefs.setPreferenceBooleanValue(SipConfigManager.USE_COMPACT_FORM, true);
       prefs.setPreferenceBooleanValue(SipConfigManager.SUPPORT_MULTIPLE_CALLS, true);
       prefs.setPreferenceStringValue(SipConfigManager.TLS_METHOD, "31");
       prefs.setPreferenceStringValue("codec_g729_8000_fpp", "4");

       // Prefer silk, gsm
       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,"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, "240");
       prefs.setCodecPriority("SILK/8000/1", SipConfigManager.CODEC_WB, "245");
       prefs.setCodecPriority("SILK/12000/1", SipConfigManager.CODEC_WB, "230");
       prefs.setCodecPriority("SILK/16000/1", SipConfigManager.CODEC_WB, "0");
       prefs.setCodecPriority("SILK/24000/1", SipConfigManager.CODEC_WB, "0");

       // Prefer silk, gsm
       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("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, "240");
       prefs.setCodecPriority("SILK/8000/1", SipConfigManager.CODEC_NB, "245");
       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,代碼行數:40,代碼來源:TelAccess.java

示例7: setDefaultParams

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

       prefs.setPreferenceStringValue(SipConfigManager.KEEP_ALIVE_INTERVAL_MOBILE, "60");
       prefs.setPreferenceStringValue(SipConfigManager.KEEP_ALIVE_INTERVAL_WIFI, "60");

       // Only need to activate speex for NB over default settings (else rest should be fine)
       prefs.setCodecPriority("speex/8000/1", SipConfigManager.CODEC_NB, "245");
}
 
開發者ID:treasure-lau,項目名稱:CSipSimple,代碼行數:11,代碼來源:Fusion.java

示例8: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
	super.setDefaultParams(prefs);
	int transport = getIntValue(transportPref, SipProfile.TRANSPORT_UDP);
	if(transport == SipProfile.TRANSPORT_UDP || transport == SipProfile.TRANSPORT_AUTO) {
	    prefs.setPreferenceStringValue(SipConfigManager.UDP_TRANSPORT_PORT, "5060");
	}else if(transport == SipProfile.TRANSPORT_TCP) {
	    prefs.setPreferenceStringValue(SipConfigManager.TCP_TRANSPORT_PORT, "5060");
	}else if(transport == SipProfile.TRANSPORT_TLS) {
           prefs.setPreferenceStringValue(SipConfigManager.TLS_TRANSPORT_PORT, "5061");
       }
	
}
 
開發者ID:treasure-lau,項目名稱:CSipSimple,代碼行數:14,代碼來源:Local.java

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

示例10: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
	super.setDefaultParams(prefs);
	// NO restart needed for this setting
	prefs.setPreferenceStringValue(SipConfigManager.DTMF_MODE, Integer.toString(SipConfigManager.DTMF_MODE_RTP));
}
 
開發者ID:treasure-lau,項目名稱:CSipSimple,代碼行數:7,代碼來源:Catitel.java

示例11: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
	super.setDefaultParams(prefs);
	prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_STUN, true);
	prefs.setPreferenceStringValue(SipConfigManager.STUN_SERVER, "stun.wimobile.it");
}
 
開發者ID:treasure-lau,項目名稱:CSipSimple,代碼行數:7,代碼來源:WiMobile.java

示例12: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
	super.setDefaultParams(prefs);
	// NO restart needed for this setting
	prefs.setPreferenceStringValue(SipConfigManager.DTMF_MODE, Integer.toString(SipConfigManager.DTMF_MODE_INFO));
}
 
開發者ID:treasure-lau,項目名稱:CSipSimple,代碼行數:7,代碼來源:BGTel.java

示例13: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
    super.setDefaultParams(prefs);
    
    prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_ICE, true);
    prefs.setPreferenceBooleanValue(SipConfigManager.USE_COMPACT_FORM, true);
    prefs.setPreferenceBooleanValue(SipConfigManager.ECHO_CANCELLATION, true);
    prefs.setPreferenceStringValue(SipConfigManager.SND_CLOCK_RATE, "44100");
    
       prefs.setCodecPriority("PCMU/8000/1", SipConfigManager.CODEC_WB,"0");
       prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_WB,"240");
       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,"245");
       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, "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("PCMU/8000/1", SipConfigManager.CODEC_NB,"0");
       prefs.setCodecPriority("PCMA/8000/1", SipConfigManager.CODEC_NB,"240");
       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,"245");
       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, "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");
    
}
 
開發者ID:treasure-lau,項目名稱:CSipSimple,代碼行數:47,代碼來源:FringTalkTw.java

示例14: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
	super.setDefaultParams(prefs);
	prefs.setPreferenceBooleanValue(SipConfigManager.ENABLE_DNS_SRV, true);
	prefs.setPreferenceStringValue(SipConfigManager.OVERRIDE_NAMESERVER, "67.214.119.234");
}
 
開發者ID:treasure-lau,項目名稱:CSipSimple,代碼行數:7,代碼來源:BTone.java

示例15: setDefaultParams

import com.csipsimple.utils.PreferencesWrapper; //導入方法依賴的package包/類
@Override
public void setDefaultParams(PreferencesWrapper prefs) {
	super.setDefaultParams(prefs);
       prefs.setPreferenceStringValue(SipConfigManager.KEEP_ALIVE_INTERVAL_MOBILE, "20");
       prefs.setPreferenceStringValue(SipConfigManager.KEEP_ALIVE_INTERVAL_WIFI, "40");
}
 
開發者ID:treasure-lau,項目名稱:CSipSimple,代碼行數:7,代碼來源:GTel.java


注:本文中的com.csipsimple.utils.PreferencesWrapper.setPreferenceStringValue方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。