]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7208 #comment _undef_ as the header and/or ident will make it be an empty string...
authorBrian West <brian@freeswitch.org>
Thu, 29 Jan 2015 14:25:01 +0000 (08:25 -0600)
committerBrian West <brian@freeswitch.org>
Thu, 29 Jan 2015 14:25:01 +0000 (08:25 -0600)
src/mod/applications/mod_spandsp/mod_spandsp.c

index 12a8a95948374a52452c4bb4b0fdce1467e015c5..4d70f04b1bf40f764da6a2912e453b55778a2a40 100644 (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")) {