How do I retrieve an Incoming phone call state in appium(web driver-java)?

I need to verify a scenario whether a phone call is ringing/ended using web driver-java?

Do we have any broadcast receiver in appium like we have for an android.

My Scenario:

I need a phone call from another number to my number programatically and I need to verify the call state whether it is ringing or ended.Help me here.