isdnStartProtocol
|
Description |
Starts up an ISDN protocol stack instance on a specified CTA context. | ||||
|
Prototype |
DWORD isdnStartProtocol ( CTAHD ctahd, ctahd CTA context handle associated with a D channel, returned by ctaCreateContext or adiOpenPort. protocol Configuration to start protocol instance in:
netoperator The network operator variant to start. Valid values for netoperator depend on the runfile, as follows: | ||||
|
Runfiles |
Available Variants | ||||
|
systius.run, sysqius.run |
ISDN_OPERATOR_ATT_5E9 | ||||
|
systieu.run, sysqieu.run |
|||||
|
systias.run, sysqias.run |
ISDN_OPERATOR_NTT | ||||
|
country Country mode for the network operator variant to start in. Note that the behavior of a variant may change depending on the country specified. Note also that if you start the protocol stack on more than one NAI, country must be the same for all NAIs. The following are valid operator and country combinations: | |||||
|
Country |
Available Variants | ||||
|
COUNTRY_BEL |
ISDN_OPERATOR_ETSI | ||||
|
COUNTRY_FRA |
|||||
|
COUNTRY_GER |
ISDN_OPERATOR_ETSI | ||||
|
COUNTRY_JPN |
|||||
|
COUNTRY_SWE |
ISDN_OPERATOR_ETSI | ||||
|
COUNTRY_UK |
ISDN_OPERATOR_ETSI | ||||
|
COUNTRY_USA |
ISDN_OPERATOR_ATT_5E9 | ||||
|
COUNTRY_EUR2 |
ISDN_OPERATOR_ETSI | ||||
|
nai The network access identifier (NAI) of the D channel to link to the protocol stack instance. partner_equip | |||||
|
If the AG board is... |
And AG ISDN is to run in... |
Set partner_equip to: | |||
|
Connected to network |
ACU configuration |
EQUIPMENT_NT | |||
|
LAPD configuration |
|||||
|
Acting as network |
ACU configuration |
EQUIPMENT_TE | |||
|
LAPD configuration |
EQUIPMENT_DTE | ||||
|
parms Pointer to the parameter block/structure required by the protocol:
When parms is NULL, the default parameters for the protocol are used. The default parameters for each protocol enable the required service access points (SAPIs). For the ACU configuration, all the services are supported by default. Note that the size field of the structure must contain the size of the structure. Refer to Appendix C: Parameters for more details on the contents of these parameter structures. | |||||
|
Return Values |
SUCCESS CTAERR_BAD_ARGUMENT CTAERR_INVALID_CTAHD CTAERR_INVALID_STATE CTAERR_OUT_OF_MEMORY | ||||
|
Events |
ISDNEVN_START_PROTOCOL SUCCESS ISDNERR_BAD_NAI ISDNERR_INVALID_COUNTRY ISDNERR_INVALID_HDLC_CHAN ISDNERR_INCOMPATIBLE_LIB ISDNERR_INVALID_OPERATOR ISDNERR_INVALID_PARTNER ISDNERR_INVALID_PROTOCOL ISDNERR_NAI_IN_USE ISDNERR_PROTOCOL_CC_FAILURE ISDNERR_PROTOCOL_DL_FAILURE ISDNERR_PROTOCOL_NS_FAILURE ISDNERR_PROTOCOL_PH_FAILURE | ||||
|
Details |
Starts the specified protocol on the AG board that is associated with the specified ctahd. The runfile is specified in the AG configuration file. For more information, see the AG ISDN Installation Manual and the AG Runtime Configuration and Developer's Manual. If the parms pointer is NULL, the default values for the specified protocol are used. It is assumed that an HDLC data stream has been connected to the specified HDLC controller during initialization or by explicit switching calls. The parameters to the particular selected protocol are found in the parms data structure defined in isdnparm.h. | ||||
|
See Also |
isdnStopProtocol | ||||
|
Example 1 |
mystartisdn (CTAHD ctahd) /* use defaults */ | ||||
|
Example 2 |
mystartisdn (CTAHD ctahd) /* user-specified parms */ | ||||
Natural MicroSystems, Inc.
100 Crossing Boulevard
Framingham, MA 01702
2 Includes the following countries: Austria, Denmark, Finland, Greece, Iceland, Ireland, Italy, Liechtenstein, Luxembourg, Netherlands, Norway, Portugal, and Spain