aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-voice.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2018-06-15 00:04:15 +0200
committerDan Williams <dcbw@redhat.com>2018-10-16 17:09:21 +0000
commitfc0feee65481f7edf1118e8dd74a5352901f677f (patch)
tree6da08a5018f26f725f852240c64a6aa7aedd8640 /src/mm-iface-modem-voice.c
parentf71e120fb7e120c615e83a3803f20a0bd69b659e (diff)
huawei,call: handle in-call URCs in the call object itself
Instead of handling the URCs in the modem object and using the MMIfaceModem as a bridge to report the status read from the URC to a call obtained from the MMCallList... just handle the URCs in the call object itself.
Diffstat (limited to 'src/mm-iface-modem-voice.c')
-rw-r--r--src/mm-iface-modem-voice.c93
1 files changed, 0 insertions, 93 deletions
diff --git a/src/mm-iface-modem-voice.c b/src/mm-iface-modem-voice.c
index 9cab1cdd..de7ead98 100644
--- a/src/mm-iface-modem-voice.c
+++ b/src/mm-iface-modem-voice.c
@@ -123,99 +123,6 @@ mm_iface_modem_voice_update_incoming_call_number (MMIfaceModemVoice *self,
return updated;
}
-gboolean
-mm_iface_modem_voice_call_dialing_to_ringing (MMIfaceModemVoice *self)
-{
- gboolean updated = FALSE;
- MMBaseCall *call = NULL;
- MMCallList *list = NULL;
-
- g_object_get (MM_BASE_MODEM (self),
- MM_IFACE_MODEM_VOICE_CALL_LIST, &list,
- NULL);
-
- if (list) {
- call = mm_call_list_get_first_outgoing_dialing_call (list);
-
- if (call) {
- mm_base_call_change_state (call, MM_CALL_STATE_RINGING_OUT, MM_CALL_STATE_REASON_OUTGOING_STARTED);
- updated = TRUE;
- } else {
- mm_dbg ("Outgoing dialing call does not exist");
- }
- }
-
- return updated;
-}
-
-gboolean
-mm_iface_modem_voice_call_ringing_to_active (MMIfaceModemVoice *self)
-{
- gboolean updated = FALSE;
- MMBaseCall *call = NULL;
- MMCallList *list = NULL;
-
- g_object_get (MM_BASE_MODEM (self),
- MM_IFACE_MODEM_VOICE_CALL_LIST, &list,
- NULL);
-
- if (list) {
- call = mm_call_list_get_first_ringing_out_call (list);
-
- if (call) {
- mm_base_call_change_state (call, MM_CALL_STATE_ACTIVE, MM_CALL_STATE_REASON_ACCEPTED);
- updated = TRUE;
- } else {
- mm_dbg ("Ringing call does not exist");
- }
- }
-
- return updated;
-}
-
-gboolean
-mm_iface_modem_voice_network_hangup (MMIfaceModemVoice *self)
-{
- gboolean updated = FALSE;
- MMBaseCall *call = NULL;
- MMCallList *list = NULL;
-
- g_object_get (MM_BASE_MODEM (self),
- MM_IFACE_MODEM_VOICE_CALL_LIST, &list,
- NULL);
-
- if (list) {
- call = mm_call_list_get_first_non_terminated_call (list);
-
- if (call) {
- mm_base_call_change_state (call, MM_CALL_STATE_TERMINATED, MM_CALL_STATE_REASON_TERMINATED);
- updated = TRUE;
- } else {
- mm_dbg ("No call to hangup");
- }
- }
-
- return updated;
-}
-
-gboolean
-mm_iface_modem_voice_received_dtmf (MMIfaceModemVoice *self,
- gchar *dtmf)
-{
- gboolean updated = FALSE;
- MMCallList *list = NULL;
-
- g_object_get (MM_BASE_MODEM (self),
- MM_IFACE_MODEM_VOICE_CALL_LIST, &list,
- NULL);
-
- if (list) {
- updated = mm_call_list_send_dtmf_to_active_calls (list, dtmf);
- }
-
- return updated;
-}
-
/*****************************************************************************/
typedef struct {