From 3d885ac5c0576e87cd40fdb545fc6e6316d8f16f 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 519a4e608a..734dd516c6 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -1528,7 +1528,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();