We would like to detect the ungraceful exit to unregister the account and not waiting the server side timeout. Your solution simulates this behavior only. Samuel Le 13 mars 2013 ? 20:53, John Mah <john at jazinga.com> a ?crit : > On 2013-03-13 12:34 PM, samuelv at laposte.net wrote: >> You are right some VoIP manage the 'kill -9' like skype and other >> application. I asked on apple developer forum abd on apple develepor >> support how to do that. Unfortunately, they told me they don't >> comment the solution used by other applications. >> >> Maybe they catch some message of launchd. >> >> If you resolve the issue, I m interested by your solution. > > It is very likely that Skype is detecting the ungraceful exit (from the termination) upon subsequent relaunch as opposed to catching the termination event itself. (One could easily write something to NSUserDefaults which says that it exited gracefully, and then clear it upon relaunch; if the flag isn't present when the app is launched it does something different upon relaunch) > > cheers, > - j > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org