We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

<menu> and <catch> elements

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: <menu> and <catch> elements

Post by support »

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

averlan
Posts: 30
Joined: Thu Sep 21, 2017 8:24 pm

Re: <menu> and <catch> elements

Post by averlan »

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>

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: <menu> and <catch> elements

Post by support »

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

averlan
Posts: 30
Joined: Thu Sep 21, 2017 8:24 pm

Re: <menu> and <catch> elements

Post by averlan »

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>

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: <menu> and <catch> elements

Post by support »

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

averlan
Posts: 30
Joined: Thu Sep 21, 2017 8:24 pm

Re: <menu> and <catch> elements

Post by averlan »

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/ ... ?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>

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: <menu> and <catch> elements

Post by support »

Hi,

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

Regards,
Plum Support

averlan
Posts: 30
Joined: Thu Sep 21, 2017 8:24 pm

Re: <menu> and <catch> elements

Post by averlan »

Thanks! That worked.

averlan
Posts: 30
Joined: Thu Sep 21, 2017 8:24 pm

Re: <menu> and <catch> elements

Post by averlan »

Hello,

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

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: <menu> and <catch> elements

Post by support »

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

averlan
Posts: 30
Joined: Thu Sep 21, 2017 8:24 pm

Re: <menu> and <catch> elements

Post by averlan »

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

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: <menu> and <catch> elements

Post by support »

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

Post Reply