int sm_get_channel_type(tSMChannelId channel)
Given a channel identifier, channel, returns its type as was specified for sm_channel_alloc_placed() type parameter when channel allocated.
Channel type value (greater than or equal to zero) if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody generic API.