Open siddiquesheikh30 opened 1 month ago
Hello @siddiquesheikh30 you have some personal info in your code blocks that you might want to redact, including your account SIDs and phone numbers. Also, please format your code blocks using triple backticks.
Hi @mhuynh5757, I have updated it also I understood why it is saying Direction: 'inbound'
it is because:
caller---- parent call ----> Twilio ---- child call ----> Called
okay, but I want to see incoming calls here what particular changes do I have to make in my node Js server and also in my react-native code?
Hi @siddiquesheikh30 have you seen our reference app that utilizes this SDK? https://github.com/twilio/twilio-voice-react-native-app
It may provide some help and inspiration for getting incoming calls working in your application.
Yes, hi @mhuynh5757 thank you, the incoming calls are working, but please tell me how to switch the mobile speaker on/off, hold/uphold the call, and mute/unmute the call. I have gone through https://github.com/twilio/twilio-voice-react-native-app this reference app but I am still unable to find the solution so if possible, please provide me the required methods to use.
Hi @siddiquesheikh30 that repo has examples on how to mute/unmute a call, as well as hold/resume a call. Here are some relevant links.
For hold functionality: https://github.com/twilio/twilio-voice-react-native-app/blob/main/app/src/store/voice/call/activeCall.ts#L181
For mute functionality: https://github.com/twilio/twilio-voice-react-native-app/blob/main/app/src/store/voice/call/activeCall.ts#L145
Issue
I need guidance on receiving incoming calls and making outgoing calls using Twilio and React Native. Could you provide more detailed steps or support on setting this up? for your info, I can provide you with my node Js backend code:
And also I can give you my Front-end react-native code also:
The above code is my react-native code when I try to make an outbound call from my app using Twilio number to the verified number given in the code: the response I am getting on my server console is also given below:
As we can see here we are making an outbound call but getting Direction as 'inbound' but I can still call this number so can you please help me understand this? Also, what do I do to make an incoming call successful here and show it in the react-native app that I am receiving a call and can receive it? I am also adding call logs of my Twilio call logs so that you can see I can make calls here but please help make an app that can receive incoming calls also.
Software and Device Information
Please complete the following information.