VoIP Manager Shutdown (Windows CE 5.0)
An application that uses the VoIP manager should shut down the VoIP manager asynchronously by executing the following steps:
Call IVoIPMgr::Uninitialize.
This puts the VoIP manager into the VMS_SHUTTINGDOWN state. The VoIP manager then unregisters the phone with the SIP server, releases all databases, and shuts down the RTC Client.
If the application has references to the database objects, the objects remain.
For example, the TUI shuts down VAIL in the CVoIPApp::UninitializeComponents method in the VoIPApp.cpp file in %_WINCEROOT%\Public\VoIP\OAK\Phone\TUI\App.
Respond to events until the UI application receives the event, e_vseTerminated, from IVoIPUI::OnSystemEvent.
When the application receives this event, the VoIP Manager has been shut down and can be released. To exit the message loop and close the application, the application can now post a quit message to the thread.
For example, the TUI responds to this message in the CVoIPApp::OnSystemEvent method, also in the VoIPApp.cpp file in %_WINCEROOT%\Public\VoIP\OAK\Phone\TUI\App.
See Also
Creating an Application that Uses VAIL
Send Feedback on this topic to the authors