From: Chris Rienzo Date: Mon, 26 Aug 2013 22:57:04 +0000 (-0400) Subject: FS-5733 --resolve mod_rayo: don't use nested when creating dtmf-only match. X-Git-Tag: v1.5.5~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56a37913497e88202c801b771a4c40c1b13a11b7;p=thirdparty%2Ffreeswitch.git FS-5733 --resolve mod_rayo: don't use nested when creating dtmf-only match. --- 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