mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-24 19:52:35 +00:00
FS-8632 #resolve [Add origination_audio_mode originate variable]
This commit is contained in:
parent
3df5826098
commit
2cb7188c17
@ -7475,11 +7475,16 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
|
|||||||
sr = "sendrecv";
|
sr = "sendrecv";
|
||||||
}
|
}
|
||||||
|
|
||||||
//if ((var_val = switch_channel_get_variable(session->channel, "media_audio_mode"))) {
|
if ((var_val = switch_channel_get_variable(session->channel, "origination_audio_mode"))) {
|
||||||
// sr = var_val;
|
if (!strcasecmp(sr, "sendonly") || !strcasecmp(sr, "recvonly") || !strcasecmp(sr, "sendrecv")) {
|
||||||
//} else {
|
sr = var_val;
|
||||||
// sr = "sendrecv";
|
}
|
||||||
//}
|
switch_channel_set_variable(session->channel, "origination_audio_mode", NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (zstr(sr)) {
|
||||||
|
sr = "sendrecv";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!smh->owner_id) {
|
if (!smh->owner_id) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user