I am writing a VOIP application on iOS 5 and I am trying to understand how the actual communication can stay alive while in the background.
I understand there is a m
What version of IOS, device that you are using?
This is a known "feature"/issue introduced by Apple in IOS5 to reduce battery usage of Voip apps...
VOIP app behavior at background (iOS 4.0+):
VOIP apps should be flagged at info.plist, under "Required background modes", as "voip" & "audio".
Once you've opened an Audio Session (For active call), your app may run fully at the background and it is no longer suspended, until this Audio Session is closed.
Anyway, the other alternative, is to use Push notifications as triggers for incoming calls.
Also, this will save you the trouble of maintaining a socket 24/7, save some battery,
and will work even if the user has closed the app (which is not the case with the first alternative).