From 56a37913497e88202c801b771a4c40c1b13a11b7 Mon Sep 17 00:00:00 2001 From: Chris Rienzo Date: Mon, 26 Aug 2013 18:57:04 -0400 Subject: [PATCH] FS-5733 --resolve mod_rayo: don't use nested when creating dtmf-only match. --- src/mod/event_handlers/mod_rayo/nlsml.c | 1 - src/mod/event_handlers/mod_rayo/test_nlsml/main.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/mod/event_handlers/mod_rayo/nlsml.c b/src/mod/event_handlers/mod_rayo/nlsml.c index e446d1bfd0..b5e9cefa4f 100644 --- a/src/mod/event_handlers/mod_rayo/nlsml.c +++ b/src/mod/event_handlers/mod_rayo/nlsml.c @@ -412,7 +412,6 @@ iks *nlsml_create_dtmf_match(const char *digits) iks *interpretation = iks_insert(result, "interpretation"); iks *input = iks_insert(interpretation, "input"); - input = iks_insert(input, "input"); iks_insert_attrib(input, "mode", "dtmf"); iks_insert_attrib(input, "confidence", "100"); diff --git a/src/mod/event_handlers/mod_rayo/test_nlsml/main.c b/src/mod/event_handlers/mod_rayo/test_nlsml/main.c index cc5331f55f..f5d6067d3b 100644 --- a/src/mod/event_handlers/mod_rayo/test_nlsml/main.c +++ b/src/mod/event_handlers/mod_rayo/test_nlsml/main.c @@ -244,8 +244,8 @@ static void test_parse_nlsml_examples(void) static const char *nlsml_dtmf_result = "" - "1 2 3 4" - ""; + "1 2 3 4" + ""; /** * Test parsing NLSML example results