From 82d7555d3cf0f18595eaa757557fc2c68a1cad79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hunyadv=C3=A1ri=20P=C3=A9ter?= Date: Wed, 6 Dec 2017 14:36:19 +0100 Subject: [PATCH] FS-10828 [mod_verto] Always renew codec_string on connect --- src/mod/endpoints/mod_verto/mod_verto.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 0adb1220a4..b2b06d6e16 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -2246,6 +2246,7 @@ static switch_status_t verto_connect(switch_core_session_t *session, const char switch_channel_set_variable(tech_pvt->channel, "verto_profile_name", jsock->profile->name); if (!switch_channel_test_flag(tech_pvt->channel, CF_RECOVERING)) { + switch_channel_set_variable(tech_pvt->channel, "codec_string", NULL); switch_core_media_prepare_codecs(tech_pvt->session, SWITCH_TRUE); if ((status = switch_core_media_choose_ports(tech_pvt->session, SWITCH_TRUE, SWITCH_TRUE)) != SWITCH_STATUS_SUCCESS) {