/*++ BUILD Version: 0000 // Increment this if a change has global effects Copyright (c) 1995-1997 Microsoft Corporation Module Name: line.h Abstract: Header file for tapi server line functions Author: Dan Knudson (DanKn) 01-Apr-1995 Revision History: --*/ #define MAXLEN_NAME 96 #define MAXLEN_RULE 128 #define ANY_RT_HCALL 1 #define ANY_RT_HLINE 2 #define DEVICE_ID 3 #if DBG #define LINEPROLOG(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14) \ LineProlog(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14) #define LINEEPILOGSYNC(a1,a2,a3,a4,a5) LineEpilogSync(a1,a2,a3,a4,a5) #define LINEEPILOGASYNC(a1,a2,a3,a4,a5,a6,a7) \ LineEpilogAsync(a1,a2,a3,a4,a5,a6,a7) #else #define LINEPROLOG(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14) \ LineProlog(a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13) #define LINEEPILOGSYNC(a1,a2,a3,a4,a5) LineEpilogSync(a1,a2,a3,a4) #define LINEEPILOGASYNC(a1,a2,a3,a4,a5,a6,a7) \ LineEpilogAsync(a1,a2,a3,a4,a5,a6) #endif #define AllAddressTypes \ (LINEADDRESSTYPE_PHONENUMBER | \ LINEADDRESSTYPE_SDP | \ LINEADDRESSTYPE_EMAILNAME | \ LINEADDRESSTYPE_DOMAINNAME | \ LINEADDRESSTYPE_IPADDRESS) #define AllAddressStates1_0 \ (LINEADDRESSSTATE_OTHER | \ LINEADDRESSSTATE_DEVSPECIFIC | \ LINEADDRESSSTATE_INUSEZERO | \ LINEADDRESSSTATE_INUSEONE | \ LINEADDRESSSTATE_INUSEMANY | \ LINEADDRESSSTATE_NUMCALLS | \ LINEADDRESSSTATE_FORWARD | \ LINEADDRESSSTATE_TERMINALS) #define AllAddressStates1_4 \ (AllAddressStates1_0 | \ LINEADDRESSSTATE_CAPSCHANGE) //#define AllAddressStates2_0 \ // (AllAddressStates1_4 | \ // LINEADDRESSSTATE_AGENT | \ // LINEADDRESSSTATE_AGENTSTATE | \ // LINEADDRESSSTATE_AGENTACTIVITY) #define AllAgentStates \ (LINEAGENTSTATE_LOGGEDOFF | \ LINEAGENTSTATE_NOTREADY | \ LINEAGENTSTATE_READY | \ LINEAGENTSTATE_BUSYACD | \ LINEAGENTSTATE_BUSYINCOMING | \ LINEAGENTSTATE_BUSYOUTBOUND | \ LINEAGENTSTATE_BUSYOTHER | \ LINEAGENTSTATE_WORKINGAFTERCALL | \ LINEAGENTSTATE_UNKNOWN | \ LINEAGENTSTATE_UNAVAIL | \ 0xffff0000) #define AllAgentStatus \ (LINEAGENTSTATUS_GROUP | \ LINEAGENTSTATUS_STATE | \ LINEAGENTSTATUS_NEXTSTATE | \ LINEAGENTSTATUS_ACTIVITY | \ LINEAGENTSTATUS_ACTIVITYLIST | \ LINEAGENTSTATUS_GROUPLIST | \ LINEAGENTSTATUS_CAPSCHANGE | \ LINEAGENTSTATUS_VALIDSTATES | \ LINEAGENTSTATUS_VALIDNEXTSTATES) #define AllAgentSessionStates \ (LINEAGENTSESSIONSTATE_NOTREADY | \ LINEAGENTSESSIONSTATE_READY | \ LINEAGENTSESSIONSTATE_BUSYONCALL | \ LINEAGENTSESSIONSTATE_BUSYWRAPUP | \ LINEAGENTSESSIONSTATE_ENDED | \ LINEAGENTSESSIONSTATE_RELEASED) #define AllAgentSessionStatus \ (LINEAGENTSESSIONSTATUS_NEWSESSION | \ LINEAGENTSESSIONSTATUS_STATE | \ LINEAGENTSESSIONSTATUS_UPDATEINFO) #define AllAgentStatusEx \ (LINEAGENTSTATUSEX_NEWAGENT | \ LINEAGENTSTATUSEX_STATE | \ LINEAGENTSTATUSEX_UPDATEINFO) #define AllAgentStatesEx \ (LINEAGENTSTATEEX_NOTREADY | \ LINEAGENTSTATEEX_READY | \ LINEAGENTSTATEEX_BUSYACD | \ LINEAGENTSTATEEX_BUSYINCOMING | \ LINEAGENTSTATEEX_BUSYOUTGOING | \ LINEAGENTSTATEEX_UNKNOWN | \ LINEAGENTSTATEEX_RELEASED) #define AllBearerModes1_0 \ (LINEBEARERMODE_VOICE | \ LINEBEARERMODE_SPEECH | \ LINEBEARERMODE_MULTIUSE | \ LINEBEARERMODE_DATA | \ LINEBEARERMODE_ALTSPEECHDATA | \ LINEBEARERMODE_NONCALLSIGNALING) #define AllBearerModes1_4 \ (AllBearerModes1_0 | \ LINEBEARERMODE_PASSTHROUGH) #define AllBearerModes2_0 \ (AllBearerModes1_4 | \ LINEBEARERMODE_RESTRICTEDDATA) #define AllCallComplModes \ (LINECALLCOMPLMODE_CAMPON | \ LINECALLCOMPLMODE_CALLBACK | \ LINECALLCOMPLMODE_INTRUDE | \ LINECALLCOMPLMODE_MESSAGE) #define AllCallParamFlags1_0 \ (LINECALLPARAMFLAGS_SECURE | \ LINECALLPARAMFLAGS_IDLE | \ LINECALLPARAMFLAGS_BLOCKID | \ LINECALLPARAMFLAGS_ORIGOFFHOOK | \ LINECALLPARAMFLAGS_DESTOFFHOOK) #define AllCallParamFlags2_0 \ (LINECALLPARAMFLAGS_SECURE | \ LINECALLPARAMFLAGS_IDLE | \ LINECALLPARAMFLAGS_BLOCKID | \ LINECALLPARAMFLAGS_ORIGOFFHOOK | \ LINECALLPARAMFLAGS_DESTOFFHOOK | \ LINECALLPARAMFLAGS_NOHOLDCONFERENCE | \ LINECALLPARAMFLAGS_PREDICTIVEDIAL | \ LINECALLPARAMFLAGS_ONESTEPTRANSFER) #define AllCallSelects \ (LINECALLSELECT_LINE | \ LINECALLSELECT_ADDRESS | \ LINECALLSELECT_CALL) #define AllForwardModes1_0 \ (LINEFORWARDMODE_UNCOND | \ LINEFORWARDMODE_UNCONDINTERNAL | \ LINEFORWARDMODE_UNCONDEXTERNAL | \ LINEFORWARDMODE_UNCONDSPECIFIC | \ LINEFORWARDMODE_BUSY | \ LINEFORWARDMODE_BUSYINTERNAL | \ LINEFORWARDMODE_BUSYEXTERNAL | \ LINEFORWARDMODE_BUSYSPECIFIC | \ LINEFORWARDMODE_NOANSW | \ LINEFORWARDMODE_NOANSWINTERNAL | \ LINEFORWARDMODE_NOANSWEXTERNAL | \ LINEFORWARDMODE_NOANSWSPECIFIC | \ LINEFORWARDMODE_BUSYNA | \ LINEFORWARDMODE_BUSYNAINTERNAL | \ LINEFORWARDMODE_BUSYNAEXTERNAL | \ LINEFORWARDMODE_BUSYNASPECIFIC) #define AllForwardModes1_4 \ (AllForwardModes1_0 | \ LINEFORWARDMODE_UNKNOWN | \ LINEFORWARDMODE_UNAVAIL) #define AllGroupStatus \ (LINEGROUPSTATUS_NEWGROUP | \ LINEGROUPSTATUS_GROUPREMOVED) #define AllLineStates1_0 \ (LINEDEVSTATE_OTHER | \ LINEDEVSTATE_RINGING | \ LINEDEVSTATE_CONNECTED | \ LINEDEVSTATE_DISCONNECTED | \ LINEDEVSTATE_MSGWAITON | \ LINEDEVSTATE_MSGWAITOFF | \ LINEDEVSTATE_INSERVICE | \ LINEDEVSTATE_OUTOFSERVICE | \ LINEDEVSTATE_MAINTENANCE | \ LINEDEVSTATE_OPEN | \ LINEDEVSTATE_CLOSE | \ LINEDEVSTATE_NUMCALLS | \ LINEDEVSTATE_NUMCOMPLETIONS | \ LINEDEVSTATE_TERMINALS | \ LINEDEVSTATE_ROAMMODE | \ LINEDEVSTATE_BATTERY | \ LINEDEVSTATE_SIGNAL | \ LINEDEVSTATE_DEVSPECIFIC | \ LINEDEVSTATE_REINIT | \ LINEDEVSTATE_LOCK) #define AllLineStates1_4 \ (AllLineStates1_0 | \ LINEDEVSTATE_CAPSCHANGE | \ LINEDEVSTATE_CONFIGCHANGE | \ LINEDEVSTATE_TRANSLATECHANGE | \ LINEDEVSTATE_COMPLCANCEL | \ LINEDEVSTATE_REMOVED) #define AllMediaModes1_0 \ (LINEMEDIAMODE_UNKNOWN | \ LINEMEDIAMODE_INTERACTIVEVOICE | \ LINEMEDIAMODE_AUTOMATEDVOICE | \ LINEMEDIAMODE_DIGITALDATA | \ LINEMEDIAMODE_G3FAX | \ LINEMEDIAMODE_G4FAX | \ LINEMEDIAMODE_DATAMODEM | \ LINEMEDIAMODE_TELETEX | \ LINEMEDIAMODE_VIDEOTEX | \ LINEMEDIAMODE_TELEX | \ LINEMEDIAMODE_MIXED | \ LINEMEDIAMODE_TDD | \ LINEMEDIAMODE_ADSI) #define AllMediaModes1_4 \ (AllMediaModes1_0 | \ LINEMEDIAMODE_VOICEVIEW) #define AllMediaModes2_1 \ (AllMediaModes1_4 | \ LINEMEDIAMODE_VIDEO) #define AllProxyStatus \ (LINEPROXYSTATUS_OPEN | \ LINEPROXYSTATUS_CLOSE) #define AllRequiredACDProxyRequests3_0 \ ((1<