42 IP Media Server for HMP Demo Guide — July 2005
Demo Details

5.5.5 TSUsrEvent Structure

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:
event
the name of a user-defined event, such as USR_CONNECTED, USR_SENDFAX, etc.
destination
the name of the module that this event is destined for. Possible vavues are IP, VOICE, FAX, or
NONE.
lineDevice
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.
xmitSlot
an integer that normally indicates a time slot number
neighborDevice
the neighbor device handle
dialString
a char string that is normally filled with a DTMF dialing string
5.6 Typical Scenario
This section describes a typical scenario for sending a fax, which involves all the IP Media Server
demo modules.

Call Offered

When an incoming call is received by the server, the IP module answers the call until the call is
connected.