mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
add some stuff to tolerate more buggy switches
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11881 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1561,7 +1561,11 @@ switch_status_t reconfig_sofia(sofia_profile_t *profile)
|
||||
} else if (!strcasecmp(var, "inbound-codec-negotiation")) {
|
||||
if (!strcasecmp(val, "greedy")) {
|
||||
sofia_set_pflag(profile, PFLAG_GREEDY);
|
||||
} else if (!strcasecmp(val, "scrooge")) {
|
||||
sofia_set_pflag(profile, PFLAG_GREEDY);
|
||||
sofia_set_pflag(profile, PFLAG_SCROOGE);
|
||||
} else {
|
||||
sofia_clear_pflag(profile, PFLAG_SCROOGE);
|
||||
sofia_clear_pflag(profile, PFLAG_GREEDY);
|
||||
}
|
||||
} else if (!strcasecmp(var, "disable-transcoding")) {
|
||||
@@ -2072,6 +2076,12 @@ switch_status_t config_sofia(int reload, char *profile_name)
|
||||
} else if (!strcasecmp(var, "inbound-codec-negotiation")) {
|
||||
if (!strcasecmp(val, "greedy")) {
|
||||
sofia_set_pflag(profile, PFLAG_GREEDY);
|
||||
} else if (!strcasecmp(val, "scrooge")) {
|
||||
sofia_set_pflag(profile, PFLAG_GREEDY);
|
||||
sofia_set_pflag(profile, PFLAG_SCROOGE);
|
||||
} else {
|
||||
sofia_clear_pflag(profile, PFLAG_SCROOGE);
|
||||
sofia_clear_pflag(profile, PFLAG_GREEDY);
|
||||
}
|
||||
} else if (!strcasecmp(var, "disable-transcoding")) {
|
||||
if (switch_true(val)) {
|
||||
|
||||
Reference in New Issue
Block a user