Re: exit gracefully?
"M. Ranganathan" <[email protected]> Thu, 18 Jan 2007 10:41:57 -0500
| Newsgroups | gmane.comp.voip.nist-sip |
|---|---|
| Message-ID | <[email protected]> |
Jens, Did you try SipStack.stop () That kills all the threads and should allow you to exit. Regards Ranga Jens Tinfors wrote: > hi, > > I can't quite figure out how to exit or should I say uninitialize > gracefully in my Jain-SIP based app. > > In my app I execute the following when I want to exit: > headerFactory = null; > > addressFactory = null; > > messageFactory = null; > > sipFactory.resetFactory(); > sipStack.deleteListeningPoint(listeningPoint); > sipProvider.removeListeningPoint(listeningPoint); > sipProvider.removeListeningPoint(listeningPoint_UDP); > sipStack.deleteSipProvider(sipProvider); > sipProvider = null; > > sipFactory = null; > > sipStack = null; > > But still it hangs instead of exits.. Have I overlooked something here? > > thanks > /j =) > _______________________________________________ > nist-sip mailing list > [email protected] > http://www-x.antd.nist.gov/mailman/listinfo/nist-sip > -- M. Ranganathan Advanced Networking Technologies Division, National Institute of Standards and Technology (NIST), 100 Bureau Drive, Stop 8920, Gaithersburg, MD 20899. tel:301 975 3664 , fax:301 590 0932 http://w3.antd.nist.gov/ Advanced Networking Technologies For the People!