I want to capture the duration of time in which a call transfer is done. I am using below block of code to transfer.
Code: Select all
<vxml version="2.0" xml:lang="en">
<form id="formcheck">
<var name="sessionid" expr="session.id"/>
<var name="lang" expr="''"/>
<block>
<audio src="test.mp3"></audio>
</block>
<transfer name="forwardedcall" dest="tel:01111111111" bridge="true" connecttimeout="60s" transferaudio="helloworld.wav">
<filled>
<if cond="forwardedcall=='busy'"><submit next="busy.php" namelist="sessionid lang" method="post"/>
<elseif cond="forwardedcall=='noanswer'"/><submit next="noanswer.php" namelist="sessionid lang" method="post"/>
<else/><assign name="Duration" expr="CallOperator$.duration"/><submit next="forwardedcall_duration.php" namelist="Duration sessionid lang" method="post"/>
</if>
</filled>
</transfer>
</form>
</vxml>