Relative Content

Tag Archive for react-nativetwilio

Twilio RN Voice SDK – terminate call attempt before it gets connected

I’m using Twilio RN SDK (“@twilio/voice-react-native-sdk”: “^1.0.0”) and am trying to find a way to interrupt / terminate a call attempt before the person on the other end picks up the phone. The app is used only for outgoing calls. Once the user taps on a button to initiate a call, the SDK goes through a couple of stages until it reaches the ‘connected’ state. The call state remains as ringing until the person picks up (or a voicemail gets activated). Now, how would I go about ending the call (a call attempt, to be precise) while it’s ‘ringing’ before it gets connected.