summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-10-24 14:51:14 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-12-08 16:10:57 +0200
commitbc9238c99f3ebe7e51a28c3a4f63402891eb85d7 (patch)
tree184adf19bcbeca31982c8b85474eb0f8c51bd56b /audio
parent6618b8af1de27cce3e86d550833e228b4a7dccc3 (diff)
Enable in-band ringing
Diffstat (limited to 'audio')
-rw-r--r--audio/telephony-maemo.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/audio/telephony-maemo.c b/audio/telephony-maemo.c
index 34a98584..2bcfff8b 100644
--- a/audio/telephony-maemo.c
+++ b/audio/telephony-maemo.c
@@ -445,9 +445,11 @@ void telephony_answer_call_req(void *telephony_device)
if (!call)
call = find_call_with_status(CSD_CALL_STATUS_PROCEEDING);
- if (!call)
+ if (!call) {
telephony_answer_call_rsp(telephony_device,
CME_ERROR_NOT_ALLOWED);
+ return;
+ }
if (answer_call(call) < 0)
telephony_answer_call_rsp(telephony_device,
@@ -1299,7 +1301,8 @@ static void registration_status_reply(DBusPendingCall *call, void *user_data)
dbus_int32_t net_err;
uint32_t features = AG_FEATURE_REJECT_A_CALL |
AG_FEATURE_ENHANCED_CALL_STATUS |
- AG_FEATURE_EXTENDED_ERROR_RESULT_CODES;
+ AG_FEATURE_EXTENDED_ERROR_RESULT_CODES |
+ AG_FEATURE_INBAND_RINGTONE;
reply = dbus_pending_call_steal_reply(call);