pjsua_transport_close method
Close the transport. The system will wait until all transactions are closed while preventing new users from using the transport, and will close the transport when it is safe to do so.
NOTE: Forcefully closing transport (force = PJ_TRUE) is deprecated, since any pending transactions that are using the transport may not terminate properly and can even crash. Application wishing to immediately close the transport for the purpose of restarting it should use #pjsua_handle_ip_change() instead.
@param id Transport ID. @param force Must be PJ_FALSE. force = PJ_TRUE is deprecated.
@return PJ_SUCCESS on success, or the appropriate error code.
Implementation
int pjsua_transport_close(
int id,
int force,
) {
return _pjsua_transport_close(
id,
force,
);
}