]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8964 #resolve [Make it possible to disable picture_fast_update INFO requests]
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 21 Mar 2016 17:58:28 +0000 (12:58 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 21 Mar 2016 17:58:34 +0000 (12:58 -0500)
src/mod/endpoints/mod_sofia/mod_sofia.c

index c4a38559b4113b555af4945ec8f9c0ef16f8cb63..9fc3ccd47f24d625e3d04458d069f5c0ce8aee83 100644 (file)
@@ -1318,9 +1318,8 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
 
        switch (msg->message_id) {
 
-#if 1
        case SWITCH_MESSAGE_INDICATE_VIDEO_REFRESH_REQ:
-               {
+               if (!switch_channel_test_flag(channel, CF_AVPF)) {
                        //const char *ua = switch_channel_get_variable(tech_pvt->channel, "sip_user_agent");
                        //if (ua && switch_stristr("polycom", ua)) {
 
@@ -1341,7 +1340,6 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
                                //}
                }
                break;
-#endif
        case SWITCH_MESSAGE_INDICATE_BROADCAST:
                {
                        const char *ip = NULL, *port = NULL;