Prosody generic: API: sm_get_card_switch_ix

This function is only in Prosody before the V6 API.

Prototype Definition

int sm_get_card_switch_ix(tSMCardId card)

Parameters

card
The card whose associated switch driver index is to be determined.

Description

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().

Returns

Switch driver index number if call completed successfully, otherwise a standard error such as:


This function is part of the Prosody generic API.