use default ringtone in incoming calls

This commit is contained in:
Juha Heinanen
2018-06-24 14:35:26 +03:00
parent 95b4e22491
commit fc5cdde885
2 changed files with 10 additions and 4 deletions

View File

@ -105,13 +105,10 @@ static void ua_event_handler(struct ua *ua, enum ua_event ev,
re_snprintf(event_buf, sizeof event_buf, "%s", ua_event_reg_str(ev));
break;
case UA_EVENT_CALL_INCOMING:
play = mem_deref(play);
if (list_count(ua_calls(ua)) > 1) {
play = mem_deref(play);
(void)play_file(&play, player, "callwaiting.wav", 3);
}
else {
(void)play_file(&play, player, "ring.wav", -1);
}
re_snprintf(event_buf, sizeof event_buf, "%s", "call incoming");
break;
case UA_EVENT_CALL_RINGING: