Hi
I am working on a kind of VoIP app for the iOS and I am facing 2 problems.
1) I would like to monitor the telephony state of the device in order to be able to reject incoming VoIP call when the user is already talking on a telephony call.
I am already listening to the events from the CTCallCenter class, but the class does not deliver events when my application is in the background/suspended state.
Furthermore the currentCalls set is NOT updated when I check the state while my app in running in the background processing mode.
Is there any other way to get the telephony state while the application is running in the background mode ?
2) I would like to reject an incoming telephony call (with a busy tone) if the user is already talking on a VoIP call.
On the net I found suggestions to use the CTCallDisconnect API, but this is a private API.
Is there any public API in order to programmatically disconnect a telephony call ?
If this is not possible I would like to reduce the volume of the ringtone/audio notifications when the user is talking on a VoIP call. How can I do this ?
Thanks for the help
Domenico