diff --git a/src/mod/event_handlers/mod_rayo/rayo_input_component.c b/src/mod/event_handlers/mod_rayo/rayo_input_component.c index 1474d667a5..ecf59e85a7 100644 --- a/src/mod/event_handlers/mod_rayo/rayo_input_component.c +++ b/src/mod/event_handlers/mod_rayo/rayo_input_component.c @@ -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"); diff --git a/src/mod/event_handlers/mod_rayo/rayo_output_component.c b/src/mod/event_handlers/mod_rayo/rayo_output_component.c index 6531e76cce..f2548f380e 100644 --- a/src/mod/event_handlers/mod_rayo/rayo_output_component.c +++ b/src/mod/event_handlers/mod_rayo/rayo_output_component.c @@ -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); }