summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins/invoker/vxml
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/plugins/invoker/vxml')
-rw-r--r--src/uscxml/plugins/invoker/vxml/VoiceXMLInvoker.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/uscxml/plugins/invoker/vxml/VoiceXMLInvoker.cpp b/src/uscxml/plugins/invoker/vxml/VoiceXMLInvoker.cpp
index a71d21a..a18be8e 100644
--- a/src/uscxml/plugins/invoker/vxml/VoiceXMLInvoker.cpp
+++ b/src/uscxml/plugins/invoker/vxml/VoiceXMLInvoker.cpp
@@ -48,10 +48,20 @@ Data VoiceXMLInvoker::getDataModelVariables() {
void VoiceXMLInvoker::send(const SendRequest& req) {
StartRequest start;
std::stringstream domSS;
+// if (req.dom) {
+// // hack until jVoiceXML supports XML
+// std::cout << req.dom;
+// Arabica::DOM::NodeList<std::string> prompts = req.dom.getElementsByTagName("vxml:prompt");
+// for (int i = 0; i < prompts.getLength(); i++) {
+// if (prompts.item(i).hasChildNodes()) {
+// domSS << prompts.item(i).getFirstChild().getNodeValue() << ".";
+// }
+// }
+// }
domSS << req.getFirstDOMElement();
start.content = domSS.str();
-
- start.contentURL.href = "http://localhost/~sradomski/hello.vxml";
+ _interpreter->getDataModel().replaceExpressions(start.content);
+
start.requestId = "asdf";
start.source = "asdf";
start.target = "umundo://mmi/jvoicexml";