Record the call for the transfer tag
Posted: Wed Jan 02, 2013 12:40 pm
I have the following code:
<form id="transferOperator">
<block>
<var name="Duration" expr="'0'"/>
<assign name="MenuId" expr="'8'" />
</block>
<transfer name="CallOperator" dest="tel:XXXXXX" connecttimeout="20s" bridge="true" >
<prompt>
<audio src="Files/TransferOperator.wav">
</audio>
</prompt>
<filled>
<if cond="CallOperator == 'busy'">
<goto next="#transferOperator2" />
<elseif cond="CallOperator == 'noanswer'"/>
<goto next="#transferOperator2" />
<else/>
<assign name="Duration" expr="CallOperator$.duration"/>
<assign name="R1" expr="CallOperator$.recording"/>
<data name="info1" src="getIVR.ashx" method="post" namelist="SessionId MenuId R1 Duration" enctype="multipart/form-data"/>
</if>
</filled>
</transfer>
</form>
As of now when the post happens the variable R1 and Duration are not populated. What am i doing wrong? I record the whole call but i want the call between the caller and the operator to be it's own recording. This piece of code used to work, so something might have changed. Please advise.
Thanks,
Sergiu
<form id="transferOperator">
<block>
<var name="Duration" expr="'0'"/>
<assign name="MenuId" expr="'8'" />
</block>
<transfer name="CallOperator" dest="tel:XXXXXX" connecttimeout="20s" bridge="true" >
<prompt>
<audio src="Files/TransferOperator.wav">
</audio>
</prompt>
<filled>
<if cond="CallOperator == 'busy'">
<goto next="#transferOperator2" />
<elseif cond="CallOperator == 'noanswer'"/>
<goto next="#transferOperator2" />
<else/>
<assign name="Duration" expr="CallOperator$.duration"/>
<assign name="R1" expr="CallOperator$.recording"/>
<data name="info1" src="getIVR.ashx" method="post" namelist="SessionId MenuId R1 Duration" enctype="multipart/form-data"/>
</if>
</filled>
</transfer>
</form>
As of now when the post happens the variable R1 and Duration are not populated. What am i doing wrong? I record the whole call but i want the call between the caller and the operator to be it's own recording. This piece of code used to work, so something might have changed. Please advise.
Thanks,
Sergiu