I am using twilio programmable voice in android. Voice call feature is working perfectly. But the state of an initiated call is showing "connected" even if the dialled party has declined or still haven't answered the call.
I have to get call duration based on it. But the way the listener shows the state of a call, it is not correct. so how can i get the information/status of a call when it is finally answered by receiver?