SERIOUS error.badfetch
Posted: Wed Jul 24, 2013 12:00 am
I get a 'serious error badfetch' on every call. My vxml executes and then reads the error into a caller's ear. I've tried every combination of <data> and <submit> tags, but the errors keep occurring when the data is sent to my server. I thought the problem was that I was using <submit>, but my script didn't return XML when requested, so I modified it to use the <data> tag. That didn't help. Now, I've re-written my script to echo back headers, DOCTYPE declarations, and XML, to no avail. I've got it now returning the most minimum quantity of XML, hoping it will be valid. Still no dice. I definitely need help diagnosing this. I'm stumped.
Incidentally, the back-end works flawlessly, posting call metadata and DTMF input to my handler, which, in turn parses it and inserts it into my SQL db reliably, both for actual calls, as well as simulations with my browser. It complains alot, but gets the job done. As a stop-gap, I was considering simply using the call termination to trigger the post (thus not exposing users to my error messages), but feel it's better to actually fix the problem.
Here's the XML generated by my php script:
And the call logs...
Incidentally, the back-end works flawlessly, posting call metadata and DTMF input to my handler, which, in turn parses it and inserts it into my SQL db reliably, both for actual calls, as well as simulations with my browser. It complains alot, but gets the job done. As a stop-gap, I was considering simply using the call termination to trigger the post (thus not exposing users to my error messages), but feel it's better to actually fix the problem.
Code: Select all
(... executes great up to this point... ) <data name="datafetch" src="http://www.mysite.com/ivr/pin_handler.php" namelist="pin callback_phone cid session_id dnis" method="post"/>
<prompt bargein="false" timeout="6000">
Sending information to server now. <value expr="datafetch"/>
</prompt>
<disconnect/>
</block>
<catch event="connection.disconnect">
<submit next="http://www.mysite.com/ivr/pin_handler.php" namelist="pin callback_phone cid session_id dnis" method="post" enctype="multipart/form-data"/>
</catch>
</form>
</vxml>
Code: Select all
<vxml version="2.1">
<form>
<prompt name="end" bargein="true">Thank you. Goodbye.</prompt>
</form>
</vxml>
Code: Select all
errno: 205 uri http://www.mysite.com/ivr/pin_handler.php
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>
---------
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> has occurred. Exiting. </speak>
---------
VXI::exit_element()
starting playback: bargein=true, inputmodes="dtmf"
Newly queued prompts are now being played