diff options
author | Marco Bascetta <marco.bascetta@sadel.it> | 2015-05-11 13:40:46 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2015-08-02 10:39:47 +0200 |
commit | 9874f10e1f27509219b6fe6b0a5374d04d1a3e3b (patch) | |
tree | 2b0b7715451408d90997a011941e94fa8eb84c5c /src/mm-call-list.c | |
parent | 8edead919343809d7c4bd7732a15c1a6c3912cba (diff) |
base-call,iface-modem-voice:: handle DTMF
Diffstat (limited to 'src/mm-call-list.c')
-rw-r--r-- | src/mm-call-list.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/mm-call-list.c b/src/mm-call-list.c index c241a0be..d15db686 100644 --- a/src/mm-call-list.c +++ b/src/mm-call-list.c @@ -189,6 +189,29 @@ MMBaseCall* mm_call_list_get_first_non_terminated_call(MMCallList *self) return call; } +gboolean mm_call_list_send_dtmf_to_active_calls(MMCallList *self, gchar *tone) +{ + gboolean signaled = FALSE; + GList *l; + guint i; + + for (i = 0, l = self->priv->list; l; l = g_list_next (l)) { + + MMCallState state; + + g_object_get (MM_BASE_CALL (l->data), + "state" , &state, + NULL); + + if( state == MM_CALL_STATE_ACTIVE ) { + signaled = TRUE; + mm_base_call_received_dtmf(MM_BASE_CALL (l->data), tone); + } + } + + return signaled; +} + /*****************************************************************************/ typedef struct { |