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

How call forward works?

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
abhay.g
Posts: 1
Joined: Fri Nov 16, 2012 6:11 pm

How call forward works?

Post by abhay.g »

Hi,

I am looking for option where we can forward call to one of our techsupport number when user press an option given by us.

Could you pls. guide us what options we have.

Thanks,
Abhay

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

Re: How call forward works?

Post by support »

Hi Abhay,

Yes, it is possible for you to do this through the <transfer> tag. The following code example demonstrates how you can do this:

transfertestscript.php

Code: Select all

<?php
header("Content-type: text/xml");
echo("<?xml version=\"1.0\"?>\n");
?>
<vxml version="2.0">
  <form id="mainmenu">
    <field name="myfield">
      <grammar type="application/x-jsgf" mode="dtmf">
        ( 1 | 2 ) 
      </grammar>
      <prompt>
        Press 1 if you'd like to be transferred to support. Press 2 if you'd like to exit.
      </prompt>
      <filled>
        <if cond="myfield==1">
          <goto next="#transfer"/>
        <else/>
          <prompt>
            Now exiting.
          </prompt>
        </if> 
      </filled>
    </field>
  </form>
  <form id="transfer">
    <transfer dest="1112224567">
      <prompt>
        Transferring to support.
      </prompt>
    </transfer>
  </form>
</vxml>
From this example, if the user presses 1, they are forwarded to support. However, please keep in mind that you cannot directly forward from a toll-free 800 number to a toll-free 800 number.

Regards,
Plum Support

Post Reply