提交 66c268a5 authored 作者: Chris Rienzo's avatar Chris Rienzo

mod_rayo: fixed input crash introduced in 2014-04-07 commit

上级 0a388d01
......@@ -604,8 +604,8 @@ static iks *start_call_input(struct input_component *component, switch_core_sess
component->barge_event = iks_find_bool_attrib(input, "barge-event");
component->start_timers = iks_find_bool_attrib(input, "start-timers");
component->term_digit = iks_find_char_attrib(input, "terminator");
component->recognizer = switch_core_strdup(RAYO_POOL(input), iks_find_attrib_soft(input, "recognizer"));
component->language = switch_core_strdup(RAYO_POOL(input), iks_find_attrib_soft(input, "language"));
component->recognizer = switch_core_strdup(RAYO_POOL(component), iks_find_attrib_soft(input, "recognizer"));
component->language = switch_core_strdup(RAYO_POOL(component), iks_find_attrib_soft(input, "language"));
component->handler = handler;
component->speech_mode = strcmp(iks_find_attrib_soft(input, "mode"), "dtmf");
......
......@@ -76,7 +76,7 @@ static struct rayo_component *create_output_component(struct rayo_actor *actor,
output_component->repeat_times = iks_find_int_attrib(output, "repeat-times");
output_component->max_time_ms = iks_find_int_attrib(output, "max-time");
output_component->start_paused = iks_find_bool_attrib(output, "start-paused");
output_component->renderer = switch_core_strdup(RAYO_POOL(actor), iks_find_attrib_soft(output, "renderer"));
output_component->renderer = switch_core_strdup(RAYO_POOL(output_component), iks_find_attrib_soft(output, "renderer"));
} else {
switch_core_destroy_memory_pool(&pool);
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论