summaryrefslogtreecommitdiffstats
path: root/audio/headset.c
diff options
context:
space:
mode:
Diffstat (limited to 'audio/headset.c')
-rw-r--r--audio/headset.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/audio/headset.c b/audio/headset.c
index 3b1b6772..716b33d3 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -2587,6 +2587,11 @@ int telephony_incoming_call_ind(const char *number, int type)
return -EBUSY;
}
+ /* With HSP 1.2 the RING messages should *not* be sent if inband
+ * ringtone is being used */
+ if (!hs->hfp_active && (ag.features & AG_FEATURE_INBAND_RINGTONE))
+ return 0;
+
g_free(ag.number);
ag.number = g_strdup(number);
ag.number_type = type;