Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6050883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:44:24+00:00 2026-05-23T07:44:24+00:00

I am using the dial verb and after a while of calling it sends

  • 0

I am using the dial verb and after a while of calling it sends me to the voice message of that person but instead I want it to call a separate number if the first did not work. I am aware of the fact that I can set time out but I dont know how to format the line of code with a set of parameters. By the I mean where or how am I suppose to put the parameters?
My Goal or aim is to make a sequential dialling program.
Meaning in the following code where would you put the parameters ? Generally in programming you have function (parameter1, parameter2, parameter3) But this seems different.

<Response>
     <Dial> 416-794-8543</Dial>
    <Say>Hello Monkey <?php echo $tryME ?></Say>
</Response>

My current code if you would like to see is below:

<?php
    require "twilio.php";

    // initiate response library
    $response = new Response();

    header("content-type: text/xml");
    echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";


$PhoneNumbers= array('4167841543','6478704858');



$variableToCall=$PhoneNumbers[0];

    if(($_REQUEST['DialStatus'] == "busy" || $_REQUEST['DialCallStatus'] == "no-answer" || $_REQUEST['DialCallStatus'] == "failed" || $_REQUEST['DialCallStatus'] == "canceled")) {

       $variableToCall=$PhoneNumbers[1];

    }




?>


<Response>
<Dial> <?php echo $variableToCall ?> </Dial>

</Response>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:44:24+00:00Added an answer on May 23, 2026 at 7:44 am

    The response should look like this TwiML:

    <Response>
        <Dial timeout="45"><?php echo $variableToCall ?></Dial>
    </Response>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A Right now I have sequential dialing being done using Dial verb but now
I have a client that wants to connect to his MySQL database using Dial-up/Modem
I am trying out the record outgoing call using mic written this code but
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using C#, I need a class called User that has a username, password, active
I'm using Silverlight, but I'd be interested in a WPF answer as well I
Problem: I'm working on a website where there is a dial that displays a
I am attempting to call a remote modem using a local modem connected via
I have an ASP.NET page that is interacting with a business class. I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.