Page 1 of 1

Transfer A Call To A Variable #

Posted: Wed Aug 20, 2008 2:07 pm
by Chris
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?

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>

IVR code for transfer

Posted: Wed Aug 20, 2008 3:16 pm
by support
Hi Chris,

Your transfer line of IVR code is a little off:

Code: Select all

<transfer name="DestinationPhone" dest="tel:+<value expr="application.destination_phone"/>" bridge="true" connecttimeout="15s">
It should be more like this, as described in an earlier post: http://support.plumvoice.com/viewtopic.php?t=848

Code: Select all

<transfer name="DestinationPhone" destexpr="'tel:+1' + application.destination_phone" bridge="true" connecttimeout="15s">
Regards,
Plum Support

Posted: Wed Aug 20, 2008 3:57 pm
by Chris
I appreciate the help.