@Override public SipProfile buildAccount(SipProfile account) { SipProfile acc = super.buildAccount(account); String domain = "t-online.de"; account.acc_id = "<sip:" + SipUri.encodeUser(accountUsername.getText().trim()) + "@" + domain + ">"; acc.username = getText(accountAuthorization).trim() + "@" + domain; return acc; }
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[] {"sip:" + accountProxy.getText()}; 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; }