Don't play call waiting sound when second call comes in.

This commit is contained in:
Juha Heinanen
2020-12-22 12:07:56 +02:00
parent ad9c9b2d84
commit 463cdf95e3

View File

@ -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: