summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/call.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/call.c b/src/call.c
index 529b5ac..c057dd4 100644
--- a/src/call.c
+++ b/src/call.c
@@ -1476,15 +1476,15 @@ static void sipsess_progr_handler(const struct sip_msg *msg, void *arg)
break;
}
- if (media)
- call_event_handler(call, CALL_EVENT_PROGRESS, call->peer_uri);
- else
- call_event_handler(call, CALL_EVENT_RINGING, call->peer_uri);
-
call_stream_stop(call);
if (media)
call_stream_start(call, false);
+
+ if (media)
+ call_event_handler(call, CALL_EVENT_PROGRESS, call->peer_uri);
+ else
+ call_event_handler(call, CALL_EVENT_RINGING, call->peer_uri);
}