From: Brian West Date: Thu, 29 Jan 2015 14:25:01 +0000 (-0600) Subject: FS-7208 #comment _undef_ as the header and/or ident will make it be an empty string... X-Git-Tag: v1.4.17~1^2~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2c6d70cc8a1a752698efda8fca35256cfbf56f4;p=thirdparty%2Ffreeswitch.git 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 --- diff --git a/src/mod/applications/mod_spandsp/mod_spandsp.c b/src/mod/applications/mod_spandsp/mod_spandsp.c index 12a8a95948..4d70f04b1b 100644 --- a/src/mod/applications/mod_spandsp/mod_spandsp.c +++ b/src/mod/applications/mod_spandsp/mod_spandsp.c @@ -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")) {