Synopsis:
SMcardinfo(card,&pSerial,&pCard_type,&pCard_cap,&pSw_type.&pFirst_mod,&pNummods,&pStatus)
Arguments:
card – The card number for which to retrieve information (starting from 0)
pSerial – Pointer to variable that will hold the returned serial number
pCard_type – Pointer to variable that will hold the cards type
pCard_cap - Pointer to a variable that will hold the card capabilities
pSw_type – Pointer to variable that will hold the switching bus type
pFirst_mod – Pointer to a variable that will hold the first DSP module offset on the board
pNummods – Pointer to a variable that will hold the number of DSP modules on the board
pStatus – Pointer to a variable that will hold the board status
Description: This function returns information about the specified card. The card number ranges from 0 to one less than the total number of Prosody cards in the system. The remaining arguments are pointer to variables that will hold the returned card information values.
The pCard_type will hold the card type which will be one of the following types as defined in the ACULAB.INC file:
# types of card
const ACU_PROSODY_PCI_CARD = 0x10;
const ACU_E1_T1_PCI_CARD = 0x12;
const ACU_VOIP_PCI_CARD = 0x14;
const ACU_IP_TELEPHONY_PCI_CARD = 0x14;
const ACU_PROSODY_CPCI_CARD = 0x20;
const ACU_E1_T1_CPCI_CARD = 0x21;
const ACU_PROSODY_S_CARD = 0x22;
const ACU_E1_T1_CPCI_PMX_CARRIER_CARD = 0x23;
const ACU_PROSODY_X_CARD = 0x24;
The pCard_cap will hold the card capabilities which will be one or more of the following values Or'ed together:
# functionality available on card
const ACU_RESOURCE_CALL = 1;
const ACU_RESOURCE_SWITCH = 2;
const ACU_RESOURCE_SPEECH = 4;
const ACU_RESOURCE_IP_TELEPHONY = 8;
const ACU_RESOURCE_ODPR = 16;
const ACU_RESOURCE_TRM = 32;
const ACU_RESOURCE_MG = 64;
const ACU_RESOURCE_STUN = 128;
The pSw_type will hold the type of switching resource on the card and will be one of the following:
# Switch types
const SWMODE_CTBUS_MVIP =0;
const SWMODE_CTBUS_SCBUS =1;
const SWMODE_CTBUS_H100 =2;
const SWMODE_CTBUS_PEB =3;
const SWMODE_CTBUS_MC3 =4;
The pFirst_Mod will hold the module offset of the first DSP Module on the card. Modules are number 0 from the first module found on the first card and are then numbered sequentially depending on the order that the cards are opened.
The pNummodswill hold the number of DSP modules that are on the specified card.
The pStatus holds the card status which will be 0 for inactive/disabled or 1 for active.
Returns: Returns 0 on success or -1 if bad card number supplied