Prosody generic: API: sm_channel_release

Prototype Definition

int sm_channel_release(tSMChannelId channel)

Parameters

channel
The channel to release.

Description

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.

Returns

0 if call completed successfully, otherwise a standard error such as:


This function is part of the Prosody generic API.