提交 4eed4f88 authored 作者: Michael Jerris's avatar Michael Jerris

re-set the sound prefix back to nothing after a phrase if it wasn't set before. (MODAPP-84)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8109 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 03f11e7a
......@@ -176,10 +176,10 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_phrase_macro(switch_core_session_t *s
}
if (sound_path) {
if ((old_sound_prefix = switch_channel_get_variable(channel, "sound_prefix"))) {
char *p = switch_core_session_strdup(session, old_sound_prefix);
old_sound_prefix = p;
}
char *p;
old_sound_prefix = switch_str_nil(switch_channel_get_variable(channel, "sound_prefix"));
p = switch_core_session_strdup(session, old_sound_prefix);
old_sound_prefix = p;
switch_channel_set_variable(channel, "sound_prefix", sound_path);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论