本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例9: buildAccount
@Override
public SipProfile buildAccount(SipProfile account) {
account = super.buildAccount(account);
account.proxies = null;
account.transport = SipProfile.TRANSPORT_UDP;
return account;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例15: buildAccount
@Override
public SipProfile buildAccount(SipProfile account) {
account = super.buildAccount(account);
account.transport = SipProfile.TRANSPORT_UDP;
return account;
}