diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/telephony-maemo.c | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/audio/telephony-maemo.c b/audio/telephony-maemo.c index 48d39b05..54d904a8 100644 --- a/audio/telephony-maemo.c +++ b/audio/telephony-maemo.c @@ -499,11 +499,12 @@ void telephony_dial_number_req(void *telephony_device, const char *number) void telephony_transmit_dtmf_req(void *telephony_device, char tone) { DBusMessage *msg; + char buf[2] = { tone, '\0' }, *buf_ptr = buf; - debug("telephony-maemo: transmit dtmf: %c", tone); + debug("telephony-maemo: transmit dtmf: %s", buf); msg = dbus_message_new_method_call(CSD_CALL_BUS_NAME, CSD_CALL_PATH, - CSD_CALL_INTERFACE, "StartDTMF"); + CSD_CALL_INTERFACE, "SendDTMF"); if (!msg) { error("Unable to allocate new D-Bus message"); telephony_transmit_dtmf_rsp(telephony_device, @@ -511,20 +512,8 @@ void telephony_transmit_dtmf_req(void *telephony_device, char tone) return; } - dbus_message_append_args(msg, DBUS_TYPE_BYTE, &tone); - - g_dbus_send_message(connection, msg); - - msg = dbus_message_new_method_call(CSD_CALL_BUS_NAME, CSD_CALL_PATH, - CSD_CALL_INTERFACE, "StopDTMF"); - if (!msg) { - error("Unable to allocate new D-Bus message"); - telephony_transmit_dtmf_rsp(telephony_device, - CME_ERROR_AG_FAILURE); - return; - } - - dbus_message_append_args(msg, DBUS_TYPE_BYTE, &tone); + dbus_message_append_args(msg, DBUS_TYPE_STRING, &buf_ptr, + DBUS_TYPE_INVALID); g_dbus_send_message(connection, msg); |