Don't play call waiting sound when second call comes in.
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user