mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-06 10:26:41 +00:00
mod_rayo: fixed input crash introduced in 2014-04-07 commit
This commit is contained in:
parent
0a388d0104
commit
66c268a5ab
@ -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->barge_event = iks_find_bool_attrib(input, "barge-event");
|
||||||
component->start_timers = iks_find_bool_attrib(input, "start-timers");
|
component->start_timers = iks_find_bool_attrib(input, "start-timers");
|
||||||
component->term_digit = iks_find_char_attrib(input, "terminator");
|
component->term_digit = iks_find_char_attrib(input, "terminator");
|
||||||
component->recognizer = switch_core_strdup(RAYO_POOL(input), iks_find_attrib_soft(input, "recognizer"));
|
component->recognizer = switch_core_strdup(RAYO_POOL(component), iks_find_attrib_soft(input, "recognizer"));
|
||||||
component->language = switch_core_strdup(RAYO_POOL(input), iks_find_attrib_soft(input, "language"));
|
component->language = switch_core_strdup(RAYO_POOL(component), iks_find_attrib_soft(input, "language"));
|
||||||
component->handler = handler;
|
component->handler = handler;
|
||||||
component->speech_mode = strcmp(iks_find_attrib_soft(input, "mode"), "dtmf");
|
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->repeat_times = iks_find_int_attrib(output, "repeat-times");
|
||||||
output_component->max_time_ms = iks_find_int_attrib(output, "max-time");
|
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->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 {
|
} else {
|
||||||
switch_core_destroy_memory_pool(&pool);
|
switch_core_destroy_memory_pool(&pool);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user