Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phone number to Phone number call not working #247

Open
shehzadraheem opened this issue Jul 29, 2024 · 3 comments
Open

Phone number to Phone number call not working #247

shehzadraheem opened this issue Jul 29, 2024 · 3 comments
Assignees

Comments

@shehzadraheem
Copy link

shehzadraheem commented Jul 29, 2024

I'm trying to make a call between two Twilio phone numbers. Twilio default voice is playing. "Please configure your URL...."
Numbers are US based with local phone type.

@cybex-dev cybex-dev self-assigned this Sep 3, 2024
@cybex-dev
Copy link
Owner

Hi @shehzadraheem

Make sure to follow the instructions carefully, including all configurations:

  • token generated must be for correct TwiML app
  • TwiML app must have makeCall URL set to a function returning a Twilio Voice response.

@shehzadraheem
Copy link
Author

Hi @cybex-dev,

  • I have placed makeCall URL to Twilio Voice Response. Call is working fine.

Thanks

@shehzadraheem
Copy link
Author

shehzadraheem commented Sep 3, 2024

  • Is it possible with this package to perform call using the below api?
  • Actually, I want to make a call using the below api.
// Download the helper library from https://www.twilio.com/docs/node/install
const twilio = require("twilio"); // Or, for ESM: import twilio from "twilio";

// Find your Account SID and Auth Token at twilio.com/console
// and set the environment variables. See http://twil.io/secure
const accountSid = process.env.TWILIO_ACCOUNT_SID;
const authToken = process.env.TWILIO_AUTH_TOKEN;
const client = twilio(accountSid, authToken);

async function createCall() {
  const call = await client.calls.create({
    from: "+15017122661",
    to: "+14155551212",
    url: "http://demo.twilio.com/docs/voice.xml",
  });

  console.log(call.sid);
}

createCall();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants