0
votes

I am trying to integrate voice calling feature with Twilio. I use react-native-twilio-programmable-voice. I place call from my application to a mobile number which is verified in twilio account. But When i hear the call it is playing the TwilioML xml message and in debugger it is showing inbound call. It should be outbound call since I am calling from my application to another number.

Why this is happening? My application just need to call on other numbers. I don't want incomming call to application.

TwilioVoice.connect({ To: +9196xxxxxxxx, From: '+14158959608' })

enter image description here

----- Update -----

XML updated to

<?xml version="1.0" encoding="UTF-8"?>
<Response>
    <Dial>+91969xxxxxxx</Dial>
</Response>

also used Twilio ML bin

enter image description here

But now showing error "callerId must be provided for TwilioClient and SIP calls when using Dial"

Where i made mistake ?

1

1 Answers

2
votes

A call from a Twilio client is inbound to Twilio. The Voice URL defined in your TwiML App is then interrogated to determine where to route the call. There are two call legs, the inbound leg from the client and the outbound leg to the dialed party which you need to construct in the TwiML. The TwiML will use the Dial verb and Number noun.

Setting Up Call Forwarding

How Does Twilio Client Pricing Work?