From 463cdf95e30c7b76d793341957c2aa3c7469ac03 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Tue, 22 Dec 2020 12:07:56 +0200 Subject: [PATCH] Don't play call waiting sound when second call comes in. --- app/src/main/cpp/baresip.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/cpp/baresip.c b/app/src/main/cpp/baresip.c index fbd7ab44..42b9ffce 100644 --- a/app/src/main/cpp/baresip.c +++ b/app/src/main/cpp/baresip.c @@ -188,10 +188,10 @@ static void ua_event_handler(struct ua *ua, enum ua_event ev, len = re_snprintf(event_buf, sizeof event_buf, "registering failed,%s", prm); break; case UA_EVENT_CALL_INCOMING: - if (list_count(ua_calls(ua)) > 1) { - play = mem_deref(play); - (void)play_file(&play, player, "callwaiting.wav", 3, NULL, NULL); - } + //if (list_count(ua_calls(ua)) > 1) { + // play = mem_deref(play); + // (void)play_file(&play, player, "callwaiting.wav", 3, NULL, NULL); + //} len = re_snprintf(event_buf, sizeof event_buf, "%s", "call incoming"); break; case UA_EVENT_CALL_LOCAL_SDP: