Code Monkey home page Code Monkey logo

rivr's People

Contributors

dmorand avatar gawi avatar pdeschen avatar pgelinas avatar sbourass avatar schemeway avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rivr's Issues

Unit Testing in VoiceXML

Hi ,

May I know how is Unit testing performed over after building an VoiceXML Application.

It is given that ,its capable of doing unit testing,but I dont undestand where and how it is done.?

Thanks,

Avaya throws error

Rivr based application is up and running , below is sample url
http://22.242.112.99:7777/xyz/vxml?intent=welcome, when we call it from Brower its generating vxml (only prompt) as in the attachment vxml-test.txt, our actual requirement is to execute it (by calling the url) from Avaya Experience Portal. but its not working. see the below one of errors in the logs. not sure what is exact issue ?

  1. Number of visited documents exceeded the maximum limit of 500 Session=aepqamppncw01-2021246190446-8,
  2. HTTP Error for url = http://22.242.112.99:7777/xyz/vxml/915e7702-ae09-4806-ad06-4e70deee667c/0/welcome-message, Method = POST, HttpStatus = 500, HTTPStatusDescription = Internal server error Session=aepqamppncw01-2021246191021-1,

how to write java code for return namelist in subdialogue

we need to return using namelist for a subdialouge in vxml
< return namelist="test test2 test3" />

java - using Return object as below
return new Return("namelist", returnValues);
or
return new Return("return", returnValues);

is the above code correct to send returnValues as namelist?

Subdialogue - Request method 'POST' not supported

VoiceXmlInputTurn inputTurn = DialogueUtils.doTurn(subdialogueCall, context);

while we are calling the subdialogue (sample you gave in the examples) - getting the below exception
[org.springframework.web.HttpRequestMethodNotSupportedException: Request method 'POST' not supported]

Support session replication for HA deployments

I'm looking at the way to deploy code that uses rivr library in the multi-node environment for high availability purposes - the requirement is for a conversation session to survive a node crash/restart.

From what I can see DialogueServlet has support for Servlet's HttpSession and would save a Session object in HttpSession, which could be made persistent or stored out-of process (via spring-session library, for example). In my tests, when configured properly HttpSession would survive node restart, but if I read code correctly SessionContainer never reads from HttpSession - only from local sessions map (mSessions) so even so HttpSession is present after restart conversation cannot continue because of SessionNotFoundException.

I just want to confirm that what I need is indeed not supported by the current implementation?
Thanks.

Spring boot maven based Rivr sample

we are trying to build application to generate voicexml using Spring Boot, looks like sample rivr-cookbook is not working or not loading the dialogue class. Can you please share sample spring boot - maven based project ?

message is not getting interrupted even if barge-in is set to true

https://github.com/nuecho/rivr-cookbook/blob/message-barge-in/src/main/java/com/nuecho/rivr/cookbook/dialogue/Dialogue.java

we referred the above sample for user interruption while audio/message is playing, looks its not working.
we did as below as we dont need text message (just declared with single space) to be played. but message in the interaction is not getting interrupted even if barge-in is set to true. Anything is missing ?

String messageText = " ";
Message message = new Message("barge-in-message", new SpeechSynthesis(messageText));
message.setBargeIn(true);
DialogueUtils.doTurn(message, context);

    DtmfRecognition configuration = new DtmfRecognition(new GrammarReference("builtin:dtmf/digits"));
    Interaction interaction = interaction("interaction")
            .addPrompt(configuration, new SpeechSynthesis("Enter a digit."))
            .build(configuration, Duration.seconds(5));
    DialogueUtils.doTurn(interaction, context);

404 Error while calling the voice app after deployment

Hi Jean-Philippe,

I was following the steps given to bootstrap the sample application given from the cookbook. I had deployed the application in Heroku and gave the deployed application URL in Voxeo's voice URL. When I call the application, I get 404 Error. Below is the excerpt from the log

Apr 11 22:12:03 GMT 2017 bro222.orl.voxeo.net CCX 187807 4e1be661f023b2e0b43e105fe4823285 0 1 Session log: dialog failed to start! Reason=Failed fetch with code: 404 (Not Found),\n URL: http://localhost:8080/rivr-cookbook-1.0.0/?session.callerid=4029357733&session.accountid=187807&session.sessionid=6e9355ceee103f588a852e48092d2dd0&session.parentsessionid=4e1be661f023b2e0b43e105fe4823285&session.virtualplatform=Staging-Nuance&session.calledid=9990109941

I had also attached the log file of my call
2017-04-11-2200.txt

Thanks,
Karthik.

The example cookbook 'rivr-cookbook-simple-speech-interaction' always throws Session not found error.

Using Avaya experience portal in a tomcat 8.5 servlet container running on windows.
I can't run this example, the error always occurs.
When reaching out to:
/rivr-cookbook/dialogue/root/4e4e7586-4c7a-4288-b572-bd20afa99986

[apache-tomcat-8.5.23]: Dec 17, 2018 6:50:15 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [Dialogue] in context with path [/rivr-cookbook] threw exception [Cannot find session.] with root cause com.nuecho.rivr.core.servlet.session.SessionNotFoundException: Unable to find session [4e4e7586-4c7a-4288-b572-bd20afa99986] at com.nuecho.rivr.core.servlet.DialogueServlet.getExistingSession(DialogueServlet.java:512) at com.nuecho.rivr.core.servlet.DialogueServlet.getSession(DialogueServlet.java:495) at com.nuecho.rivr.core.servlet.DialogueServlet.process(DialogueServlet.java:376) at com.nuecho.rivr.core.servlet.DialogueServlet.doPost(DialogueServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Unknown Source)

InterDigitTimeout property for multiple grammar files

Hi Team, I am keeping two grammar files to recognize digits in dtmf mode.

  1. GrammarItem 1 - to understand combination of 5 digits (0 to 9).
  2. GrammarItem 2 - to understand "1"

Currently, when I entered "12345", second grammar file recognizing this and proceeding as it starts with "1".Rest of the inputs working fine except starting with "1". Tried setting inter digit timeout as well, but not worked out in this case.

"dtmfRecognition.setInterDigitTimeout(Duration.seconds(2));"

Please help on this!

Missing namespace attribute in the root vxml node.

In the debug log from rivr-voicexml we see
Content: <?xml version="1.0" encoding="UTF-8"?><vxml application="/rivr-prompt/root/85cef493-45bf-44d1-9d3f-a312643fd71a" version="2.1" xml:lang="en-US">
The root node is missing namespace attribute.

The broken vxml goes from dialogues to a VXML browser. It causes faults on IBM Websphere Voice Server.

Avaya Experience Portal tack_trace":"c.n.r.c.s.s.SessionNotFoundException: Unable to find session [error]

Avaya Experience Portal [tack_trace":"c.n.r.c.s.s.SessionNotFoundException:]
RivrErrorLog.txt
{"ts":"2021-09-08T02:39:45.755Z","logLevel":"ERROR","logMessage":"Servlet.service() for servlet [voiceXmlDialogueServlet] threw exception","logThreadId":"http-nio-8090-exec-3","logClass":"o.a.juli.logging.DirectJDKLog","logMethod":"log","env":{"hostname":"8c30a61321d8","containerName":"containerName_IS_UNDEFINED","containerNamespace":"containerNamespace_IS_UNDEFINED"},"application":{"name":"appName_IS_UNDEFINED","version":"appVersion_IS_UNDEFINED"},"stack_trace":"c.n.r.c.s.s.SessionNotFoundException: Unable to find session [error]\n\tat c.n.r.c.s.DialogueServlet.getExistingSession(DialogueServlet.java:537)\n\tat c.n.r.c.s.DialogueServlet.getSession(DialogueServlet.java:520)\n\tat c.n.r.c.s.DialogueServlet.process(DialogueServlet.java:401)\n\tat c.n.r.c.s.DialogueServlet.doGet(DialogueServlet.java:270)\n\tat c.n.r.v.s.VoiceXmlDialogueServlet.doGet(VoiceXmlDialogueServlet.java:145)\n\tat j.s.http.HttpServlet.service(HttpServlet.java:626)\n\tat j.s.http.HttpServlet.service(HttpServlet.java:733)\n\tat o.a.c.c.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:227)\n\tat o.a.c.c.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n\tat o.s.w.f.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)\n\tat o.s.w.f.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119)\n\tat o.a.c.c.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n\tat o.a.c.c.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n\tat o.s.w.f.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:103)\n\tat o.a.c.c.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n\tat o.a.c.c.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n\tat o.s.c.s.i.w.s.TracingFilter.doFilter(TracingFilter.java:68)\n\tat o.s.c.s.a.i.w.LazyTracingFilter.doFilter(TraceWebServletConfiguration.java:121)\n\tat o.a.c.c.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n\tat o.a.c.c.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n\tat o.s.w.f.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:103)\n\tat o.a.c.c.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:189)\n\tat o.a.c.c.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:162)\n\tat o.a.c.c.ApplicationDispatcher.invoke(ApplicationDispatcher.java:710)\n\tat o.a.c.c.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:459)\n\tat o.a.c.c.ApplicationDispatcher.doForward(ApplicationDispatcher.java:384)\n\tat o.a.c.c.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)\n\tat o.a.c.c.StandardHostValve.custom(StandardHostValve.java:398)\n\tat o.a.c.c.StandardHostValve.status(StandardHostValve.java:257)\n\tat o.a.c.c.StandardHostValve.invoke(StandardHostValve.java:179)\n\tat o.a.c.v.ErrorReportValve.invoke(ErrorReportValve.java:92)\n\tat o.a.c.c.StandardEngineValve.invoke(StandardEngineValve.java:78)\n\tat o.a.c.c.CoyoteAdapter.service(CoyoteAdapter.java:346)\n\tat o.a.c.h.Http11Processor.service(Http11Processor.java:374)\n\tat o.a.c.AbstractProcessorLight.process(AbstractProcessorLight.java:65)\n\tat o.a.c.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:887)\n\tat o.a.t.u.n.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1684)\n\tat o.a.t.u.n.SocketProcessorBase.run(SocketProcessorBase.java:49)\n\tat j.u.c.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)\n\tat j.u.c.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)\n\tat o.a.t.u.t.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n\tat java.lang.Thread.run(Thread.java:829)\n"},

Speech and DTMF recognition together

We have requirement to ask user to provide zipcode by playing audio "Please say or enter the zip code of your service address." User can either say or type zipcode. Is there any way common recognition logic to receive user input instead of using Speech and DTMF recognition separately or one after another ?

HTTP 500 in Consult Transfer when destination number does not exists

I am using this java library and I got an exception and next HTTP 500 error when Consult Transfer and destination number does not exist.

Debugging I have found that the method addTransferStatusInfo of the class VoiceXmlInputTurnFactory is not working properly when the duration property of the transfer property is retrieved.

Exactly the line 146 produces the exception:

durationValue = JsonUtils.getLongProperty(transferResultObject, TRANSFER_DURATION_PROPERTY);
Using rivr-voicexml-1.0.7.jar library (last version in the maven repository indeed).

This is the full log:

javax.servlet.ServletException: Error while rendering step.
at com.nuecho.rivr.core.servlet.DialogueServlet.process(DialogueServlet.java:421)
at com.nuecho.rivr.core.servlet.DialogueServlet.process(DialogueServlet.java:378)
at com.nuecho.rivr.core.servlet.DialogueServlet.doPost(DialogueServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:497)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)
Caused by:
java.lang.ClassCastException: javax.json.JsonValue$1 cannot be cast to javax.json.JsonNumber
at org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl.getJsonNumber(JsonObjectBuilderImpl.java:189)
at com.nuecho.rivr.voicexml.util.json.JsonUtils.getLongProperty(JsonUtils.java:96)
at com.nuecho.rivr.voicexml.servlet.VoiceXmlInputTurnFactory.addTransferStatusInfo(VoiceXmlInputTurnFactory.java:146)
at com.nuecho.rivr.voicexml.servlet.VoiceXmlInputTurnFactory.createInputTurn(VoiceXmlInputTurnFactory.java:106)
at com.nuecho.rivr.voicexml.servlet.VoiceXmlInputTurnFactory.createInputTurn(VoiceXmlInputTurnFactory.java:30)
at com.nuecho.rivr.core.servlet.DialogueServlet.createInputTurn(DialogueServlet.java:519)
at com.nuecho.rivr.core.servlet.DialogueServlet.continueDialogue(DialogueServlet.java:430)
at com.nuecho.rivr.core.servlet.DialogueServlet.process(DialogueServlet.java:398)
at com.nuecho.rivr.core.servlet.DialogueServlet.process(DialogueServlet.java:378)
at com.nuecho.rivr.core.servlet.DialogueServlet.doPost(DialogueServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:497)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)
2017-02-16 15:05:53.726:WARN:oejs.ServletHandler:qtp1633508661-15:
javax.servlet.ServletException: Error while rendering step.
at com.nuecho.rivr.core.servlet.DialogueServlet.process(DialogueServlet.java:421)
at com.nuecho.rivr.core.servlet.DialogueServlet.process(DialogueServlet.java:378)
at com.nuecho.rivr.core.servlet.DialogueServlet.doPost(DialogueServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:497)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)
Caused by:
java.lang.ClassCastException: javax.json.JsonValue$1 cannot be cast to javax.json.JsonNumber
at org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl.getJsonNumber(JsonObjectBuilderImpl.java:189)
at com.nuecho.rivr.voicexml.util.json.JsonUtils.getLongProperty(JsonUtils.java:96)
at com.nuecho.rivr.voicexml.servlet.VoiceXmlInputTurnFactory.addTransferStatusInfo(VoiceXmlInputTurnFactory.java:146)
at com.nuecho.rivr.voicexml.servlet.VoiceXmlInputTurnFactory.createInputTurn(VoiceXmlInputTurnFactory.java:106)
at com.nuecho.rivr.voicexml.servlet.VoiceXmlInputTurnFactory.createInputTurn(VoiceXmlInputTurnFactory.java:30)
at com.nuecho.rivr.core.servlet.DialogueServlet.createInputTurn(DialogueServlet.java:519)
at com.nuecho.rivr.core.servlet.DialogueServlet.continueDialogue(DialogueServlet.java:430)
at com.nuecho.rivr.core.servlet.DialogueServlet.process(DialogueServlet.java:398)
at com.nuecho.rivr.core.servlet.DialogueServlet.process(DialogueServlet.java:378)
at com.nuecho.rivr.core.servlet.DialogueServlet.doPost(DialogueServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:497)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Thread.java:745)

mavenCentral is not supported in Gradle 5.3 or latest

Hi - mavenCentral pom tags are not recognized in Gradle latest version.
Could you please guide on How to substitute with?
maven {
url = "http://repo.maven.apache.org/maven2"
}


Files:
rivr-master\build-instructions.md
rivr-master\build.gradle
rivr-master\rivr-voicexml-dialogue-runner\build.gradle

repositories { mavenCentral() }
repositories {
mavenCentral{
pom.project{ packaging 'jar' }
}
}
repositories {
mavenCentral {
pom.project { packaging 'war' }
}
}

mavenDeployer(name: 'mavenCentral')

what is default time out set for rivr application

One of IVR application is transfering call using subdialog option to our application developed using Rivr framework.
But they are getting "Dialog exiting" response from our application , even though rivr application logs shows control still processing the request. So before rivr application retrun the result back the cller application is terminating call saying they got the "Exit" response.

Is there any default timeout defined in thie rivr framework servlet "VoiceXmlDialogueServlet"

How to add audio file in the prompt as part of Interaction

How to add audio file in the prompt as part of Interaction

Interaction interaction = interaction("get-dtmf")
.addPrompt(new SpeechSynthesis("say a number between 5 and 10 digits long."))

Also how to use the grammar file while taking user input and collecting user input by listening to his voice

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.