mirror of git://git.sysmocom.de/ofono
stemodem: Return immediately if not voice call.
This commit is contained in:
parent
84e942ace3
commit
1fe79aa8a5
|
@ -431,6 +431,9 @@ static void ecav_notify(GAtResult *result, gpointer user_data)
|
|||
if (!g_at_result_iter_next_number(&iter, &call_type))
|
||||
return;
|
||||
|
||||
if (call_type != BEARER_CLASS_VOICE)
|
||||
return;
|
||||
|
||||
/* Skip process id and exit cause */
|
||||
g_at_result_iter_skip_next(&iter);
|
||||
g_at_result_iter_skip_next(&iter);
|
||||
|
@ -452,9 +455,6 @@ static void ecav_notify(GAtResult *result, gpointer user_data)
|
|||
return;
|
||||
}
|
||||
|
||||
if (call_type != BEARER_CLASS_VOICE)
|
||||
return;
|
||||
|
||||
/*
|
||||
* Handle the call according to the status.
|
||||
* If it doesn't exists we make a new one
|
||||
|
|
Loading…
Reference in New Issue