
Demo Guide
05-2389-003

INFORMATION IN THIS DOCUMENT IS PROVIDED IN CONNECTION WITH INTEL® PRODUCTS. NO LICENSE, EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, TO ANY INTELLECTUAL PROPERTY RIGHTS IS GRANTED BY THIS DOCUMENT. EXCEPT AS PROVIDED IN INTEL'S TERMS AND CONDITIONS OF SALE FOR SUCH PRODUCTS, INTEL ASSUMES NO LIABILITY WHATSOEVER, AND INTEL DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY, RELATING TO SALE AND/OR USE OF INTEL PRODUCTS INCLUDING LIABILITY OR WARRANTIES RELATING TO FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT. Intel products are not intended for use in medical, life saving, or life sustaining applications.
Intel may make changes to specifications and product descriptions at any time, without notice.
This IP Media Server for Host Media Processing Demo Guide as well as the software described in it is furnished under license and may only be used or copied in accordance with the terms of the license. The information in this manual is furnished for informational use only, is subject to change without notice, and should not be construed as a commitment by Intel Corporation. Intel Corporation assumes no responsibility or liability for any errors or inaccuracies that may appear in this document or any software that may be provided in association with this document.
Except as permitted by such license, no part of this document may be reproduced, stored in a retrieval system, or transmitted in any form or by any means without express written consent of Intel Corporation.
Copyright © 2003, Intel Corporation
BunnyPeople, Celeron, Chips, Dialogic, EtherExpress, ETOX, FlashFile, i386, i486, i960, iCOMP, InstantIP, Intel, Intel Centrino, Intel Centrino logo, Intel logo, Intel386, Intel486, Intel740, IntelDX2, IntelDX4, IntelSX2, Intel Inside, Intel Inside logo, Intel NetBurst, Intel NetMerge, Intel NetStructure, Intel SingleDriver, Intel SpeedStep, Intel StrataFlash, Intel Xeon, Intel XScale, IPLink, Itanium, MCS, MMX, MMX logo, Optimizer logo, OverDrive, Paragon, PDCharm, Pentium, Pentium II Xeon, Pentium III Xeon, Performance at Your Command, skoool, Sound Mark, The Computer Inside., The Journey Inside, VTune, and Xircom are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries.
* Other names and brands may be claimed as the property of others.
Intel Converged Communications, Inc. 1515 Route 10 Parsippany, NJ 07054
For Technical Support, visit the Intel Telecom Support Resources website at: http://developer.intel.com/design/telecom/support
For Products and Services Information, visit the Intel Telecom Products website at: http://www.intel.com/design/network/products/telecom
For Sales Offices and other contact information, visit the Where to Buy Intel Telecom Products page at: http://www.intel.com/buy/networking/telecom.htm


Figures
1 Demo Voice Menu Flowchart 23 2 IP Media Server Demo Architecture 29 3 EventRouter 30 4 IP Media Server Demo Threads 39 5 System Initialization 40 6 Typical Scenario: Call Offered 43 7 Typical Scenario: Play Prompts 44 8 Typical Scenario: Fax Mailbox 45 9 Typical Scenario: Establish Fax Session 46 10 Typical Scenario: Fax Session Established 47 11 Typical Scenario: Fax Sent 48 12 Typical Scenario: Fax Session Closed 49 13 Typical Scenario: Fax Complete 49

Tables
1 Command Line Switches 19 2 Runtime Keyboard Commands 20 3 Files in IPMediaServer Folder Used by the IP Media Server Demo 25 4 Files in Modules Folder Used by the IP Media Server Demo 26 5 PDL Files Used by the IP Media Server Demo 28 6 Application Classes 31 7 IP Module Classes 32 8 Voice Module Classes 35 9 Fax Module Classes 37


This revision history summarizes the changes made in each published version of this document.


This section describes the purpose of the guide, the intended audience, and provides references to other documents that may be useful to the user.
This guide provides information on the IP Media Server for HMP demo that is available with the Intel NetStructure® Host Media Processing Software product. The guide describes the demo, lists its requirements, and provides details on how it works.
This guide specifically documents the IP Media Server for HMP demo as it is implemented and supplied in the Host Media Processing Software 1.3 for Windows*, Host Media Processing Software 1.5 for Linux* and later releases.
This guide is intended for application developers who will be developing a media server application using the Global Call API. Developers should be familiar with the C++ programming language and either the Windows or Linux programming environments.
This information is intended for:

How to Use This Publication
Refer to this publication after you have installed the hardware and the system software.
This publication assumes that you are familiar with the Windows or Linux operating system and the C++ programming language.
The information in this guide is organized as follows:
See the following for more information:

This chapter describes the basic features of the IP Media Server for HMP demo.
The IP Media Server for HMP demo is an object-oriented host-based application that demonstrates using the Global Call API to build an IP media server, providing voice and fax services via IP technology. The demo source code can be used as sample code for those who want to begin developing an application from a working application.
The IP Media Server for HMP demo supports the following features:
The IP Media Server for HMPIP Media Server (Global Call) demo is a cross-OS demo, designed to run under both the Windows and Linux environments. Most of the differences in the environments are handled directly by the programming interface and are transparent to the user. Other differences, due to inherent differences in the operating systems, are handled by the Platform Dependency Library (PDL). For more information about the PDL refer to the source code in the pdl_win or pdl_linux directories directory.


This chapter discusses the system requirements for running the IP Media Server for HMP demo. It contains the following topics:
To run the IP Media Server for HMP demo, you need:
For production purposes, a minimum of 512 MB of memory is required. For development and demo purposes using a low-end configuration, 256 MB of memory may be sufficient.
The following H.323 IP devices were tested for interoperability with HMP:
The following SIP IP devices were tested for interoperability with HMP:

2.2 Software Requirements
To run the IP Media Server for HMP demo as documented in this guide, you need one of the following software releases:
For operating system requirements, see the release documentation (Release Guide or Release Notes) that accompanies your specific HMP release.

This chapter discusses the preparations necessary to run the IP Media Server for HMP demo. It provides information about the following topics:
This section discusses how to configure the demo for your system. It contains the following topics:
Before running the IP Media Server for HMP demo, modify the IPMediaServer.cfg file to reflect your system environment. Use a text editor and open the file from the following location:
Linux
3.1.2 Editing the IPMediaServer.cfg Configuration File
Below is an example of the IPMediaServer.cfg file. Update the following information:
The IP protocol for opening IP line devices. Possible vlues are:
Specifies how DTMF tones are transmitted. Possible values are:

Describes the transmit and receive coders. See the Global Call IP Technology Guide for specific information about coder support. The parameters are as follows:
10, 20, or 30 milliseconds. Refer to the Sample Configuration File, below, for the correct syntax for all the parameters. • RxVAD – specifies if VAD is active for the selected Rx coder
The application can set threshold values to monitor the quality of service during calls. A fault occurs when the result of a measurement of a QoS parameter crosses a predefined threshold. A success occurs when the result of a measurement of a QoS parameter dis not cross a predefined threshold. The QoS parameters are measured during time intervals, starting when a call is established. The following parameters are supported:
The threshold for each QoS parameter is measured with the following six attributes:
The default values are as follows:
QoS Type Threshold DebounceOn DebounceOff Interval Percent_
Lost packets 20 10000 10000 1000 60 40
Jitter 60 20000 60000 5000 60 40

Sample Configuration File
################################################################################################ # IP Protocol : # The IP Protocol used for opening the IP Line devices, values: H323, SIP, both # # DTMFmode # possible options: # OutOfBand, inband, rfc2833 # # Capability posiblities: # g711Alaw # g711Mulaw # gsm # gsmEFR # g723_5_3k # g723_6_3k # g729a # g729ab # t38UDPFax # # Note: if you want to run the demo with coder g729 use: # g729a for running with VAD disable # and 729ab for running with VAD enable # # Caution: # If capability is g711Alaw /Mulaw ==> FramesPerPkt = 10,20,30. # G711 frame per packet defines the packet size in # milliseconds # If capability is g723_5_3k / 6_3k ==> FramesPerPkt = 1, 2, 3 . # FrameSize isn't needed, default= 30ms. # If capability is gsm ==> FramesPerPkt = 1, 2, 3 . # FrameSize isn't needed, default= 20ms. # If capability is gsmEFR ==> FramesPerPkt = 1, 2, 3 . # FrameSize isn't needed, default= 20ms. # If capability is g729a ==> FramesPerPkt = 3, 4 . # FrameSize isn't needed, default= 10ms. # VAD disable, the VAD parameter is ignored # If capability is g729ab ==>FramesPerPkt = 3, 4 . # FrameSize isn't needed, default= 10ms. # VAD enable, the VAD parameter is ignored # ################################################################################################
ipProtocolName = H323 DTMFmode = inBand Channel = 1-120 { Capability { # TxType = g711Alaw # TxFramesPerPkt = 30 # TxVAD = 0 # RxType = g711Alaw # RxFramesPerPkt = 30 # RxVAD = 0
TxType = g711Mulaw TxFramesPerPkt = 20 TxVAD = 0 RxType = g711Mulaw RxFramesPerPkt = 20 RxVAD = 0
# TxType = t38UDPFax }

MediaAlarmLostPackets { Threshold = 20 # Threshold value DebounceOn = 10000 # Threshold debounce ON DebounceOff = 10000 # Threshold debounce OFF Interval = 1000 # Threshold Time Interval (ms) PercentSuccess = 60 # Threshold Success Percent PercentFail = 40 # Threshold Fail Percent }
MediaAlarmJitter { Threshold = 60 # Threshold value DebounceOn = 20000 # Threshold debounce ON DebounceOff = 60000 # Threshold debounce OFF Interval = 5000 # Threshold Time Interval (ms) PercentSuccess = 60 # Threshold Success Percent PercentFail = 40 # Threshold Fail Percent }
# MediaAlarmResetAlarmState = 0
Compile the IP Media Server demo project within one of the following environments:
To compile the IP Media Server demo on a Windows system, use Microsoft* Visual Studio* 6.0 with Service Pack 5.
Set IPMediaServer as the active project and build.
To compile the IP Media Server demo on a Linux system, use gcc version 3.2.3.
To compile the entire project, go to the directory $(INTEL_DIALOGIC_DIR)/demos/IPMediaServer and issue the commands:
To compile an individual module, go to the specific module directory (for example, $(INTEL_DIALOGIC_DIR)/demos/IPMediaServer/Modules/FaxModule for the fax module), and issue the commands:
} · make clean make · make clean make

This chapter discusses how to run the IP Media Server for HMP demo. It contains the following topics:
The demo executable file for the IP Media Server for HMP can be started as follows:
From a command prompt window, change to the directory: $(INTEL_DIALOGIC_DIR)\Demos\IPMediaServer\Release
Type IPMediaServer to run the IP Media Server for HMP demo using the default settings.
Type IPMediaServer to run the IP Media Server for HMP demo using the default settings.
To specify certain options at run-time, launch the demo from a command line, using any of the switches listed in Table 1.
-c Configuration file name -cIPMediaServer.cfg
-h or ? Prints the command syntax to the screen Off
Switch Action Default · -em

Table 1. Command Line Switches (Continued)
-n Sets the number of channels The lesser of Voice Devices or IP devices
-q Activates Quality of Service Disabled
The following example shows how to launch the demo from a command line with options:
IPMediaServer -n64 -cmyconfig.cfg -ea This command launches the demo with 64 channels, using the myconfig.cfg configuration file and A-law encoding.
This section describes how to use the IP Media Server for HMP demo and contains the following topics:
The demo always waits for input from the keyboard. While the demo is running, you may enter any of the commands listed in Table 2.
q or Q or Ctrl+c Terminates the application
The IP Media Server for HMP demo allows the caller to interact with a series of voice menus, using the telephone keypad to enter an option. Basic operations include playing a pre-recorded message, recording a new message, sending or receiving a fax, and barge-in for CSP. Each menu prompts the caller to select an action by pushing a key. The call state within which the menu is called is indicated by the square brackets. Figure 1 shows the voice prompt flow, grouping the prompts by feature (voice, fax, CSP).
Command Function
![Page 21 of the Intel IP Media Server user manual — Stop Listen Prompt [Listening]](/cdn/reader/db/dbc94d0707cc7332df355efd343137b1dde7b422e8a4530c418892404f36473e/images/page-21.webp?w=400)
Main Menu [Main_Menu]
Enter Mailbox Number - between 101 - 299 * - Quit
Enter Mailbox Number - between 101 - 299 (Recorded message is played) * - Quit
![Page 22 of the Intel IP Media Server user manual — CSP Prompt [CSP_Menu]](/cdn/reader/db/dbc94d0707cc7332df355efd343137b1dde7b422e8a4530c418892404f36473e/images/page-22.webp?w=400)
Fax Menu [Fax_Menu]
Dial fax number - between 101 - 299 * - Quit
Announces that fax was sent and repeats Fax Menu: 1 - Send fax 2 - Receive fax * - Quit
Dial fax number - between 101 - 299 * - Quit
Announces that fax was received and repeats Fax Menu: 1 - Send fax 2 - Receive fax * - Quit
Say something to barge in (new file will be created with barged-in message) or press any DTMF.

Figure 1. Demo Voice Menu Flowchart
Main Menu Select one of the following: 1 - Voice Mail 2 - Fax 4 - CSP * - Quit
Voice Mail Prompt 1 - Record Message 2 - Listen to message from a mailbox
CSP Prompt Say something to barge in or press any DTMF
Fax Menu 1 - Send fax (to server) 2 - Receive fax (from server) * - Quit
Listen Message Prompt Enter Mailbox Number (Message is played) * - Quit
Send Message Prompt Enter Mailbox Number
Stop Listen Prompt 2 - Discard message and quit * - Save message and quit
Send Fax Prompt Dial server mailbox number to store fax in * - Quit
Receive Fax Prompt Dial fax number that will receive fax from server * - Quit
Start Record Prompt 2 - Start/Stop Record * - Quit
Fax Sent Prompt Announces fax sent Repeat Fax menu
Fax Received Prompt Announces fax received Repeat Fax menu
Stop Record Prompt 2 - Discard message and re-record message to same mailbox 3 - Confirm message 4 - Replay message * - Quit
Confirm Message Saved Prompt Confirm message Return to Voice Mail prompt
Replay Message Replay Stop Record Prompt
* - Quit · * - Quit

4.4 Stopping the Demo
The IP Media Server demo runs until it is terminated. Press “q” or “Q” to terminate the demo application.

This chapter discusses the IP Media Server for HMP demo in more detail. It contains the following topics:
This section lists the files used by the IP Media Server demo. It contains the following information
In Windows, the IP Media Server demo files listed in Table 3 are located within: $(INTEL_DIALOGIC_DIR)\Demos\IPMediaServer
In Linux, the IP Media Server demo files listed in Table 3 are located within: $(INTEL_DIALOGIC_DIR)/demos/IPMediaServer
Table 3. Files in IPMediaServer Folder Used by the IP Media Server Demo
Sub-Directory (if any) File Name Purpose
CConfig.cpp Implements the operations of the Configuration class
CConfig.h Function prototype for config.cpp
CEventRouter.cpp Implements the operations of the EventRouter class
CEventRouter.h Function prototype for ceventrouter.cpp
IPMediaServer.dsp Visual C++ project file
IPMediaServer.dsw Visual C++ project workspace
main.cpp Contains the main function and the WaitForKey
main.h Function prototype for main.cpp
makefile Top-level make file (Linux only)

Table 3. Files in IPMediaServer Folder Used by the IP Media Server Demo (Continued)
Sub-Directory (if any) File Name Purpose
Release 200.tif Sample fax file
Release unavConf.vox Voice file
Release cspPrompt.vox Voice file
Release errorInput.vox Voice file
Release faxMenu.vox Voice file
Release faxReceived.vox Voice file
Release faxSent.vox Voice file
Release IPMediaServer.cfg Demo configuration file
Release IPMediaServer.exe Demo executable
Release listenMenu.vox Voice file
Release mainMenu.vox Voice file
Release receivefaxMenu.vox Voice file
Release savecCnfirm.vox Voice file
Release sendfaxMenu.vox Voice file
Release sendMsg.vox Voice file
Release startRec.vox Voice file
Release stopListen.vox Voice file
Release stopRec.vox Voice file
Release thankYou.vox Voice file
Release unavCsp.vox Voice file
Release unavFax.vox Voice file
Release unavMenu.vox Voice file
Release voicemailMenu.vox Voice file
In Windows, the IP Media Server demo files listed in Table 4 are located within: $(INTEL_DIALOGIC_DIR)\Demos\IPMediaServer\Modules
In Linux, the IP Media Server demo files listed in Table 4 are located within: $(INTEL_DIALOGIC_DIR)/demos/IPMediaServer/Modules
Table 4. Files in Modules Folder Used by the IP Media Server Demo
Sub-Directory File Name Purpose
common Defines.h Definitions and structures for the demo
common Interfaces.h Interfaces used in the demo
common Parameters.h Parameters used in the demo
common makefile Module make file (Linux only)
FaxModule CFaxDevice.cpp Implements the operations of the CFaxDevice class

Table 4. Files in Modules Folder Used by the IP Media Server Demo (Continued)
Sub-Directory File Name Purpose
FaxModule CFaxDevice.h Function prototype for cfaxdevice.cpp
FaxModule CFaxModule.cpp Implements the operations of the CFaxModule class
FaxModule CFaxModule.h Function prototype for cfaxmodule.cpp
FaxModule CFaxStateMachine.cpp Implements the operations of the CFaxStateMachine class
FaxModule CFaxStateMachine.h Function prototype for cfaxstatemachine.cpp
FaxModule FaxModule.dsp Visual C++ project file
FaxModule makefile Module-level make file (Linux only)
FaxModule.lib Compiled Fax Module library
IPModule CIPDevice.cpp Implements the operations of the CIPDevice class
IPModule CIPDevice.h Function prototype for cipdevice.cpp
IPModule CIPMBoard.cpp Implements the operations of the CIPMBoard class
IPModule CIPMBoard.h Function prototype for cipmboard.cpp
IPModule CIPModule.cpp Implements the operations of the CIPModule class
IPModule CIPModule.h Function prototype for cipmodule.cpp
IPModule CIPStateMachine.cpp Implements the operations of the CIPStateMachine class
IPModule CIPStateMachine.h Function prototype for cipstatemachine.cpp
IPModule CIPTBoard.cpp Implements the operations of the CIPTBoard class
IPModule CIPTBoard.h Function prototype for ciptboard.cpp
IPModule CMediaAlarms.cpp Implements the operations of the CMediaAlarms class
IPModule CMediaAlarms.h Function prototype for cmediaalarms.cpp
IPModule IPModule.dsp Visual C++ project file
IPModule makefile Module-level make file (Linux only)
IPModule.lib Compiled IP Module library
VoiceModule CCSPDevice.cpp Implements the operations of the CCSPDevice class
VoiceModule CCSPDevice.h Function prototype for ccdspdevice.cpp
VoiceModule CMailBoxBtil.cpp Implements the operations of the CMailBoxUtil class
VoiceModule CMailBoxUtil.h Function prototype for cmailboxutil.cpp
VoiceModule CVoiceBoard.cpp Implements the operations of the voiceBoard class
VoiceModule CVoiceBoard.h Function prototype for cvoiceboard.cpp
VoiceModule CVoiceDevice.cpp Implements the operations of the CVoiceDevice class
VoiceModule CVoiceDevice.h Function prototype for cvoicedevice.cpp
FaxModule\Release or FaxModule/Release · IPModule\Release or IPModule/Release

Table 4. Files in Modules Folder Used by the IP Media Server Demo (Continued)
Sub-Directory File Name Purpose
VoiceModule CVoiceModule.cpp Implements the operations of the CVoiceModule class
VoiceModule CVoiceModule.h Function prototype for cvoicemodule.cpp
VoiceModule CVoiceStateMachine.cpp Implements the operations of the CVoiceStateMachine class
VoiceModule CVoiceStateMachine.h Function prototype for cvoicestatemachine.cpp
VoiceModule VoiceModule.dsp Visual C++ project file
VoiceModule makefile Module-level make file (Linux only)
VoiceModule.lib Compiled Voice Module library
In Windows, the PDL files listed in Table 5 are located within the directory: $(INTEL_DIALOGIC_DIR)\Demos\Shared\pdl_win
In Linux, the PDL files listed in Table 5 are located within the directory: $(INTEL_DIALOGIC_DIR)/demos/Shared/pdl_Linux
Sub-Directory (if any) File Name Purpose
iptransport.cpp PDL IP transport functions
iptransport.h Function prototype for iptransport.cpp
pdl.c Platform dependency functions
pdl.h Function prototype for pdl.c
pdl.ver PDL version information
pdl_win.dsp PDL Visual C project file
pdl_win.dsw PDL Visual C project workspace
makefile PDL make file (Linux only)
release psl_win.lib Compiled PDL library
This section describes the IP Media Server for HMP demo architecture in the following topics:
VoiceModule\Release or VoiceModule/Release

The IP Media Server for HMP demo uses a modular architecture, in which each technology (IP, voice, fax, CSP)) is wrapped inside a module so that a particular technology can be easily added or removed.
The system contains three modules:
The system also contains a software component, the EventRouter, to connect the modules. The basic architecture of the system is illustrated in Figure 2.
Each module is composed of four elements:
The Wrapper acts like a manager, receiving requests from the EventRouter and distributing the request to the boards or devices. A device can have one or multiple state machines attached to it. Each state machine represents one call.

The EventRouter is responsible for communicating with the modules. It does the following:
Forward result to destination
Voice Module Fax Module IP Module
result.destination

The modular architecture implements a unified interface that allows replacement of modules by including new header files and adjusting routing statements.
A module is treated by the EventRouter as a block box. It has three types of APIs:
This section describes the classes contained in the demo and within each module. Each module contains three classes: board, device, and state machine.

Responsible for connecting all the modules. It does the following:
Category Class Name Interface
be accessed by classes outside the IP module.

Category Class Name Interface
should only be accessed by classes inside the IP module.
should only be accessed by classes inside the IP module.

Category Class Name Interface
should only be accessed by classes inside the IP module.
should only be accessed by the classes inside the IP module.

Category Class Name Interface
be accessed by classes outside the Voice module.
should only be accessed by classes inside the Voice module.

Category Class Name Interface
should only be accessed by classes inside the Voice module.

Category Class Name Interface
should only be accessed by the classes inside the voice module.
should only be accessed by the classes inside the voice module
Category Class Name Interface
be accessed by classes outside the Fax module.

Category Class Name Interface
should only be accessed by classes inside the Fax module.

Category Class Name Interface
should only be accessed by the classes inside the fax module.
The IP Media Server for HMP demo operates with two threads, as shown in Figure 4.
Keyboard
IP R4/GC
SRL
Main Thread
Sub-Thread
The threads are created as follows:
This section describes the IP Media Server for HMPdemo initialization as shown in Figure 5.
A system is started in the following sequence:

After all the modules are started, the EventRouter starts to build a static routing table that maps voice devices to IP devices. It is important that each IP device has a dedicated voice resource, so that when an IP channel is connected (an incoming call is answered) the user can get a voice prompt immediately.
If the initialization should fails, the application shuts down. The shutdown sequence is the reverse of the initialization sequence.
Fax Module Fax Board
Voice Module Voice Board
IP Module IP Board

This section describes how the IP Media Server for HMP demo handles events. It contains the following topics:
The IP Media Server demo uses the SRL mechanism to retrieve events. When an event occurs, SRL calls event handlers automatically. All events are received by the SRL and then passed to the CallbackHdlr( ) function for handling.
In the initialization phase of the demo, the main( ) function sets up the call-back handler, by calling PDLsr_enbhdlr( ).
There is an endless loop {while(0)} in the main( ) function in the Main.cpp file. In that loop, the application waits forever for a keyboard event by calling the waitForKey( ) function. The event must be handled immediately and event-specific information should be retrieved before the next call to waitForKey( ).
When the R4/Global Call event is received, the application performs the following:
Normal application exit events, such as pressing either q or Q, don’t enter the SRL. The main( ) function calls PDLSetApplicationExitPath( ) before initialization. In Linux, this function sets the signals (SIGINT, SIGTERM, SIGABRT) for making the appropriate exit from the application. In Windows, this function enables the detection of CTRL_CLOSE_EVENT (closing the window).

The TSUsrEvent structure is used by the demo modules to return event processing results to the event router.
The TSUserEvt structure is defined as follows:
typedef struct { int event; TDeviceType destination; int lineDevice; long xmitSlot; long neighborDevice; char dialString[MAX_STRING_LENGTH]} TSUserEvent;
The fields of the TSUserEvt structure are described as follows:
the name of a user-defined event, such as USR_CONNECTED, USR_SENDFAX, etc.
the name of the module that this event is destined for. Possible vavues are IP, VOICE, FAX, or NONE.
the device handle in this module. It will be later used by the Event Router as an index to find its counterpart in the destination module.
an integer that normally indicates a time slot number
the neighbor device handle
a char string that is normally filled with a DTMF dialing string
This section describes a typical scenario for sending a fax, which involves all the IP Media Server demo modules.
When an incoming call is received by the server, the IP module answers the call until the call is connected.

CEventRouter CIPModule CIPDevice CIPState
GCEV_OFFERED
GCEV_OFFERED
GCEV_EXTENSIONCMPLT
GCEV_EXTENSIONCMPLT
to get call related
GCEV_CONNECTED
GCEV_CONNECTED
GCEV_CONNECTED
Call gc_listen( ) to
listen to voice device

After the call is connected, the Voice module is notified to play prompts and accept DTMF.
CEventRouter CIPModule CIPDevice CIPState
USR_CONNECTED
USR_CONNECTED
TDX_PLAY (finish playing main menu)
TDX_GETDIG (press "2" to play fax menu)
Call dx_getdig( ) to
detect digits TDX_GETDIG "2"
TDX_GETDIG (press "1" to play send fax menu)
Call dx_play( ) to
TDX_GETDIG "1"
TDX_GETDIG (press "101" to select fax box number)
Call dx_play( ) to
TDX_GETDIG "101"
request fax module to send fax to faxbox 101
source=IP destination=FAX event= USR_SENDFAX dialString="101"

The user selects to send a fax to mailbox “101”. The Fax module is requested to send a fax.
USR_SENDFAX "101"
USR_SENDFAX
Find an available fax device and put it
Format TSUserEvent to request IP module
to get ready to send

The Fax module requests the front end to get ready to send a fax. If the front end is IP, it should first move from an RTP port to a UDP port in order to send a fax.
CEventRouter CIPModule CIPDevice CIPState
USR_ESTABLISHFAXSESSIONREQ
USR_ESTABLISHFAXSESSIONREQ
GCEV_EXTENSION
GCEV_EXTENSION
Format TSUserEvent to reply to fax module that
T.38 session is
source=IP destination=FAX event= USR_ESTABLISHF AXSESSIONCONF
Machine · established

The Fax module gets a reply from the front end that the fax session has been established.
CEventRouter CIPModule CFaxModule CFaxDevice CFaxState
Machine ...
USR_ESTABLISHFAXSESSIONCONF
Call fx_sndfax( ) to
TFX_FAXSEND
Format TSUserEvent to request IP module
to close fax session
source=FAX destination=IP event= USR_CLOSEFAX SESSIONREQ
send fax · Close fax file

The fax is sent. The front end is requested to close the fax session.
CEventRouter CIPModule CIPDevice CIPState
USR_CLOSEFAXSESSIONREQ
USR_CLOSEFAXSESSIONREQ
GCEV_EXTENSION
GCEV_EXTENSION
Format TSUserEvent to reply to fax module that
T.38 session is closed
source=IP destination=FAX event= USR_CLOSEFAX SESSIONCONF
Machine

The Fax module gets a reply from the front end that the fax session has been closed.
CEventRouter CIPModule CFaxModule CFaxDevice CFaxState
Machine ...
USR_CLOSEFAXSESSIONCONF
USR_CLOSEFAXSESSIONCONF
to notify voice module fax is sent
source=FAX destination=VOICE event= USR_FAXSENT
The Voice module gets a reply from the Fax module that a fax has been sent.
CEventRouter CIPModule CIPDevice CIPState
Machine CVoiceModule CVoiceDevice CVoiceState
USR_FAXCOMPLETE
USR_FAXCOMPLETE
Call dx_play( ) to play fax menu
Format TSUserEvent · Machine



COder/DECoder: A circuit used to convert analog voice data to digital and digital voice data to analog audio.
Computer Telephony (CT): Adding computer intelligence to the making, receiving, and managing of telephone calls.
Dual-Tone Multi-Frequency: A way of signaling consisting of a push-button or touch-tone dial that sends out a sound consisting of two discrete tones that are picked up and interpreted by telephone switches (either PBXs or central offices).
Emitting Gateway: called by a G3FE. It initiates IFT service for the calling G3FE and connects to a Receiving Gateway.
E1: The 2.048 Mbps digital carrier system common in Europe.
FCD file: An ASCII file that lists any non-default parameter settings that are necessary to configure a DM3 hardware/firmware product for a particular feature set. The downloader utility reads this file, and for each parameter listed generates and sends the DM3 message necessary to set that parameter value.
Frame: A set of SCbus/CT Bus timeslots which are grouped together for synchronization purposes. The period of a frame is fixed (at 125 µsec) so that the number of time slots per frame depends on the SCbus/CT Bus data rate.
G3FE: Group 3 Fax Equipment. A traditional fax machine with analog PSTN interface.
Gatekeeper: An H.323 entity on the Internet that provides address translation and control access to the network for H.323 Terminals and Gateways. The Gatekeeper may also provide other services to the H.323 terminals and Gateways, such as bandwidth management and locating Gateways.
Gateway: A device that converts data into the IP protocol. It often refers to a voice-to-IP device that converts an analog voice stream, or a digitized version of the voice, into IP packets.
H.323: A set of International Telecommunication Union (ITU) standards that define a framework for the transmission of real-time voice communications through Internet protocol (IP)-based packet-switched networks. The H.323 standards define a gateway and a gatekeeper for customers who need their existing IP networks to support voice communications.
IAF: Internet Aware Fax. The combination of a G3FE and a T.38 gateway.

International Telecommunications Union (ITU): An organization established by the United Nations to set telecommunications standards, allocate frequencies to various uses, and hold trade shows every four years.
Internet: An inter-network of networks interconnected by bridges or routers. LANs described in H.323 may be considered part of such inter-networks.
Internet Protocol (IP): The network layer protocol of the transmission control protocol/Internet protocol (TCP/IP) suite. Defined in STD 5, Request for Comments (RFC) 791. It is a connectionless, best-effort packet switching protocol.
Internet Service Provider (ISP): A vendor who provides direct access to the Internet.
Internet Telephony: The transmission of voice over an Internet Protocol (IP) network. Also called Voice over IP (VoIP), IP telephony enables users to make telephone calls over the Internet, intranets, or private Local Area Networks (LANs) and Wide Area Networks (WANs) that use the Transmission Control Protocol/Internet Protocol (TCP/IP).
ITU: See International Telecommunications Union.
Jitter: The deviation of a transmission signal in time or phase. It can introduce errors and loss of synchronization in high-speed synchronous communications.
NIC (Network Interface Card): Adapter card inserted into computer that contains necessary software and electronics to enable a station to communicate over network.
PCD file: An ASCII text file that contains product or platform configuration description information that is used by the DM3 downloader utility program. Each of these files identifies the hardware configuration and firmware modules that make up a specific hardware/firmware product. Each type of DM3-based product used in a system requires a product-specific PCD file.
Public Switched Telephone Network: The telecommunications network commonly accessed by standard telephones, key systems, Private Branch Exchange (PBX) trunks and data equipment.
Reliable Channel: A transport connection used for reliable transmission of an information stream from its source to one or more destinations.
Reliable Transmission: Transmission of messages from a sender to a receiver using connection-mode data transmission. The transmission service guarantees sequenced, error-free, flow-controlled transmission of messages to the receiver for the duration of the transport connection.
SIP: Session Initiation Protocol: an Internet standard specified by the Internet Engineering Task Force (IETF) in RFC 3261. SIP is used to initiate, manage, and terminate interactive sessions between one or more users on the Internet.

T1: A digital transmission link with a capacity of 1.544 Mbps used in North America. Typically channeled into 24 digital subscriber level zeros (DS0s), each capable of carrying a single voice conversation or data stream. T1 uses two pairs of twisted pair wires.
Terminal: An H.323 Terminal is an endpoint on the local area network which provides for real-time, two-way communications with another H.323 terminal, Gateway, or Multipoint Control Unit. This communication consists of control, indications, audio, moving color video pictures, and/or data between the two terminals. A terminal may provide speech only, speech and data, speech and video, or speech, data, and video.
Transmission Control Protocol: The TCP/IP standard transport level protocol that provides the reliable, full duplex, stream service on which many application protocols depend. TCP allows a process on one machine to send a stream of data to a process on another. It is connection-oriented in the sense that before transmitting data, participants must establish a connection.
User Datagram Protocol: The TCP/IP standard protocol that allows an application program on one machine to send a datagram to an application program on another machine. Conceptually, the important difference between UDP datagrams and IP datagrams is that UDP includes a protocol port number, allowing the sender to distinguish among multiple destinations on the remote machine.



Owners and our team usually reply within a day — and your question helps the next person too.
Be the first to ask — other owners or our team will answer.