forked from Mirrors/freeswitch
FS-5733 --resolve mod_rayo: don't use nested <input> when creating dtmf-only match.
This commit is contained in:
parent
7d6d688e53
commit
56a3791349
@ -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");
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user