mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
add missing line to get channels from sdp for back-compat opus negotiation
This commit is contained in:
parent
a3a795a08a
commit
c4e90cc6e4
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user