« Back to General Discussion - All Versions

How to handle vxml syntax error

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hello!
I call to CVP application with external dynamic VXML-script. I see in IOS VXML gateway logs:
Nov  9 16:51:07.621: //9065853/E4CAF3BC03B8/VXML:/vxml_vapp_object_callhandoff:
   CALL_ERROR; http://10.184.81.51:7000/CVP/Server
   Handoff failed
Nov  9 16:51:07.637: //0/E4CAF3BC03B8/VXML:/vxml_parse:
   CALL_ERROR; http://10.61.47.76:90/nuance-datacol/DataCollection.vxml?
   at line 2: syntax error
Nov  9 16:51:07.637: //9065853/E4CAF3BC03B8/VXML:/vxml_bgload_post_done:
   CALL_ERROR; http://10.61.47.76:90/nuance-datacol/DataCollection.vxml
   Loading fail with url (http://10.61.47.76:90/nuance-datacol/DataCollection.vxml?)
Nov  9 16:51:07.637: //9065853/E4CAF3BC03B8/VXML:/vxml_jse_eval:
   CALL_ERROR; http://10.61.47.76:90/nuance-datacol/root.vxml
   at line 18: expression (_exception) error
Nov  9 16:51:07.641: //9065853/E4CAF3BC03B8/VXML:/vxml_jse_eval:
   CALL_ERROR; http://10.61.47.76:90/nuance-datacol/root.vxml
   at line 18: expression (_exception) error
 
After that call released. How to handle this VXML syntax error? I need the call to continue even in the event of an error.
BR, Vlad.

---------------------- Create a root document (that has correct vxml syntax) and catch the generic event name 'error' - this should catch any voicexml event, like error.semantic, error.badfetch.http (file not found), error.badfetch (timeout). <catch event="error"> <!-- do something --> </catch> Have you tried retrieving your VXML in a web browser to ensure the xml is correct? Your vxml syntax may still be wrong, but at least you can ensure that the xml is good. Are you in a StandAlone deployment? If not, the call will go back to ICM, so you won't lose the call.

Hello, Janine!
I create root vxml-documet
<?xml version="1.0" encoding="utf-8"?>
<vxml xmlns="http://www.w3.org/2001/vxml" xmlns:conf="http://www.w3.org/2001/vxml-conformance" version="2.1">
  <catch event="error">
    <return event="error" />
  </catch>
<form>  
<block>
<submit next="DataCollection.vxml"/>
</block>  
</form>
</vxml>
It works! Even if syntax error in DataCollection.vxml, catch error is work.
Thank you!


Thank you for your e-mail. I am OOO due to personal leave on 11/14. My responses to your email shall be delayed. I will return your email as soon as I come back on 11/15.

Thanks!
-Sethu