I am currently developing an application using the free developer account and are not getting a call transfer to work successfully. It worked once but all subsequent attempt results in noanswer even though the phone lines to which we are testing call transfer are all free. I have tried with various phone numbers but failed with all.
Following is my VoiceXML script:
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<vxml version="2.0" xmlns="http://www.w3.org/2001/vxml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.w3.org/2001/vxml
http://www.w3.org/TR/voicexml20/vxml.xsd"
application="common.vsp">
<meta http-equiv="Expires" content="0" />
<script>
<![CDATA[
var retryCount = 0;
var transferNumber = 'tel:17145945595;postd=pp1100';
function maxRetryExceeded()
{
if (parseInt(retryCount) > 20)
{
return true;
}
else
{
return false;
}
}
function incRetryCount()
{
retryCount++;
}
]]>
</script>
<form id="transfer">
<transfer name="callTransfer" destexpr="transferNumber" connecttimeout="20s">
<filled>
<log expr="'transfer call completed for phone ' + transferNumber + ' with status ' + callTransfer" />
<if cond="callTransfer=='noanswer'">
<log expr="'retryCount is ' + retryCount"/>
<if cond="!maxRetryExceeded()">
<log expr="'We have retried less than 20 times ' + retryCount"/>
<script>
<![CDATA[
incRetryCount();
]]>
</script>
<log expr="'retryCount is ' + retryCount"/>
<prompt bargein="false">
<voice>
All our customer care associates are currently
busy helping other customers. Please wait while
your call is connected.
</voice>
</prompt>
<clear namelist="callTransfer"/>
<goto next="#transfer"/>
</if>
<submit next="callCompleted.vsp" namelist="<%=commonParams%> callTransfer"/>
</if>
</filled>
<catch>
<submit next="callCompleted.vsp" namelist="<%=commonParams%> callTransfer"/>
</catch>
</transfer>
</form>
</vxml>
Following is the Logs generated by the system:
Mon 10 Aug 2009 10:08:01 PM EDT:
DocumentParser::FetchDocument(transferCallStart.vsp)
Cache Miss: http://65.60.116.165:8080/cons/transfer ... elivered=0
Attempting to fetch http://65.60.116.165:8080/cons/transfer ... elivered=0
DocumentParser::FetchDocument(common.vsp)
Cache Miss: http://65.60.116.165:8080/cons/common.vsp
Attempting to fetch http://65.60.116.165:8080/cons/common.vsp
VXI::var_element(name="isAnsweringMachine" expr = "'false'")
VXI::var_element(name="callRequestId" expr = "64")
VXI::var_element(name="callLegId" expr = "159")
VXI::var_element(name="msgDelivered" expr = "false")
VXI::queue_prompts()
Bridge Transfer: tel:17145945595;postd=pp1100
Mon 10 Aug 2009 10:08:21 PM EDT:
Makecall Failed: Timeout of 20s reached
transfer call completed for phone tel:17145945595;postd=pp1100 with status noanswer
retryCount is 0
We have retried less than 20 times 0
retryCount is 1
bargein set to false
INPUTMODES set to "DTMF"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak><voice><speak>
All our customer care associates are currently
busy helping other customers. Please wait while
your call is connected.
</speak></voice></speak>
---------
Mon 10 Aug 2009 10:08:22 PM EDT:
Newly queued prompts are now being played
VXI::queue_prompts()
Mon 10 Aug 2009 10:08:30 PM EDT:
Bridge Transfer: tel:17145945595;postd=pp1100
Mon 10 Aug 2009 10:08:50 PM EDT:
Makecall Failed: Timeout of 20s reached
transfer call completed for phone tel:17145945595;postd=pp1100 with status noanswer
retryCount is 1
We have retried less than 20 times 1
retryCount is 2
bargein set to false
INPUTMODES set to "DTMF"
Audio segment added to prompt queue from TTS application/synthesis+ssml for:
---------
<?xml version='1.0'?><speak><voice><speak>
All our customer care associates are currently
busy helping other customers. Please wait while
your call is connected.
</speak></voice></speak>
---------
Newly queued prompts are now being played
VXI::queue_prompts()