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.8.0~597 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3d885ac5c0576e87cd40fdb545fc6e6316d8f16f;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 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();