public void registerMore() { IpAddress.setLocalIpAddress(); int i = 0; for (RegisterAgent ra : ras) { try { if (user_profiles[i] == null || user_profiles[i].username.equals("") || user_profiles[i].realm.equals("")) { i++; continue; } user_profiles[i].contact_url = getContactURL(user_profiles[i].from_url, sip_providers[i]); if (ra != null && !ra.isRegistered() && Receiver.isFast(i) && ra.register()) { Receiver.onText( Receiver.REGISTER_NOTIFICATION + i, getUIContext().getString(R.string.reg), R.drawable.sym_presence_idle, 0); wl[i].acquire(); } } catch (Exception ex) { } i++; } }
public boolean isRegistered() { for (RegisterAgent ra : ras) if (ra != null && ra.isRegistered()) return true; return false; }