aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Ham <bob.ham@puri.sm>2020-02-06 15:08:17 +0000
committerBob Ham <bob.ham@puri.sm>2020-02-06 15:16:30 +0000
commit2c9760af66454e492f601b9f12d3ad87de93765b (patch)
tree3ef1855e3671ac97f9798127b125b58188c6385a /src
parentb5d4f045d888e94831b06624a15130c0b181219b (diff)
iface-modem-voice: log details when ending call missing from call list
If a call is missing from the +CLCC call list and terminated because of that, add a debugging statement to log the call details.
Diffstat (limited to 'src')
-rw-r--r--src/mm-iface-modem-voice.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mm-iface-modem-voice.c b/src/mm-iface-modem-voice.c
index 494d0e2a..c5483c00 100644
--- a/src/mm-iface-modem-voice.c
+++ b/src/mm-iface-modem-voice.c
@@ -400,10 +400,12 @@ static void
report_all_calls_foreach (MMBaseCall *call,
ReportAllCallsForeachContext *ctx)
{
+ MMCallState state;
GList *l;
/* fully ignore already terminated calls */
- if (mm_base_call_get_state (call) == MM_CALL_STATE_TERMINATED)
+ state = mm_base_call_get_state (call);
+ if (state == MM_CALL_STATE_TERMINATED)
return;
/* Iterate over the call info list */
@@ -418,6 +420,13 @@ report_all_calls_foreach (MMBaseCall *call,
}
/* not found in list! this call is now terminated */
+ mm_dbg ("Call '%s' with direction %s, state %s, number '%s', index %u"
+ " not found in list, terminating",
+ mm_base_call_get_path (call),
+ mm_call_direction_get_string (mm_base_call_get_direction (call)),
+ mm_call_state_get_string (state),
+ mm_base_call_get_number (call),
+ mm_base_call_get_index (call));
mm_base_call_change_state (call, MM_CALL_STATE_TERMINATED, MM_CALL_STATE_REASON_UNKNOWN);
}