more event code

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@153 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale committed 2005-12-14 22:46:09 +00:00
1 parent 03533ad0f3
commit 230c5012a6
8 files changed
+78 -15

No files matched your search

+1 -3
View File
@@ -207,9 +207,7 @@ SWITCH_DECLARE(switch_status) switch_channel_set_variable(switch_channel *channe
assert(channel != NULL);
switch_core_hash_delete(channel->variables, varname);
if (value) {
switch_core_hash_insert(channel->variables, varname, switch_core_session_strdup(channel->session, value));
}
switch_core_hash_insert_dup(channel->variables, varname, switch_core_session_strdup(channel->session, value));
return SWITCH_STATUS_SUCCESS;
}