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

This commit is contained in:
Chris Rienzo 2014-04-10 10:20:47 -04:00
parent b72194b72b
commit a86623972d
2 changed files with 3 additions and 3 deletions

View File

@ -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");

View File

@ -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);
}