diff options
author | Pekka Pessi <Pekka.Pessi@nokia.com> | 2008-11-05 11:11:28 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-12-08 16:10:57 +0200 |
commit | 6e592c7e418cf337e3acc0aa96a780cdaf1394eb (patch) | |
tree | 57163d81231e5a1453309ae713c37cb6671c6e03 /audio | |
parent | 8ea2f0d99a3a02b416512576efe90ef2bab00901 (diff) |
Use SendDTMF instead of StartDTMF/StopDTMF
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); |