Previous PageTable Of ContentsHomeIndexNext Page


6.3.  Demo-Related Initialization (Appinit.c)

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

  1. Gets any arguments from the command line.
  2. Calls IPTResetSession( ) to reset the demo data structures and initialize all channels' states to INIT.
  3. Reads information from the configuration file (iptmail_r4.cfg or other CFG file determined by the user) and updates the ConfigFileParm in the AppSession data structure.
  4. Calls gc_Start( ): starts all configured, call control libraries.
  5. Sets up the call-back handler, PDLsr_enbhdlr( ).
  6. Calls getVoiceChannels( ) which checks the number of available voice devices:
  1. Calls getIPChannels( ) which checks the number of available IP channels:
  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).
    NOTE:
    The printf( ) function must be used when printing an error/ trace/warning during the above initialization operations, because some actions are not related to a specific channel and log files are not yet opened.
  2. Opens the channels' log files if --l command-line option was used.
  3. Prints information from the configuration file.
  4. Calls the IPInit( ) function. See Section 6.4.  IP Link-Related Initialization for a description of the IPInit( ) function.
  5. Calls the VoiceInit( ) function. See Section 6.5.  Voice-Related Initialization for a description of the VoiceInit( ) function..
  6. Calls the InitMailBoxs( ) function, which initializes the MAILBOX structure.
  7. 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 September, 2002