This function is only in Prosody version 1 (see also the conversion guide for further details).
int sm_get_channel_ix_module_ix(tSM_INT channel_ix)
Given a channel index, channel_ix, returns index of associated module (for use for instance with sm_get_module_info()).
Module index 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.