mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
improve mod-fifo
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5779 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -404,11 +404,10 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_variable(switch_channel_t *ch
|
||||
|
||||
if (!switch_strlen_zero(varname)) {
|
||||
switch_mutex_lock(channel->profile_mutex);
|
||||
switch_event_del_header(channel->variables, varname);
|
||||
if (value) {
|
||||
switch_event_add_header(channel->variables, SWITCH_STACK_BOTTOM, varname, "%s", value);
|
||||
} else {
|
||||
switch_event_del_header(channel->variables, varname);
|
||||
}
|
||||
}
|
||||
switch_mutex_unlock(channel->profile_mutex);
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user