Transfer A Call To A Variable #
Posted: Wed Aug 20, 2008 2:07 pm
Can I use a variable to transfer a call to?
And, assuming the variable is supplied by our ROOT document,
is this how to do it?
And, assuming the variable is supplied by our ROOT document,
is this how to do it?
Code: Select all
<?xml version="1.0"?>
<vxml version="2.0" application="ROOT.php">
<block>
<prompt>Hold the line while I transfer your call.</prompt>
</block>
<form id="TransferCall">
<transfer name="DestinationPhone" dest="tel:+<value expr="application.destination_phone"/>" bridge="true" connecttimeout="15s">
<filled>
<if cond="DestinationPhone == 'busy'">
<prompt>
Sorry, the line is busy. Try again later yourself.
</prompt>
<exit/>
<elseif cond="DestinationPhone == 'noanswer'"/>
<prompt>
Sorry, but there's no answer. You can try again later yourself. The number is <value expr="application.destination_phone"/>.
</prompt>
</if>
</filled>
</transfer>
<goto next="Goodbye.vxml"/>
</form>
</vxml>