From 823dfd9f8990d11dc9c914597ebb3ac4ca6fdf2c Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Sat, 16 Jul 2022 14:17:42 +0300 Subject: [PATCH] Revert PR #1922 --- src/call.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/call.c b/src/call.c index 537d256a9..9af64bde9 100644 --- a/src/call.c +++ b/src/call.c @@ -2224,14 +2224,18 @@ static void sipsess_progr_handler(const struct sip_msg *msg, void *arg) break; } - if (media) { + call_stream_stop(call); + + if (media) + call_stream_start(call, false); + + if (media) call_event_handler(call, CALL_EVENT_PROGRESS, call->peer_uri); - update_media(call); - } - else { - call_stream_stop(call); + else call_event_handler(call, CALL_EVENT_RINGING, call->peer_uri); - } + + if (media) + update_media(call); }