Page 1 of 1

Invalid Document Structure errno

Posted: Thu Jan 14, 2010 11:03 am
by w2gi
Hi,
Hi I am getting this error in the logs. Can you please tell me why this error is thrown? what does it mean by "Invalid document structure"?

Wed 13 Jan 2010 06:55:53 PM EST:
DocumentParser::FetchDocument - Parse error in file "http://somesite.com/cgi-bin/upload.cgi", line 1, column 1 - Invalid document structure
errno: 205 uri http://somesite.com/cgi-bin/upload.cgi
received event: error.badfetch:
Can not queue audio -- line disconnected
received event: connection.disconnect.hangup:
Max Disconnect Count Exceeded
Call End Event
Ending session
Ending Session On Channel 40

Code: Select all

<form id="transferout">
   <!-- Records the transer -->
   <property name="recordcall" value="true" />
   <block>
      <prompt>Please wait while we transfer your call</prompt>
   </block>   

   <transfer name="callTransfer" destexpr="'+' + document.locations[document.chosen-1].PHONE" bridge="true" connecttimeout="20s">   
	 <filled>
		<if cond="callTransfer == 'near_end_disconnect'"> 
                    <throw event="nearend" />
                <elseif cond="callTransfer == 'far_end_disconnect'"/>
                   <throw event="farend" />
                <elseif cond="callTransfer == 'busy'"/>
		   <prompt bargein="false">         
			  I am sorry but the place you are trying to transfer is busy. Please try again later.
			  <audio src="http://blah.com/temp.wav"></audio>
		   </prompt>
		   <disconnect/>                
                </if>
   </transfer>

   <catch event="connection.disconnect.hangup">
        <submit next="http://somesite.com/cgi-bin/upload.cgi" namelist="callrecording" method="post" enctype="multipart/form-data" fetchtimeout="180s" />
   </catch>

   <catch event="farend nearend">
        <submit next="http://somesite.com/cgi-bin/upload.cgi" namelist="callrecording" method="post" enctype="multipart/form-data" fetchtimeout="180s" />
   </catch>

</form>

Missing IVR tag: </filled>

Posted: Thu Jan 14, 2010 12:58 pm
by support
Hi,

From a cursory glance over the IVR code you supplied us, we had noted that you were missing the closing IVR <filled> tag. To test your IVR application's code you could use our "Validate" feature within the "Application Configuration" within your hosting account.

The reason you received the "Invalid document structure" would relate to the code pulled from "http://somesite.com/cgi-bin/upload.cgi". Our IVR platform is receiving xml code that it does not understand which causes the parse error. This IVR code could also be checked by using the "Validate" feature we mentioned earlier.

Regards,
Plum Support

Posted: Fri Jan 15, 2010 2:40 pm
by w2gi
Thanks for the reply. I did had closing <filled> tag, it got removed by accident. I fixed the upload.cgi. It works fine. Thanks!