mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 09:58:17 +00:00
xml_config: Fix issue where default NULL strings were ignored on reload
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13052 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -89,7 +89,7 @@ static switch_xml_config_item_t instructions[] = {
|
||||
"greedy|generous|evil", "Specifies the codec negotiation scheme to be used."),
|
||||
SWITCH_CONFIG_ITEM_CALLBACK("sip-trace", SWITCH_CONFIG_BOOL, CONFIG_RELOADABLE, &globals.sip_trace, (void*)SWITCH_FALSE, config_callback_siptrace, NULL ,
|
||||
"yes|no", "If enabled, print out sip messages on the console."),
|
||||
SWITCH_CONFIG_ITEM("integer", SWITCH_CONFIG_INT, CONFIG_RELOADABLE | CONFIG_REQUIRED, &globals.integer, (void*)100, &config_opt_integer,
|
||||
SWITCH_CONFIG_ITEM("integer", SWITCH_CONFIG_INT, CONFIG_RELOADABLE, &globals.integer, (void*)100, &config_opt_integer,
|
||||
NULL, NULL),
|
||||
SWITCH_CONFIG_ITEM_END()
|
||||
};
|
||||
@@ -108,8 +108,8 @@ static switch_status_t do_config(switch_bool_t reload)
|
||||
|
||||
SWITCH_STANDARD_API(skel_function)
|
||||
{
|
||||
stream->write_function(stream, "+OK Reloading\n");
|
||||
do_config(SWITCH_TRUE);
|
||||
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user