isupInitNSapCfg

Builds a network service access point configuration buffer that can be passed to isupNSapCfg.

Prototype

void isupInitNSapCfg ( IsupNSapCfg *cfg, S16 switchType)

Argument

Description

cfg

Pointer to the following IsupNSapCfg structure to initialize:

typedef struct _IsupNSapCfg /* ISUP Network Sap Config. struct (LOWER) */
{
  S16        switchType;       /* Protocol Switch                      */
  S16        spId;             /* Service provider id                  */
  U8         database[(MAX_DB_LEN+5) & 0xffc];  /* Database name       */
  U8         ssf;              /* Sub service field                    */
  U8         dstEntity;        /* Entity                               */
  U8         dstInstance;      /* Instance                             */
  U8         priority;         /* Priority                             */
  U16        dstProcId;        /* Destination processor id             */
  S16        sapType;          /* Sap type                             */
  U8         route;            /* Route                                */
  U8         numResInd;        /* Max simultaneous res ind to upper    */
  U8         selector;         /* Selector                             */
  U8         fill1;
  MemoryId   mem;              /* Memory region & pool id              */
} IsupNSapCfg;

Refer to the Details section for more information.

switchType

Switch type indicator.


Details

After calling isupInitNSapCfg, call isupNSapCfg to set the network service access point configuration. You can optionally override specific field values before calling isupNSapCfg.

The fields of the IsupNSapCfg structure are initialized with the following values:

Field

Description

switchType

One of the following switch type indicators specified in switchType:

ISUP_SW_ITU

ISUP_SW_ANS88

ISUP_SW_ANS92

ISUP_SW_JNTT

ssf

ISUP_SSF_NAT


Structure members not indicated in the previous table are initialized to appropriate values for proper operation of the ISUP stack and must not be modified.

Example

IsupNsapCfg  cfg;
U16          switchType = ISUP_SW_ANS92;

/* Initialize NSAP configuration parameters to default values */

isupInitNSapCfg
(&cfg, switchType);