#define MAX_SIZEOF_SUBADDR_IE 24 /* as per Q931 4.5.9 */
+#define SNGSS7_SWITCHTYPE_ANSI(switchtype) (switchtype == LSI_SW_ANS88) || \
+ (switchtype == LSI_SW_ANS92) || \
+ (switchtype == LSI_SW_ANS95)
+
typedef struct ftdm2trillium
{
uint8_t ftdm_val;
/* Transmission medium requirements */
copy_txMedReq_to_sngss7(ftdmchan, &iam.txMedReq);
- /* User Service Info A */
- copy_usrServInfoA_to_sngss7(ftdmchan, &iam.usrServInfoA);
+ if (SNGSS7_SWITCHTYPE_ANSI(g_ftdm_sngss7_data.cfg.isupCkt[sngss7_info->circuit->id].switchType)) {
+ /* User Service Info A */
+ copy_usrServInfoA_to_sngss7(ftdmchan, &iam.usrServInfoA);
+ }
/* Called Number information */
copy_cdPtyNum_to_sngss7(ftdmchan, &iam.cdPtyNum);