Upload recording issues
Posted: Mon Jul 14, 2008 6:12 pm
Hi, Plum support
I have codes below http://stage.ivr.mobilemessenger.com.au/vxml/e.vxml
<http://stage.ivr.mobilemessenger.com.au/vxml/e.vxml>
<?xml version="1.0"?>
<vxml version="2.0">
<property name="inputmodes" value="dtmf"/>
<form id="waitMessage">
<block>
<prompt timeout="6s">
<audio
expr="'http://stage.ivr.mobilemessenger.com.au ... us/US7.mp3'">
Please wait while we process your request.</audio>
</prompt>
<goto next="#process"/>
</block>
</form>
<form id="process">
<block>
<submit
expr="'http://stage.ivr.mobilemessenger.com.au/index_e.php'"
method="post"
fetchaudio="http://stage.ivr.mobilemessenger.com.au ... s_us/unsub
scribing.mp3" fetchtimeout="10s" maxage="0"/>
</block>
<error>
<goto next="#fetcherror"/>
</error>
</form>
<form id="fetcherror">
<block>
<goto
next="http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml"
fetchtimeout="120s" maxage="0"/>
</block>
</form>
</vxml>
It is all working fine if I paste these codes to scratchpad.
But it will be problem if I save it to a file and plum server accesses it by remote URL http://stage.ivr.mobilemessenger.com.au/vxml/e.vxml
<http://stage.ivr.mobilemessenger.com.au/vxml/e.vxml>
See error logs below
Mon 14 Jul 2008 02:48:11 AM EDT:
Error fetching document
http://stage.ivr.mobilemessenger.com.au/index_e.php due to Operation timed out with 0 out of -1 bytes received
DocumentParser::FetchBuffer - could not open URL:
http://stage.ivr.mobilemessenger.com.au/index_e.php
DocumentParser::FetchDocument - exiting with error result 2
errno: 203 uri http://stage.ivr.mobilemessenger.com.au/index_e.php
received event: error.badfetch:
DocumentParser::FetchDocument(http://stage.ivr.mobilemessenger.com.au/vx
ml/end.vxml)
Cache Miss: http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml
Attempting to fetch
http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml So far, all is OK
Mon 14 Jul 2008 02:50:12 AM EDT:
Error fetching document
http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml due to Operation timed out with 0 out of -1 bytes received (Problem, should be no time out error)
DocumentParser::FetchBuffer - could not open URL:
http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml
DocumentParser::FetchDocument - exiting with error result 2
errno: 203 uri http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml
received event: error.badfetch:
Can not queue audio -- line disconnected
received event: connection.disconnect.hangup:
VXI::exit_element()
Call End Event
Ending session
Ending Session On Channel 37
http://stage.ivr.mobilemessenger.com.au/index_e.php
<http://stage.ivr.mobilemessenger.com.au/index_e.php> file usually will take long time to process (sometime more then 180s, and will raise an
error)
I try to catch this error and forward the request to http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml
<http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml> (very fast
page)
It is working in scratchpad.
But when plum server accesses it by remote URL http://stage.ivr.mobilemessenger.com.au/vxml/e.vxml
<http://stage.ivr.mobilemessenger.com.au/vxml/e.vxml>
Once fetching http://stage.ivr.mobilemessenger.com.au/index_e.php raises a timeout error, plum server still raise a timeout error while forwarding the request to http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml
<http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml> (but it is very fast, no timeout)
For testing, the codes of
http://stage.ivr.mobilemessenger.com.au/index_e.php is very simple. Just like below.
<?php
sleep(300);
?>
When I hang up the phone, I can see the process is still running until index_e.php is finished by backend interface http://hosting.plumgroup.com/call_logs_current.php.
It looks like that the connection to index_e.php is still not closed once the time out error raised.
Regards,
I have codes below http://stage.ivr.mobilemessenger.com.au/vxml/e.vxml
<http://stage.ivr.mobilemessenger.com.au/vxml/e.vxml>
<?xml version="1.0"?>
<vxml version="2.0">
<property name="inputmodes" value="dtmf"/>
<form id="waitMessage">
<block>
<prompt timeout="6s">
<audio
expr="'http://stage.ivr.mobilemessenger.com.au ... us/US7.mp3'">
Please wait while we process your request.</audio>
</prompt>
<goto next="#process"/>
</block>
</form>
<form id="process">
<block>
<submit
expr="'http://stage.ivr.mobilemessenger.com.au/index_e.php'"
method="post"
fetchaudio="http://stage.ivr.mobilemessenger.com.au ... s_us/unsub
scribing.mp3" fetchtimeout="10s" maxage="0"/>
</block>
<error>
<goto next="#fetcherror"/>
</error>
</form>
<form id="fetcherror">
<block>
<goto
next="http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml"
fetchtimeout="120s" maxage="0"/>
</block>
</form>
</vxml>
It is all working fine if I paste these codes to scratchpad.
But it will be problem if I save it to a file and plum server accesses it by remote URL http://stage.ivr.mobilemessenger.com.au/vxml/e.vxml
<http://stage.ivr.mobilemessenger.com.au/vxml/e.vxml>
See error logs below
Mon 14 Jul 2008 02:48:11 AM EDT:
Error fetching document
http://stage.ivr.mobilemessenger.com.au/index_e.php due to Operation timed out with 0 out of -1 bytes received
DocumentParser::FetchBuffer - could not open URL:
http://stage.ivr.mobilemessenger.com.au/index_e.php
DocumentParser::FetchDocument - exiting with error result 2
errno: 203 uri http://stage.ivr.mobilemessenger.com.au/index_e.php
received event: error.badfetch:
DocumentParser::FetchDocument(http://stage.ivr.mobilemessenger.com.au/vx
ml/end.vxml)
Cache Miss: http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml
Attempting to fetch
http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml So far, all is OK
Mon 14 Jul 2008 02:50:12 AM EDT:
Error fetching document
http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml due to Operation timed out with 0 out of -1 bytes received (Problem, should be no time out error)
DocumentParser::FetchBuffer - could not open URL:
http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml
DocumentParser::FetchDocument - exiting with error result 2
errno: 203 uri http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml
received event: error.badfetch:
Can not queue audio -- line disconnected
received event: connection.disconnect.hangup:
VXI::exit_element()
Call End Event
Ending session
Ending Session On Channel 37
http://stage.ivr.mobilemessenger.com.au/index_e.php
<http://stage.ivr.mobilemessenger.com.au/index_e.php> file usually will take long time to process (sometime more then 180s, and will raise an
error)
I try to catch this error and forward the request to http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml
<http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml> (very fast
page)
It is working in scratchpad.
But when plum server accesses it by remote URL http://stage.ivr.mobilemessenger.com.au/vxml/e.vxml
<http://stage.ivr.mobilemessenger.com.au/vxml/e.vxml>
Once fetching http://stage.ivr.mobilemessenger.com.au/index_e.php raises a timeout error, plum server still raise a timeout error while forwarding the request to http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml
<http://stage.ivr.mobilemessenger.com.au/vxml/end.vxml> (but it is very fast, no timeout)
For testing, the codes of
http://stage.ivr.mobilemessenger.com.au/index_e.php is very simple. Just like below.
<?php
sleep(300);
?>
When I hang up the phone, I can see the process is still running until index_e.php is finished by backend interface http://hosting.plumgroup.com/call_logs_current.php.
It looks like that the connection to index_e.php is still not closed once the time out error raised.
Regards,