]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5733 --resolve mod_rayo: don't use nested <input> when creating dtmf-only match.
authorChris Rienzo <chris.rienzo@grasshopper.com>
Mon, 26 Aug 2013 22:57:04 +0000 (18:57 -0400)
committerChris Rienzo <chris.rienzo@grasshopper.com>
Mon, 26 Aug 2013 22:57:04 +0000 (18:57 -0400)
src/mod/event_handlers/mod_rayo/nlsml.c
src/mod/event_handlers/mod_rayo/test_nlsml/main.c

index e446d1bfd0af1f016cc5594e12ee441dadf31421..b5e9cefa4f301c7394b1e24bdaffee895e34f729 100644 (file)
@@ -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");
 
index cc5331f55f00d4568266960165dfbfa377026a52..f5d6067d3bc8d1f3b0aee4ab72520bd75473df60 100644 (file)
@@ -244,8 +244,8 @@ static void test_parse_nlsml_examples(void)
 static const char *nlsml_dtmf_result =
        "<result xmlns='http://www.ietf.org/xml/ns/mrcpv2' "
        "xmlns:xf='http://www.w3.org/2000/xforms'><interpretation>"
-       "<input><input mode='dtmf' confidence='100'>1 2 3 4</input>"
-       "</input></interpretation></result>";
+       "<input mode='dtmf' confidence='100'>1 2 3 4</input>"
+       "</interpretation></result>";
 
 /**
  * Test parsing NLSML example results