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


Java SipProfile.TRANSPORT_UDP属性代码示例

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


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

示例1: buildAccount

public SipProfile buildAccount(SipProfile account) {
	account = super.buildAccount(account);
	account.proxies = new String[] {"sip:voice.telphin.com:5068"};
	account.reg_uri = "sip:sip.telphin.com";
	account.realm = "sip.telphin.com";
	account.reg_timeout = 60;
	account.sip_stun_use = 0;
	account.media_stun_use = 0;
	account.try_clean_registers = 1;
	account.allow_contact_rewrite = false;
	account.publish_enabled = 0;
	account.mwi_enabled = false;
	account.transport = SipProfile.TRANSPORT_UDP;
	
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:16,代码来源:Telphin.java

示例2: buildAccount

public SipProfile buildAccount(SipProfile account) {
	account.display_name = accountDisplayName.getText();
	account.acc_id = "<sip:" + SipUri.encodeUser(accountUsername.getText().trim()) + "@" + getDomain() + ">";
	
	String regUri = "sip:" + getDomain();
	account.reg_uri = regUri;
	account.proxies = new String[] { regUri } ;

	account.realm = "*";
	account.username = getText(accountAuthorization).trim();
	account.data = getText(accountPassword);
	account.scheme = SipProfile.CRED_SCHEME_DIGEST;
	account.datatype = SipProfile.CRED_DATA_PLAIN_PASSWD;
	account.reg_timeout = 1800;
	account.transport = SipProfile.TRANSPORT_UDP;
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:17,代码来源:AuthorizationImplementation.java

示例3: buildAccount

public SipProfile buildAccount(SipProfile account) {
	Log.d(THIS_FILE, "begin of save ....");
	account.display_name = accountDisplayName.getText().trim();
	
	String[] serverParts = accountServer.getText().split(":");
	account.acc_id = "<sip:" + SipUri.encodeUser(accountUserName.getText().trim()) + "@"+serverParts[0].trim()+">";
	
	String regUri = "sip:" + accountServer.getText();
	account.reg_uri = regUri;
	account.proxies = new String[] { regUri } ;


	account.realm = "*";
	account.username = getText(accountUserName).trim();
	account.data = getText(accountPassword);
	account.scheme = SipProfile.CRED_SCHEME_DIGEST;
	account.datatype = SipProfile.CRED_DATA_PLAIN_PASSWD;
	//By default auto transport
	account.transport = SipProfile.TRANSPORT_UDP;
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:21,代码来源:Basic.java

示例4: buildAccount

public SipProfile buildAccount(SipProfile account) {
	account = super.buildAccount(account);
	
       account.acc_id = accountCallerId.getText().trim() + 
           " <sip:" + SipUri.encodeUser(accountUserName.getText().trim()) + "@" + getDomain() + ">";
	
	String regUri = "sip:" + getDomain();
	account.reg_uri = regUri;
	account.proxies = new String[]{regUri};
	account.transport = SipProfile.TRANSPORT_UDP;
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:12,代码来源:VoipLlama.java

示例5: buildAccount

public SipProfile buildAccount(SipProfile account) {
	account = super.buildAccount(account);
	//Ensure registration timeout value
	account.reg_timeout = 1800;
	account.proxies = null;
	account.transport = SipProfile.TRANSPORT_UDP;
	account.vm_nbr = "**1";
	account.mwi_enabled = false;
	account.ice_cfg_use = 1;
	account.ice_cfg_enable = 0;
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:12,代码来源:Freephonie.java

示例6: buildAccount

public SipProfile buildAccount(SipProfile account) {
	account = super.buildAccount(account);
	account.transport = SipProfile.TRANSPORT_UDP;
	account.allow_contact_rewrite = false;
	account.allow_via_rewrite = false;
       account.sip_stun_use = 0;
       account.media_stun_use = 0;
       account.ice_cfg_enable = 1;
       account.ice_cfg_use = 0;
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:11,代码来源:SipWise.java

示例7: buildAccount

public SipProfile buildAccount(SipProfile account) {
	account = super.buildAccount(account);
	//Ensure registration timeout value
	account.reg_timeout = 1800;
	account.proxies = null;
	account.transport = SipProfile.TRANSPORT_UDP;
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:8,代码来源:Scarlet.java

示例8: buildAccount

/**
    * Basic implementation of the account building based on simple implementation fields.
    * A specification of this class could extend and add its own post processing here.
    * 
    * {@inheritDoc}
 */
public SipProfile buildAccount(SipProfile account) {
	account.display_name = accountDisplayName.getText().trim();
	account.acc_id = "<sip:"
			+ SipUri.encodeUser(accountUsername.getText().trim()) + "@"+getDomain()+">";
	
	String regUri = "sip:"+getDomain();
	account.reg_uri = regUri;
	account.proxies = new String[] { regUri } ;

	
	account.realm = "*";
	account.username = getText(accountUsername).trim();
	account.data = getText(accountPassword);
	account.scheme = SipProfile.CRED_SCHEME_DIGEST;
	account.datatype = SipProfile.CRED_DATA_PLAIN_PASSWD;

	account.reg_timeout = 1800;
	
	if(canTcp()) {
		account.transport = accountUseTcp.isChecked() ? SipProfile.TRANSPORT_TCP : SipProfile.TRANSPORT_UDP;
	}else {
		account.transport = SipProfile.TRANSPORT_UDP;
	}
	
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:32,代码来源:SimpleImplementation.java

示例9: buildAccount

@Override
public SipProfile buildAccount(SipProfile account) {
	account =  super.buildAccount(account);
	account.proxies = null;
	account.transport = SipProfile.TRANSPORT_UDP;
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:7,代码来源:DeltaThree.java

示例10: buildAccount

public SipProfile buildAccount(SipProfile account) {
    account = super.buildAccount(account);
    account.proxies = new String[] {"sip:farm2.tel2.congstar.qsc.de"};
    account.reg_uri = "sip:tel2.congstar.de";
    account.transport = SipProfile.TRANSPORT_UDP;
    String uname = SipUri.encodeUser(accountUsername.getText().trim());
    account.acc_id = uname + " <sip:" + uname + "@" + getDomain() + ">";
    return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:9,代码来源:CongstarQSC.java

示例11: buildAccount

@Override
public SipProfile buildAccount(SipProfile account) {
	account =  super.buildAccount(account);
	account.transport = SipProfile.TRANSPORT_UDP;
	String fourDigits = accountUsername.getText().substring(0, 4);
	String regUri = "sip:voip-ca" + fourDigits + ".ocn.ne.jp";
       account.reg_uri = regUri;
       account.proxies = new String[] { regUri };
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:10,代码来源:Ocn.java

示例12: buildAccount

public SipProfile buildAccount(SipProfile account) {
	account = super.buildAccount(account);
	//Ensure registration timeout value
	account.transport = SipProfile.TRANSPORT_UDP;
	account.proxies = new String[] {"sip:proxy11.yes.my"};
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:7,代码来源:YesMy.java

示例13: buildAccount

public SipProfile buildAccount(SipProfile account) {
	account = super.buildAccount(account);
	account.proxies = null;
	account.transport = SipProfile.TRANSPORT_UDP;
	account.publish_enabled = 1;
	account.media_stun_use =0;
       account.sip_stun_use =0;
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:9,代码来源:GTel.java

示例14: buildAccount

@Override
public SipProfile buildAccount(SipProfile account) {
    SipProfile acc = super.buildAccount(account);
    acc.proxies = new String[] {};
    acc.reg_uri = "sip:212.51.55.6";
    acc.transport = SipProfile.TRANSPORT_UDP;
    acc.reg_timeout = 3600;
    return acc;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:9,代码来源:MundoR.java

示例15: buildAccount

@Override
public SipProfile buildAccount(SipProfile account) {
	account =  super.buildAccount(account);
	account.transport = SipProfile.TRANSPORT_UDP;
	return account;
}
 
开发者ID:treasure-lau,项目名称:CSipSimple,代码行数:6,代码来源:Vegatel.java


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