int sm_shutdown_module(struct sm_shutdown_module_parms *shutdownp)
typedef struct sm_shutdown_module_parms { tSMModuleId module_id; /* in */ } SM_SHUTDOWN_MODULE_PARMS;
Initiates the closing of a Prosody module that was opened with sm_open_module(). Card types that use asynchronous control methods may block in sm_close_module(). This function initiates the close procedure and does not block. The resources used are not released until sm_close_module() is called, which may still block unless sm_module_status() has reported a status of kSMModuleStatusShutdown. It is a serious error to close a module on which there are open channels.
0 if call completed successfully, otherwise a standard error.
This function is part of the Prosody generic API.