This function is deprecated.
int sm_get_channel_module_id(tSMChannelId channel)
Given a channel returns the module on which the channel is located.
Note that this function is deprecated. It is present only to permit certain backward compatibility functionality to be implemented, should not be used by applications, and shall eventually be withdrawn from the API.
tSMModuleId if call completed successfully, otherwise a standard error.
This function is part of the Prosody generic API.