pjsua_destroy method
Destroy pjsua. Application is recommended to perform graceful shutdown before calling this function (such as unregister the account from the SIP server, terminate presense subscription, and hangup active calls), however, this function will do all of these if it finds there are active sessions that need to be terminated. This function will approximately block for one second to wait for replies from remote.
Application.may safely call this function more than once if it doesn't keep track of it's state.
@see pjsua_destroy2()
@return PJ_SUCCESS on success, or the appropriate error code.
Implementation
int pjsua_destroy() {
return _pjsua_destroy();
}