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

If data element succeeds, or fails, what does log show?

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
moshe
Posts: 66
Joined: Wed Aug 15, 2007 5:36 pm
Location: Chicago
Contact:

If data element succeeds, or fails, what does log show?

Post by moshe »

I'm pretty certain that a data element has failed to actually retrieve data; the code is completely debugged (albeit on a different platform) and I know what log messages to execpt after a successful retrieval.

What I have now in the log file is:
Attempting to fetch http://(removed)/getUpdates.php
:::::::LOG:::::::: data details
VXI::foreach_element()
What I'd expect to see is "data details" and some information about the retrieved data, for debugging. The lack of any info whatsoever indicates that the retrieve (apparently) failed to happen.

I don't see error.badfetch, but on the other hand I don't see any indication that any data whatsoever were retrieved. What does a successful data element transfer look like? What does a failure look like?

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

IVR app would accept the valid xml from the remote xml file

Post by support »

Hi,

One possible failure that could occur is if a data element made reference to a remote xml file that did not exist. The IVR error log would look something like this:

Code: Select all

Attempting to fetch http://www.example.com/~victor/baddatatag2.xml
HTTP/1.1 404 Not Found - http://www.example.com/~victor/baddatatag2.xml
DocumentParser::FetchXML - could not open URL: http://www.example.com/~victor/baddatatag2.xml
errno: 203 uri http://www.example.com/~victor/baddatatag2.xml
received event: error.badfetch 
Another possible failure that could occur is if the data element made reference to a bad xml file with an error in it.

For an IVR example, here's a what a bad xml file would look like:

Code: Select all

<?xml version="1.0"?>
<boolean>
<asdf>
false
</boolean>
The IVR error log would show:

Code: Select all

Attempting to fetch http://www.example.com/~victor/baddatatag.xml
Parse error in file "http://www.example.com/~victor/baddatatag.xml", invalid XML
errno: 205 uri http://www.example.com/~victor/baddatatag.xml
received event: error.badfetch 
However, for a successful data element transfer, the IVR log would show something like this:

Code: Select all

Attempting to fetch http://www.example.com/~victor/datatag.xml
bargein set to true
INPUTMODES set to "DTMF VOICE"
Audio segment added to prompt queue from TTS text/plain;charset=wchar_t for:
--------- 
Basically, the IVR application would accept the valid xml from the remote xml file and move on with the rest of the script.

Hope this helps.

Regards,
Plum Support
Last edited by support on Fri Feb 19, 2010 4:25 pm, edited 3 times in total.

moshe
Posts: 66
Joined: Wed Aug 15, 2007 5:36 pm
Location: Chicago
Contact:

Post by moshe »

Thank you. That tells me the data element is functioning properly and that the error lies elsewhere.

Post Reply