call-state

Detecting call state in iOS4

I would like to know if there is a possibility to detect if the user is in call from an application that is currently in background. Or, receive a notification when the call is ended if the call was initiated from my app. Or, even more than that - is there a possibility to detect which app is in foreground? I don't believe that this is...