int sm_channel_release(tSMChannelId channel)
Releases previously allocated channel. All resources used by the channel are freed. Any operations in progress on the channel are aborted. It is an error to attempt to refer to a channel which has been released.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody generic API.