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

How to handle call accept and reject for outbound call? #424

Open
oleksiiSevrukovRedvike opened this issue Sep 13, 2024 · 3 comments
Open

Comments

@oleksiiSevrukovRedvike
Copy link

Good morning. I would like to know how to know that outbound call was accepted or rejected. According to docs there is no event for such case.
I use this version "@twilio/voice-react-native-sdk": "^1.0.0",

@oleksiiSevrukovRedvike
Copy link
Author

Also I found similar issue but for release candidate version

@mhuynh5757
Copy link
Collaborator

Hi @oleksiiSevrukovRedvike do you have answerOnBridge enabled in your TwiML? In any case, you should be able to listen to the connected and connectFailure/disconnected events? Please let me know if those events do not suffice for your use case.

@ViktorSyrotkin
Copy link

ViktorSyrotkin commented Dec 13, 2024

Hey @mhuynh5757, I have the same issue. I think Oleksii ment the issue when you call to someone else and get ios native push, but you can't track if this push was rejected/declined by pressing on a red button.

Because of that, the call reconects and constantly calling unless the receiver accept it and then stops the call.

Could you pls add some code example on how to handle it with any available tool from voice-react-native-sdk.
P.S. adding answerOnBridge not helping. None call/voice events are firing when receiver rejects the call via push menu

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

No branches or pull requests

3 participants