Some phones report CLCC calls with out-of-range info. E.g. call index
being 0 (it is 1 based according to 27.007) and call states being
reported as '6' (valid call states are 0-5.)
if (!g_at_result_iter_next_number(&iter, &id))
continue;
+ if (id == 0)
+ continue;
+
if (!g_at_result_iter_next_number(&iter, &dir))
continue;
if (!g_at_result_iter_next_number(&iter, &status))
continue;
+ if (status > 5)
+ continue;
+
if (!g_at_result_iter_next_number(&iter, &type))
continue;