Re: exit gracefully?

Jens Tinfors <[email protected]> Fri, 19 Jan 2007 08:09:30 +0100
Newsgroups gmane.comp.voip.nist-sip
Message-ID <[email protected]>
I figured there was such a feature I'd overlooked!
Tanks!

/j =)

18 jan 2007 kl. 16.41 skrev M. Ranganathan:

> 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!
>