From c4e90cc6e478d90241a9d3103f6a87aacf0b661b Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 21 Jan 2014 00:52:48 +0500 Subject: [PATCH] add missing line to get channels from sdp for back-compat opus negotiation --- src/mod/endpoints/mod_sofia/sofia_glue.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mod/endpoints/mod_sofia/sofia_glue.c b/src/mod/endpoints/mod_sofia/sofia_glue.c index b7446960fd..573d2dd387 100644 --- a/src/mod/endpoints/mod_sofia/sofia_glue.c +++ b/src/mod/endpoints/mod_sofia/sofia_glue.c @@ -5385,6 +5385,7 @@ uint8_t sofia_glue_negotiate_sdp(switch_core_session_t *session, const char *r_s switch_channel_set_variable(tech_pvt->channel, SWITCH_REMOTE_MEDIA_IP_VARIABLE, tech_pvt->remote_sdp_audio_ip); switch_channel_set_variable(tech_pvt->channel, SWITCH_REMOTE_MEDIA_PORT_VARIABLE, tmp); tech_pvt->audio_recv_pt = (switch_payload_t)map->rm_pt; + tech_pvt->channels = map->rm_params ? atoi(map->rm_params) : 1; if (!strcasecmp((char *) map->rm_encoding, "opus")) { if (tech_pvt->channels == 1) {