diff options
author | Marco Bascetta <marco.bascetta@sadel.it> | 2015-05-08 13:55:37 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2015-08-02 10:39:47 +0200 |
commit | 915e0e74222573f30cec73ba34e32fe5f1dbced1 (patch) | |
tree | 49ea08c0ddf9f41902aa1b090cedb69c3f512bc8 | |
parent | 4a13bc8fec66efc6f74055c4778e569cf830ac5b (diff) |
huawei: signal incoming DTMF to DBus
-rw-r--r-- | plugins/huawei/mm-broadband-modem-huawei.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/huawei/mm-broadband-modem-huawei.c b/plugins/huawei/mm-broadband-modem-huawei.c index 55904826..3b500302 100644 --- a/plugins/huawei/mm-broadband-modem-huawei.c +++ b/plugins/huawei/mm-broadband-modem-huawei.c @@ -2945,12 +2945,12 @@ huawei_voice_received_dtmf (MMPortSerialAt *port, GMatchInfo *match_info, MMBroadbandModemHuawei *self) { - gchar *key; + gchar *key = g_match_info_fetch (match_info, 1); - key = g_match_info_fetch (match_info, 1); + if( key ) { + mm_dbg ("[%s:%d][^DDTMF] Received DTMF '%s'", __func__, __LINE__, key); - if( key && key[0] ) { - mm_dbg ("[%s:%d][^DDTMF] Received DTMF '%c'", __func__, __LINE__, key[0]); + mm_iface_modem_voice_received_dtmf(MM_IFACE_MODEM_VOICE(self), key); } } |