This function is only in Prosody before the V6 API.
int sm_get_card_switch_ix(tSMCardId card)
Given a Prosody carrier card index, returns index of
associated switch driver (for use in switch driver API calls
such as sw_set_output). Note that not all Prosody
carrier cards have an associated switch driver (for these card
types this call returns the error
ERR_SM_NO_ASSOCIATED_SWITCH).
Note the switch driver index can also be obtained from
sm_channel_info().
Switch driver index number if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody generic API.