FS-5733 --resolve mod_rayo: don't use nested <input> when creating dtmf-only match.

This commit is contained in:
Chris Rienzo 2013-08-26 18:57:04 -04:00
parent 7d6d688e53
commit 56a3791349
2 changed files with 2 additions and 3 deletions

View 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");

View 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