From: Anthony Minessale Date: Fri, 7 Mar 2014 02:11:32 +0000 (+0500) Subject: also means forbidden on recovering calls X-Git-Tag: v1.5.11~110 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5aa955b5c9694fdfac3d77939afcb5ed50a7045e;p=thirdparty%2Ffreeswitch.git also means forbidden on recovering calls --- diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 6f49dc5166..a9a7c158f9 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -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";