base-call,iface-modem-voice:: handle DTMF

This commit is contained in:
Marco Bascetta
2015-05-11 13:40:46 +02:00
committed by Aleksander Morgado
parent 8edead9193
commit 9874f10e1f
6 changed files with 252 additions and 7 deletions

View File

@@ -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 {