Previous PageTable Of ContentsHomeIndexNext Page


6.4.  Initializations

The application main( ) function calls gateInitialize( ), which does the following:

  1. Calls checkArg( ) to check for command line parameters and handle them accordingly.
  2. Calls IPTResetSession( ) to reset the demo data structures and initialize all channels' states to INIT.
  3. Calls ClearAllBoards( ) to reset the board structures to default values.
  4. Calls gateConfiguration( ) to read information from the configuration file (gateway_R4.cfg or other CFG file determined by the user) and update the ConfigFileParm in the Session data structure.
  5. Calls gc_Start( ) to open all configured, call control libraries.
  6. Calls printAllLibs( ) to print library status (open or failed).
  7. Sets-up the call-back handler, PDLsr_enbhdlr( ). The callback handler handles events that it receives from the SRL library. For more details see Section 6.5.2.  Handling SRL Events.
  8. Calls pstnGetVOXChannels( ) which checks how many available PSTN voice channels there are by doing the following:
  1. Call ipGetChannels( ) which checks how many available IP channels there are by doing the following:
  1. Calls getGateChannels( ) to find the demo MAX available channels (the smaller of available IP or Voice Devices and the number of channels specified with the --n command line option, if used).
  2. Calls pstnOpenFrontEnd( ) which opens the PSTN channels by doing the following. For each channel:
  1. Calls ipOpenDevices( ) which opens the IP channels by doing the following:
  2. The application main( ) function calls waitForKey(  ), to receive keyboard input.

Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Telecom Support Resources

Copyright 2002, Intel Corporation
All rights reserved
This page generated October, 2002