mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-11 12:07:06 +00:00
CODEC TWEAK
mod_sofia will now examine a variable in the channel to see what the channel's originator was using for a codec and try to put that to the top of the list in the sdp. if this new sofia profile param is set: <param name="disable-transcoding" value="true"/> All outbound calls will use *only* the codec that thier originator is using to ensure no transcoding. (of course that could lead to a failed call where there is no way to do this, so use sparingly) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4073 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
1ef78b928f
commit
0ed9ebe492
5 files changed
+50
-10
No files matched your search
+10
-3
@@ -1577,10 +1577,17 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_outgoing_channel(switch_core
|
||||
|
||||
if (channel && peer_channel) {
|
||||
char *export_vars, *val;
|
||||
switch_codec_t *read_codec = switch_core_session_get_read_codec(session);
|
||||
|
||||
switch_channel_set_variable(peer_channel, SWITCH_ORIGINATOR_VARIABLE, switch_core_session_get_uuid(session));
|
||||
|
||||
/* A comma (,) separated list of variable names that should ne propagated from originator to originatee */
|
||||
if (read_codec) {
|
||||
char tmp[80];
|
||||
switch_codec2str(read_codec, tmp, sizeof(tmp));
|
||||
switch_channel_set_variable(peer_channel, SWITCH_ORIGINATOR_CODEC_VARIABLE, tmp);
|
||||
}
|
||||
|
||||
switch_channel_set_variable(peer_channel, SWITCH_ORIGINATOR_VARIABLE, switch_core_session_get_uuid(session));
|
||||
|
||||
/* A comma (,) separated list of variable names that should ne propagated from originator to originatee */
|
||||
if ((export_vars = switch_channel_get_variable(channel, "export_vars"))) {
|
||||
char *cptmp = switch_core_session_strdup(session, export_vars);
|
||||
int argc;
|
||||
|
||||
Reference in new issue
Block a user