]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
also means forbidden on recovering calls
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 7 Mar 2014 02:11:32 +0000 (07:11 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 7 Mar 2014 02:11:32 +0000 (07:11 +0500)
src/switch_core_media.c

index 6f49dc5166f51f51202fc61eea366692b085488b..a9a7c158f9ee460282da1bc24eb8e91cbb81b046 100644 (file)
@@ -1106,7 +1106,7 @@ static void switch_core_session_parse_crypto_prefs(switch_core_session_t *sessio
        }
 
        if (zstr(val)) {
-               if (switch_channel_direction(session->channel) == SWITCH_CALL_DIRECTION_INBOUND) {
+               if (switch_channel_direction(session->channel) == SWITCH_CALL_DIRECTION_INBOUND && !switch_channel_test_flag(session->channel, CF_RECOVERING)) {
                        val = "optional";
                } else {
                        val = "forbidden";