Due to how the quiescent behavior of conditional call forwarding rules
when CFU is active, do not allow the user to try and set conditional
rules. This will fail at the network level anyway.
if (strlen(number) > 0 && !valid_phone_number_format(number))
return __ofono_error_invalid_format(msg);
+ /*
+ * Don't set conditional cfs when cfu is active
+ */
+ if (type != CALL_FORWARDING_TYPE_UNCONDITIONAL &&
+ number[0] != '\0' && is_cfu_enabled(cf))
+ return __ofono_error_not_available(msg);
+
if (number[0] != '\0')
string_to_phone_number(number, &ph);