Intel 05-2065-003 ユーザーズマニュアル

ページ / 50
IP Media Server (Global Call) Demo Guide — August 2005
43
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, etc.
destination 
the name of the module that this event is destined for. Possible vavues are IP, VOICE, 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