We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Transfer A Call To A Variable #

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
Chris
Posts: 64
Joined: Wed Jul 23, 2008 12:50 pm

Transfer A Call To A Variable #

Post 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>
Thanks,
Chris

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

IVR code for transfer

Post 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
Last edited by support on Mon Jan 11, 2010 2:06 pm, edited 2 times in total.

Chris
Posts: 64
Joined: Wed Jul 23, 2008 12:50 pm

Post by Chris »

I appreciate the help.
Thanks,
Chris

Post Reply