0

DTMF Embedded Transfer "X" Layers Deep

I am attempting to write a script that has multiple layers of transfer options.  Example if a user presses 1, there are sub-options under #1, as well as sub options to #2, #3, etc...

Once I push the #1 to trigger sub-options below #1, the script simply hangs and acts as if it is not accepting the DTMF entries.  Any help would be greatly appreciated as we need to go live in the next 24 hours.  Below is my script.

 

<?php

$resultone = ask("Welcome to AFO Financial.  The premier destination for private lending solutions for personal loans from five hundred to ten thousand dollars.  Business loans up to five hundred thousand dollars.  And personal and business credit repair.  For business loans press 1.  For personal loans press 2.  For credit repair press 3.  Or for service online please visit alternative funding offers dot com.", array(

   "choices" => "1, 2, 3",

   "attempts" => 3,

   "mode" => "dtmf"

    )

);

 

if ($resultone->value == "1")

   {

        $resulttwo = ask("If your company is a startup or has been open for less than 12 months, please press 1.  If you are an established company, open for more than one year, please press 2.", array(

       "choices" => "1, 2",

       "attempts" => 2,

       "mode" => "dtmf"

        )

    );

            if ($resulttwo->value == "1"){

                say("Because startup companies require a more personalized lending process, please visit our website at w w w dot alternative funding offers dot com. Complete the simple form on the right side of the screen and get immediate access to lenders that specialize in funding startup companies just like yours.  Again, the web address is w w w dot alternative funding offers dot com.  That's w w w dot alternative funding offers dot com.  Thank you for calling AFO Financial, and have a great day.");

            }elseif ($resulttwo->value == "2"){

                say("Please hold while your call is being transferred to to one of our premier business funding specialists");

                transfer("+18324788830");

            }

      say("Please hold for a business specialist.");

      transfer("+18324788830");

    }

elseif ($resultone->value == "2")

    {

   say("Connecting you to on of our personal loan specialists.");

   transfer("+12819010905");

   }

elseif ($resultone->value == "3")

    {

   say("Please hold while I transfer your call to one of our credit repair specialists.");

   transfer("+16197326681");

    }

?>

0 comments

Please sign in to leave a comment.