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

Call timer #184

Open
SergeM55 opened this issue Jan 9, 2021 · 3 comments
Open

Call timer #184

SergeM55 opened this issue Jan 9, 2021 · 3 comments

Comments

@SergeM55
Copy link

SergeM55 commented Jan 9, 2021

First of all: thank you very-very-very much for your work.

I need to start timer, when call is answered. Trying to listen events:
From console:
callStateRinging data {call_sid: "CA79da86a73d9d7ae501f729066ce4b"}
connectionDidConnect data {call_state: "CONNECTED", call_sid: "CA79da86a73d9d7ae501f729066ce4b"}

"callStateRinging" event returns only call_sid.
connectionDidConnect returns "connected" always. Docs says that we can get "call_state: 'CONNECTED' | 'ACCEPTED' | 'CONNECTING' | 'RINGING' | 'DISCONNECTED' | 'CANCELLED'".
So, how can i get it ('accepted' call_state)? Thanks)

@fabriziomoscon
Copy link
Collaborator

If my memory serves me well I asked this very same question to Twilio a couple of years ago. Try search here: https://github.com/twilio/voice-quickstart-android/issues?q=
Maybe, it will be possible with SDK v5. If you find the way please let me know and I can think about the implementation.

@jdegger
Copy link
Collaborator

jdegger commented Feb 2, 2021

Hi @Serge-purr To add to @fabriziomoscon's answer, in essence this means that the current lib does not support this behavior. Workarounds would be connecting to Twilio to get the call state when you receive an event. Not ideal, but until the new SDKs are integrated with this lib you will only be able to get connected

@vuvt
Copy link

vuvt commented Dec 7, 2022

@SergeM55 Did you resolved this issue?

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

4 participants