<menu> and <catch> elements

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

  • Author
  • Message
Offline

support

  • Posts: 3480
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: <menu> and <catch> elements

PostFri Oct 27, 2017 9:48 am

Hi,

The session ID is not automatically sent at the start of the call. Your VXML code will have to send the session ID to you. You were properly reading the session.id value and storing it into fldSession. You were also properly sending the session ID when calling on the MainIntro.aspx page.
Code: Select all
http://[IP]/MainIntro.aspx?Payee=QQQ&fldSession=000025%3B006%3B1508263930&languageChoice=1&selectedLanguage=English
At this point, we are not sure why you are unable to pull the session ID since it appears that you should have access to it within MainIntro.aspx via the GET variable fldSession.


Regards,
Plum Support
Offline

averlan

  • Posts: 28
  • Joined: Thu Sep 21, 2017 8:24 pm

Re: <menu> and <catch> elements

PostTue Oct 31, 2017 1:06 pm

Hello,

Here is another error we found (please see below). The validator didn't return any error though: Validate URL: http://63.88.109.203/Autoscribe.PayIVR/ ... 6945/5.xml

Please let us know. Thanks


<?xml version='1.0'?><speak>
A serious error of type </speak>
---------
bargein set to true
INPUTMODES set to "DTMF"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>error.grammar.inlined</speak>
Offline

support

  • Posts: 3480
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: <menu> and <catch> elements

PostTue Oct 31, 2017 1:28 pm

Hi,

The IVR platform includes support for JSGF and SRGS+XML for the grammar tags. The default grammar format is JSGF. Grammar types are specified using the “type” attibute. For JSGF, use “application/x-jsgf” and for SRGS+XML, use “application/srgs+xml”. Since you're attempting to write an SRGS grammar, you'll want to include the type attribute with the correct value.

Regards,
Plum Support
Offline

averlan

  • Posts: 28
  • Joined: Thu Sep 21, 2017 8:24 pm

Re: <menu> and <catch> elements

PostTue Nov 07, 2017 5:20 pm

Hello,

Please check another error below:

Validate URL: http://63.88.109.203/Autoscribe.PayIVR/ ... 912/11.xml

DocumentParser::FetchDocument - Parse error in file "CollectABA.aspx", line 95, column 22 - <audio> tag: One of the following attributes must be specified: src, expr or stream
errno: 205 uri CollectABA.aspx
received event: error.badfetch:
bargein set to true
INPUTMODES set to "DTMF"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>
A serious error of type </speak>
---------
bargein set to true
INPUTMODES set to "DTMF"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak>error.badfetch</speak>
Offline

support

  • Posts: 3480
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: <menu> and <catch> elements

PostWed Nov 08, 2017 9:54 am

Hello,

That error indicates that you have an <audio> tag without the required attributes (src, expr or stream). In order for an audio tag to function you have to specify the URL for that audio. Typically this would either be a src (statically defined URL) attribute or an expr attribute (dynamically defined URL). If you are just using Text-to-Speech only you should not be providing an <audio> tag. For example the following will throw a run-time error:
Code: Select all
<?xml version="1.0"?>
<vxml version="2.1">
   <form>
      <block>
         <prompt>
            <audio>This is some text-to-speech.</audio>
         <prompt>
      </block>
   </form>
</vxml>


While this code will run without issue:
Code: Select all
<?xml version="1.0"?>
<vxml version="2.1">
   <form>
      <block>
         <prompt>
            This is some text-to-speech.
         <prompt>
      </block>
   </form>
</vxml>


Regards,
Plum Support
Offline

averlan

  • Posts: 28
  • Joined: Thu Sep 21, 2017 8:24 pm

Re: <menu> and <catch> elements

PostFri Nov 10, 2017 4:30 pm

Hi,

Please see below the sample of the scratchpad. We would like to add a caller id variable the same way you helped us to add a session id. I have tried using the sample below without any luck. Please advise.

<?xml version="1.0"?>
<vxml version="2.0">
<form>
<block>
<var name="sessionId" expr="session.id"/>
<var name="callerid" expr="session.callerid"/>

<submit next="http://63.88.109.203/Autoscribe.PayIVR/MainIntro.aspx?payee=QQQ" namelist="sessionId callerid" method="post"/>
<disconnect/>
</block>

<error>
<prompt>
I'm sorry, but we're currently experiencing issues. Please try your call again later.
</prompt>
<disconnect/>
</error>
</form>
</vxml>
Offline

support

  • Posts: 3480
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: <menu> and <catch> elements

PostFri Nov 10, 2017 5:09 pm

Hi,

There are several different session variables within VXML. You'll specifically want the session.telephone.ani for this use case.

Regards,
Plum Support
Offline

averlan

  • Posts: 28
  • Joined: Thu Sep 21, 2017 8:24 pm

Re: <menu> and <catch> elements

PostMon Nov 13, 2017 11:01 am

Thanks! That worked.
Offline

averlan

  • Posts: 28
  • Joined: Thu Sep 21, 2017 8:24 pm

Re: <menu> and <catch> elements

PostFri Nov 17, 2017 11:53 am

Hello,

We have a quick question. Can we use a Scratchpad with an audio file? Thanks
Offline

support

  • Posts: 3480
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: <menu> and <catch> elements

PostFri Nov 17, 2017 2:52 pm

Hi,

Yes, you can absolutely use audio files uploaded to your account's file repository within a scratchpad. However when referencing the audio file you must use the full path name. You can get the full path by:

1. Going to your file repository
2. Locating the desired file
3. Right clicking on the link icon and selecting `Copy link address`

Once you have the full path name you can insert it into your scratchpad as follows:

<audio src="<Full File Path>.wav"></audio>

Regards,
Plum Support
Offline

averlan

  • Posts: 28
  • Joined: Thu Sep 21, 2017 8:24 pm

Re: <menu> and <catch> elements

PostMon Nov 20, 2017 10:19 am

Hi,

Thanks for your response. I was not able to locate my file repository. I followed the directions from your documentation (please check the link below). Is it possible that it' not enabled or something? Thanks.

http://www.plumvoice.com/docs/dev/plumdevguide:filerepo
Offline

support

  • Posts: 3480
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: <menu> and <catch> elements

PostMon Nov 20, 2017 4:22 pm

Hi,

Your account was not enabled for our File Repository. We have enabled that feature for you. If you would prefer to host the files on your own web server, that is also an option. If you include the full URL within the src attribute of the audio tag, the IVR system will attempt to fetch the file and fall back to any supplied TTS in case it was unable to fetch it.

Regards,
Plum Support
Previous

Return to Plum DEV Q&A

Who is online

Users browsing this forum: No registered users and 1 guest

cron