From 5aa955b5c9694fdfac3d77939afcb5ed50a7045e Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 7 Mar 2014 07:11:32 +0500 Subject: [PATCH] also means forbidden on recovering calls --- src/switch_core_media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";