diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-09-23 23:26:41 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-09-23 23:53:41 -0500 |
commit | 1fc2216bfd315671c76397b1d926412806c109ce (patch) | |
tree | d5e9e194741fabfb44ee806d81fd3114da16c2a3 | |
parent | 6b10d14402bfa6ca87e67e848955070351780369 (diff) | |
download | ofono-1fc2216bfd315671c76397b1d926412806c109ce.tar.bz2 |
ifx: Don't bother using RING
We enable CRC=1, so only CRING should be sent
-rw-r--r-- | drivers/ifxmodem/voicecall.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/ifxmodem/voicecall.c b/drivers/ifxmodem/voicecall.c index e4dae901..2b27088b 100644 --- a/drivers/ifxmodem/voicecall.c +++ b/drivers/ifxmodem/voicecall.c @@ -640,34 +640,6 @@ error: CALLBACK_WITH_FAILURE(cb, data); } -static void ring_notify(GAtResult *result, gpointer user_data) -{ - struct ofono_voicecall *vc = user_data; - struct voicecall_data *vd = ofono_voicecall_get_data(vc); - struct ofono_call *call; - - /* See comment in CRING */ - if (g_slist_find_custom(vd->calls, GINT_TO_POINTER(5), - at_util_call_compare_by_status)) - return; - - /* RING can repeat, ignore if we already have an incoming call */ - if (g_slist_find_custom(vd->calls, GINT_TO_POINTER(4), - at_util_call_compare_by_status)) - return; - - /* Generate an incoming call of unknown type */ - call = create_call(vc, 9, 1, 4, NULL, 128, 2); - - if (!call) { - ofono_error("Couldn't create call, call management is fubar!"); - return; - } - - /* We don't know the call type, we must run clcc */ - vd->clcc_source = g_timeout_add(CLIP_INTERVAL, poll_clcc, vc); -} - static void cring_notify(GAtResult *result, gpointer user_data) { struct ofono_voicecall *vc = user_data; @@ -850,7 +822,6 @@ static void ifx_voicecall_initialized(gboolean ok, GAtResult *result, DBG("voicecall_init: registering to notifications"); - g_at_chat_register(vd->chat, "RING", ring_notify, FALSE, vc, NULL); g_at_chat_register(vd->chat, "+CRING:", cring_notify, FALSE, vc, NULL); g_at_chat_register(vd->chat, "+CLIP:", clip_notify, FALSE, vc, NULL); g_at_chat_register(vd->chat, "+CCWA:", ccwa_notify, FALSE, vc, NULL); |