Is there a way to get phone call state?


Could you please help me to find a way to track phone call state? I mean I need to know a call is finished

Something like the android solution -

**and it will be extremly useful to know the end call status - busy / call ended / subscriber unavailable