提交 9ee57316 authored 作者: Anthony Minessale's avatar Anthony Minessale

FS-6851 #resolve

上级 b65939fc
...@@ -4170,7 +4170,11 @@ SWITCH_DECLARE(switch_status_t) switch_channel_get_variables(switch_channel_t *c ...@@ -4170,7 +4170,11 @@ SWITCH_DECLARE(switch_status_t) switch_channel_get_variables(switch_channel_t *c
{ {
switch_status_t status; switch_status_t status;
switch_mutex_lock(channel->profile_mutex); switch_mutex_lock(channel->profile_mutex);
status = switch_event_dup(event, channel->variables); if (channel->variables) {
status = switch_event_dup(event, channel->variables);
} else {
status = switch_event_create(event, SWITCH_EVENT_CHANNEL_DATA);
}
switch_mutex_unlock(channel->profile_mutex); switch_mutex_unlock(channel->profile_mutex);
return status; return status;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论