get rid of _ char in special vars and add an unset dialplan app for clarity sake

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4124 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2007-02-05 19:35:31 +00:00
parent 96e32a8d4c
commit c6d0188af0
3 changed files with 44 additions and 20 deletions

View File

@@ -363,7 +363,7 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_variable(switch_channel_t *ch
if (varname) {
switch_core_hash_delete(channel->variables, varname);
if (value) {
if (!switch_strlen_zero(value)) {
switch_core_hash_insert_dup(channel->variables, varname, switch_core_session_strdup(channel->session, value));
} else {
switch_core_hash_delete(channel->variables, varname);