From 3b4964bd7e8d429c5f38571b3d041553a63d97e1 Mon Sep 17 00:00:00 2001 From: Mike Jerris Date: Mon, 17 Apr 2017 16:46:26 -0500 Subject: [PATCH] FS-10241: [mod_sofia] don't send xml media refresh request before we have media setup --- src/mod/endpoints/mod_sofia/mod_sofia.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index 55505056c4..5316813914 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -1418,7 +1418,8 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi break; case SWITCH_MESSAGE_INDICATE_VIDEO_REFRESH_REQ: - if (!switch_channel_test_flag(channel, CF_AVPF) && switch_true(switch_core_get_variable("sofia_send_info_vid_refresh"))) { + if (switch_channel_media_up(channel) && !switch_channel_test_flag(channel, CF_AVPF) && + switch_true(switch_core_get_variable("sofia_send_info_vid_refresh"))) { const char *pl = "\n\n"; switch_time_t now = switch_micro_time_now();