FS-7208 #comment _undef_ as the header and/or ident will make it be an empty string which is the same you were doing on your local builds #resolve

This commit is contained in:
Brian West 2015-01-29 08:25:01 -06:00
parent ded05d1cc9
commit b2c6d70cc8
1 changed files with 10 additions and 2 deletions

View File

@ -628,9 +628,17 @@ switch_status_t load_configuration(switch_bool_t reload)
spandsp_globals.enable_t38_request = 0;
}
} else if (!strcmp(name, "ident")) {
spandsp_globals.ident = switch_core_strdup(spandsp_globals.config_pool, value);
if (!strcmp(value, "_undef_")) {
spandsp_globals.ident = "";
} else {
spandsp_globals.ident = switch_core_strdup(spandsp_globals.config_pool, value);
}
} else if (!strcmp(name, "header")) {
spandsp_globals.header = switch_core_strdup(spandsp_globals.config_pool, value);
if (!strcmp(value, "_undef_")) {
spandsp_globals.header = "";
} else {
spandsp_globals.header = switch_core_strdup(spandsp_globals.config_pool, value);
}
} else if (!strcmp(name, "spool-dir")) {
spandsp_globals.spool = switch_core_strdup(spandsp_globals.config_pool, value);
} else if (!strcmp(name, "file-prefix")) {