mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-15 15:54:13 +00:00
add separate inbound/outound codec prefs params to sofia profile original codec-prefs sets both to the same value for back-compat
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15658 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
aba8d7590f
commit
d34d8ae16b
7 files changed
+60
-23
No files matched your search
@@ -2179,7 +2179,12 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
|
||||
} else if (!strcasecmp(var, "max-calls")) {
|
||||
profile->max_calls = atoi(val);
|
||||
} else if (!strcasecmp(var, "codec-prefs")) {
|
||||
profile->codec_string = switch_core_strdup(profile->pool, val);
|
||||
profile->inbound_codec_string = switch_core_strdup(profile->pool, val);
|
||||
profile->outbound_codec_string = switch_core_strdup(profile->pool, val);
|
||||
} else if (!strcasecmp(var, "inbound-codec-prefs")) {
|
||||
profile->inbound_codec_string = switch_core_strdup(profile->pool, val);
|
||||
} else if (!strcasecmp(var, "outbound-codec-prefs")) {
|
||||
profile->outbound_codec_string = switch_core_strdup(profile->pool, val);
|
||||
} else if (!strcasecmp(var, "challenge-realm")) {
|
||||
profile->challenge_realm = switch_core_strdup(profile->pool, val);
|
||||
} else if (!strcasecmp(var, "dtmf-duration")) {
|
||||
@@ -2883,7 +2888,12 @@ switch_status_t config_sofia(int reload, char *profile_name)
|
||||
} else if (!strcasecmp(var, "max-calls")) {
|
||||
profile->max_calls = atoi(val);
|
||||
} else if (!strcasecmp(var, "codec-prefs")) {
|
||||
profile->codec_string = switch_core_strdup(profile->pool, val);
|
||||
profile->inbound_codec_string = switch_core_strdup(profile->pool, val);
|
||||
profile->outbound_codec_string = switch_core_strdup(profile->pool, val);
|
||||
} else if (!strcasecmp(var, "inbound-codec-prefs")) {
|
||||
profile->inbound_codec_string = switch_core_strdup(profile->pool, val);
|
||||
} else if (!strcasecmp(var, "outbound-codec-prefs")) {
|
||||
profile->outbound_codec_string = switch_core_strdup(profile->pool, val);
|
||||
} else if (!strcasecmp(var, "challenge-realm")) {
|
||||
profile->challenge_realm = switch_core_strdup(profile->pool, val);
|
||||
} else if (!strcasecmp(var, "dtmf-duration")) {
|
||||
@@ -3700,7 +3710,7 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
|
||||
|
||||
if (sofia_test_flag(tech_pvt, TFLAG_LATE_NEGOTIATION) && (parser = sdp_parse(NULL, r_sdp, (int) strlen(r_sdp), 0))) {
|
||||
if ((sdp = sdp_session(parser))) {
|
||||
sofia_glue_set_r_sdp_codec_string(session, (tech_pvt->profile?tech_pvt->profile->codec_string:NULL), sdp);
|
||||
sofia_glue_set_r_sdp_codec_string(session, sofia_glue_get_codec_string(tech_pvt), sdp);
|
||||
}
|
||||
sdp_parser_free(parser);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user