private boolean isValidAddress(String userId, String serviceId) { if (userId == null || "".equals(userId) || serviceId == null || "".equals(serviceId)) { // System.out.println("Source/dest address NULL --> PDU discarded"); return false; } if (!Preference.isValidServiceId(serviceId)) { // System.out.println("Invalid dest address:" + serviceId // + " --> PDU discarded"); return false; } if (userId.startsWith("849") || userId.startsWith("+849") || userId.startsWith("09")) { return true; // TrungDK EVN -> UNKNOWN } else if ("UNKNOWN".equalsIgnoreCase(Preference.mobileOperator)) { return true; } else { // System.out.println("Invalid source address:" + userId + " --> PDU // discarded"); return true; } }