mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-18 17:24:14 +00:00
stereo refactoring
This commit is contained in:
1 parent
56ef59e9ad
commit
4ffbf23ffa
10 files changed
+109
-44
No files matched your search
@@ -140,8 +140,8 @@ static switch_status_t tech_init(loopback_private_t *tech_pvt, switch_core_sessi
|
||||
|
||||
if ((var = switch_channel_get_variable(channel, "loopback_initial_codec"))) {
|
||||
char *dup = switch_core_session_strdup(session, var);
|
||||
uint32_t bit;
|
||||
iananame = switch_parse_codec_buf(dup, &interval, &rate, &bit);
|
||||
uint32_t bit, channels;
|
||||
iananame = switch_parse_codec_buf(dup, &interval, &rate, &bit, &channels);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1441,10 +1441,12 @@ static switch_status_t verto_connect(switch_core_session_t *session, const char
|
||||
|
||||
verto_set_media_options(tech_pvt, jsock->profile);
|
||||
|
||||
switch_core_media_prepare_codecs(tech_pvt->session, SWITCH_TRUE);
|
||||
|
||||
switch_channel_set_variable(tech_pvt->channel, "verto_profile_name", jsock->profile->name);
|
||||
|
||||
if (!switch_channel_test_flag(tech_pvt->channel, CF_RECOVERING)) {
|
||||
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) {
|
||||
//if ((status = switch_core_media_choose_port(tech_pvt->session, SWITCH_MEDIA_TYPE_AUDIO, 0)) != SWITCH_STATUS_SUCCESS) {
|
||||
switch_channel_hangup(tech_pvt->channel, SWITCH_CAUSE_DESTINATION_OUT_OF_ORDER);
|
||||
|
||||
Reference in new issue
Block a user