Prosody generic: API: sm_get_channel_type

Prototype Definition

int sm_get_channel_type(tSMChannelId channel)

Parameters

channel
The channel whose type is to be returned.

Description

Given a channel identifier, channel, returns its type as was specified for sm_channel_alloc_placed() type parameter when channel allocated.

Returns

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.