本文整理汇总了Java中com.csipsimple.api.SipProfile.TRANSPORT_TLS属性的典型用法代码示例。如果您正苦于以下问题:Java SipProfile.TRANSPORT_TLS属性的具体用法?Java SipProfile.TRANSPORT_TLS怎么用?Java SipProfile.TRANSPORT_TLS使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.csipsimple.api.SipProfile
的用法示例。
在下文中一共展示了SipProfile.TRANSPORT_TLS属性的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildAccount
public SipProfile buildAccount(SipProfile account) {
account = super.buildAccount(account);
String domain = getDomain();
String[] domainPart = domain.split(":");
boolean shouldAddPort = true;
if (domainPart.length > 1) {
// If latest part is digit we should not add port
shouldAddPort = !Pattern.matches("^[0-9]+$", domainPart[1]);
}
if (shouldAddPort) {
domain = domain + ":5061";
}
account.acc_id = "<sips:" + SipUri.encodeUser(accountUsername.getText().trim()) + "@"+domainPart[0].trim()+">";
account.reg_uri = "sips:" + domain;
account.proxies = new String[] {
"sips:" + domain + ";hide"
};
account.transport = SipProfile.TRANSPORT_TLS;
account.use_zrtp = 1;
account.vm_nbr = "*98";
return account;
}
示例2: buildAccount
public SipProfile buildAccount(SipProfile account) {
account = super.buildAccount(account);
String domain = getDomain();
String[] domainPart = domain.split(":");
boolean shouldAddPort = true;
if (domainPart.length > 1) {
// If latest part is digit we should not add port
shouldAddPort = !Pattern.matches("^[0-9]+$", domainPart[1]);
}
if (shouldAddPort) {
domain = domain + ":5061";
}
account.proxies = new String[] {
"sips:" + domain
};
account.transport = SipProfile.TRANSPORT_TLS;
account.use_zrtp = 1;
account.vm_nbr = "*98";
return account;
}
示例3: buildAccount
public SipProfile buildAccount(SipProfile account) {
account = super.buildAccount(account);
// Shall be sips: ?
String pTxt = accountProxy.getText();
if(!pTxt.contains(".050plus.com")) {
pTxt += ".050plus.com";
}
String sipServerUri = "sip:" + pTxt + ":5061";
account.reg_uri = sipServerUri;
account.proxies = new String[] {sipServerUri};
account.reg_timeout = 3600;
account.mwi_enabled = false;
account.allow_contact_rewrite = false;
account.publish_enabled = 0;
account.try_clean_registers = 0;
account.use_srtp = 2;
account.transport = SipProfile.TRANSPORT_TLS;
return account;
}
示例4: buildAccount
@Override
public SipProfile buildAccount(SipProfile account) {
account = super.buildAccount(account);
//Ensure registration timeout value
account.transport = SipProfile.TRANSPORT_TLS;
return account;
}
示例5: buildAccount
public SipProfile buildAccount(SipProfile account) {
account = super.buildAccount(account);
String domain = getDomain();
account.proxies = new String[] {
"sips:" + domain
};
account.transport = SipProfile.TRANSPORT_TLS;
account.use_srtp = 2; /*Mandatory*/
return account;
}
示例6: buildAccount
public SipProfile buildAccount(SipProfile account) {
account = super.buildAccount(account);
String server_uri = "sips:" + getDomain() + ":5061";
account.reg_uri = server_uri;
account.proxies = new String[] { server_uri };
account.transport = SipProfile.TRANSPORT_TLS;
account.reg_timeout = 900;
account.default_uri_scheme = "sips";
account.use_srtp = 0;
return account;
}
示例7: buildAccount
public SipProfile buildAccount(SipProfile account) {
account = super.buildAccount(account);
account.transport = SipProfile.TRANSPORT_TLS;
account.reg_uri = "sip:telakses1.dyndns.org:5061";
account.proxies = new String[] {"sip:telakses1.dyndns.org:5061"};
account.reg_timeout = 120;
account.use_zrtp = 0;
account.use_srtp = 2;
account.try_clean_registers = 1;
account.rtp_enable_qos = 1;
account.rtp_port = 10000;
return account;
}
示例8: buildAccount
public SipProfile buildAccount(SipProfile account) {
account = super.buildAccount(account);
account.transport = SipProfile.TRANSPORT_TLS;
account.use_zrtp = 1;
account.proxies = new String[] {
"sips:" + getDomain() + ":5061"
};
return account;
}
示例9: setDefaultParams
@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");
}
}
示例10: buildAccount
@Override
public SipProfile buildAccount(SipProfile account) {
SipProfile acc = super.buildAccount(account);
acc.use_zrtp = 1;
acc.transport = SipProfile.TRANSPORT_TLS;
return acc;
}
示例11: buildAccount
public SipProfile buildAccount(SipProfile account) {
account = super.buildAccount(account);
String[] emailParts = getText(accountUsername).trim().split("@");
account.acc_id = "<sip:" + getText(accountUsername).trim() + ">";
if (emailParts.length == 2) {
account.username = emailParts[0];
account.realm = emailParts[1];
}
else {
account.username = "invalid username";
account.realm = "invalid realm";
}
account.data = getText(accountPassword);
account.transport = SipProfile.TRANSPORT_TLS;
account.reg_uri = "sips:inovent.bg";
account.proxies = new String[] {
"sips:inovent.bg:5061"
};
account.reg_timeout = 900;
account.use_zrtp = 0;
account.use_srtp = 2;
account.try_clean_registers = 1;
account.rtp_enable_qos = 0;
account.rtp_port = -1;
account.sip_stun_use = 0;
account.turn_cfg_use = 0;
// TODO : r3gis : should we set
// account.default_uri_scheme ?
return account;
}
示例12: buildAccount
public SipProfile buildAccount(SipProfile account) {
account = super.buildAccount(account);
String domain = getDomain();
String scheme = "sips";
// For TLS
account.reg_uri = scheme +":" + domain;
account.transport = SipProfile.TRANSPORT_TLS;
account.vm_nbr = "1000";
// For ipv6 -- future use... not yet a button two switch (and anyway will not be done this way as we should autodetect)
account.proxies = new String[] {
scheme + ":" + (useIpv6() ? "[2001:470:9ff3::1]" : "csipsimple.mobile-wi.fi")
};
if(useIpv6()) {
account.sip_stun_use = 0;
account.media_stun_use = 0;
account.ice_cfg_enable = 1;
account.ice_cfg_use = 0;
} else {
account.sip_stun_use = -1;
account.media_stun_use = -1;
account.ice_cfg_enable = 0;
}
return account;
}
示例13: buildAccount
public SipProfile buildAccount(SipProfile account) {
account = super.buildAccount(account);
account.transport = SipProfile.TRANSPORT_TLS;
account.use_zrtp = 1;
return account;
}
示例14: buildAccount
public SipProfile buildAccount(SipProfile account) {
account = super.buildAccount(account);
account.transport = SipProfile.TRANSPORT_TLS;
account.use_zrtp = 1;
return account;
}