Submit to offsite url after transfer
Posted: Thu Aug 21, 2014 2:52 pm
I'm trying to setup a way to capture the transfer duration and return it to my server using a url.
It does not appear that the filled or catch is called as my log on my web server shows nothing.
When I hang up from the transfer, the call ends and no result is sent.
The xxx= value tells me which procedure is called.
It also appears that the name value pair transduration=some value does not get passed to the form data on my server. Only the standard name value pairs are received.
Here is a portion of the vxml.
<form id="transferid2">
<var name="transduration"/>
<transfer name="my_transfer" bridge="true" dest="16157793921">
<filled>
<assign name="transduration" expr="my_transfer$.duration"/>
<submit next="http://myserver.com/ivrresult?IVRID=943mc=2xxx=9" namelist="my_transfer transduration" method="post" enctype="application/x-www-form-urlencoded"/>
</filled>
<catch event="connection.disconnect">
<submit next="http://myserver.com/ivrresult?IVRID=943mc=2xxx=8" namelist="my_transfer transduration" method="post" enctype="application/x-www-form-urlencoded"/>
</catch>
</transfer>
<catch event="connection.disconnect">
<submit next="http://myserver.com/ivrresult?IVRID=943mc=2xxx=8" namelist="my_transfer transduration" method="post" enctype="application/x-www-form-urlencoded"/>
</catch>
<catch event="noinput" count="1">
<reprompt/>
</catch>
<catch event="noinput" count="2">
<disconnect/>
</catch>
<catch event="nomatch" count="1">
<reprompt/>
</catch>
<catch event="nomatch" count="10">
<disconnect/>
</catch>
</form>
It does not appear that the filled or catch is called as my log on my web server shows nothing.
When I hang up from the transfer, the call ends and no result is sent.
The xxx= value tells me which procedure is called.
It also appears that the name value pair transduration=some value does not get passed to the form data on my server. Only the standard name value pairs are received.
Here is a portion of the vxml.
<form id="transferid2">
<var name="transduration"/>
<transfer name="my_transfer" bridge="true" dest="16157793921">
<filled>
<assign name="transduration" expr="my_transfer$.duration"/>
<submit next="http://myserver.com/ivrresult?IVRID=943mc=2xxx=9" namelist="my_transfer transduration" method="post" enctype="application/x-www-form-urlencoded"/>
</filled>
<catch event="connection.disconnect">
<submit next="http://myserver.com/ivrresult?IVRID=943mc=2xxx=8" namelist="my_transfer transduration" method="post" enctype="application/x-www-form-urlencoded"/>
</catch>
</transfer>
<catch event="connection.disconnect">
<submit next="http://myserver.com/ivrresult?IVRID=943mc=2xxx=8" namelist="my_transfer transduration" method="post" enctype="application/x-www-form-urlencoded"/>
</catch>
<catch event="noinput" count="1">
<reprompt/>
</catch>
<catch event="noinput" count="2">
<disconnect/>
</catch>
<catch event="nomatch" count="1">
<reprompt/>
</catch>
<catch event="nomatch" count="10">
<disconnect/>
</catch>
</form>