From: Mike Jerris Date: Mon, 17 Apr 2017 21:46:26 +0000 (-0500) Subject: FS-10241: [mod_sofia] don't send xml media refresh request before we have media setup X-Git-Tag: v1.6.18~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b4964bd7e8d429c5f38571b3d041553a63d97e1;p=thirdparty%2Ffreeswitch.git FS-10241: [mod_sofia] don't send xml media refresh request before we have media setup --- 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();