From: Hunyadvári Péter Date: Wed, 6 Dec 2017 13:36:19 +0000 (+0100) Subject: FS-10828 [mod_verto] Always renew codec_string on connect X-Git-Tag: v1.8.1~3^2~234^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=343b34376346f82fe0208912dd4104e1bfc341a2;p=thirdparty%2Ffreeswitch.git FS-10828 [mod_verto] Always renew codec_string on connect --- diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index 7a8b6e23b1..abfa450685 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -2236,6 +2236,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) {