]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_rayo: fixed input crash introduced in 2014-04-07 commit
authorChris Rienzo <chris.rienzo@grasshopper.com>
Thu, 10 Apr 2014 14:20:47 +0000 (10:20 -0400)
committerChris Rienzo <chris.rienzo@grasshopper.com>
Thu, 10 Apr 2014 14:22:01 +0000 (10:22 -0400)
src/mod/event_handlers/mod_rayo/rayo_input_component.c
src/mod/event_handlers/mod_rayo/rayo_output_component.c

index 862c1aaa3c08a58fdc62d9f52f5ebaffbcb83b1d..9d9d98a3b7b0f6765641c14ac32ed2587f7ef0c6 100644 (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");
 
index af426cb2255c3e724212f54e1186bd71a43d3787..4a3ee322a816514ffb999dc552ace95b975a461f 100644 (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);
        }