PREV TOC HOME INDEX NEXT


5.4 Initialization

This section describes the demo initialization as shown in Figure 4.

Figure 4. IP Gateway (Global Call) Object Oriented System Initialization

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

  1. Calls resourceManager.configure( ) to read the configuration file and command line options and prints the configuration
  2. Calls resourceManager.getChannelsNum( ) to get the number of channels defined by the user in the configuration file or command line -n switch.
  3. Calls gc_Start( ) to open all configured, call control libraries
  4. Calls printAllLibs( ) to print library status (open or failed).
  5. Sets-up the callback handler, PDLsr_enbhdlr( ). The callback handler handles events that it receives from the SRL library. For more details see Section 5.5.3, "Handling SRL Events".
  6. Calls resourceManager.init( ) to get the resources available in the system:
    1. Gets the number of IP channels in the system
    2. Gets the number of PSTN channels in the system
    3. Finds the minimum between the system channels and the user request
  7. Looks for a free IP device and returns a pointer to it
  8. Opens the IP device and if the open succeeds returns a pointer to it
  9. Looks for a free PSTN device and returns a pointer to it
  10. Opens the PSTN device and if the open success returns a pointer to it
  11. Initializes the devices on the channel
  12. The application main( ) function calls waitForKey( ), to receive keyboard input.

PREV TOC HOME INDEX NEXT

Click here to contact Telecom Support Resources

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