Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

272 lines
16 KiB

  1. /*++
  2. Copyright (c) 1995-1996 Microsoft Corporation
  3. Module Name:
  4. Pctapi.h
  5. Abstract:
  6. The module defines the TAPI data for
  7. the NDIS Proxy. It includes ndistapi.h (which contains data from tapi.h) and adds
  8. further definitions from tspi.h. We don't include tspi.h directly as it won't work for us.
  9. Author:
  10. Richard Machin (RMachin)
  11. Revision History:
  12. Who When What
  13. -------- -------- ----------------------------------------------
  14. RMachin 01-13-97 created (a *lot* of typing saved by Dan Knudson's
  15. Example Simple Pbx SP)
  16. --*/
  17. #ifndef _PX_TAPI_
  18. #define _PX_TAPI_
  19. #include "ndistapi.h"
  20. //
  21. // LINE stuff from tapi.h
  22. //
  23. #ifndef DECLARE_OPAQUE32
  24. #define DECLARE_OPAQUE32(name) struct name##__ { int unused; }; \
  25. typedef const struct name##__ FAR* name
  26. #endif // DECLARE_OPAQUE32
  27. DECLARE_OPAQUE32(HDRVCALL);
  28. DECLARE_OPAQUE32(HDRVLINE);
  29. typedef HDRVCALL FAR * LPHDRVCALL;
  30. typedef HDRVLINE FAR * LPHDRVLINE;
  31. DECLARE_OPAQUE32(HTAPICALL);
  32. DECLARE_OPAQUE32(HTAPILINE);
  33. typedef HTAPICALL FAR * LPHTAPICALL;
  34. typedef HTAPILINE FAR * LPHTAPILINE;
  35. //
  36. // from TAPI.H
  37. //
  38. #define LINE_REMOVE 25L // TAPI v2.0
  39. #define ALL_ADDRESS_FEATURES (LINEADDRFEATURE_FORWARD | \
  40. LINEADDRFEATURE_MAKECALL | \
  41. LINEADDRFEATURE_PICKUP | \
  42. LINEADDRFEATURE_SETMEDIACONTROL | \
  43. LINEADDRFEATURE_SETTERMINAL | \
  44. LINEADDRFEATURE_SETUPCONF | \
  45. LINEADDRFEATURE_UNCOMPLETECALL | \
  46. LINEADDRFEATURE_UNPARK)
  47. #define ALL_ADDRESS_MODES (LINEADDRESSMODE_ADDRESSID | \
  48. LINEADDRESSMODE_DIALABLEADDR)
  49. #define ALL_ADDRESS_STATES (LINEADDRESSSTATE_OTHER | \
  50. LINEADDRESSSTATE_DEVSPECIFIC | \
  51. LINEADDRESSSTATE_INUSEZERO | \
  52. LINEADDRESSSTATE_INUSEONE | \
  53. LINEADDRESSSTATE_INUSEMANY | \
  54. LINEADDRESSSTATE_NUMCALLS | \
  55. LINEADDRESSSTATE_FORWARD | \
  56. LINEADDRESSSTATE_TERMINALS | \
  57. LINEADDRESSSTATE_CAPSCHANGE)
  58. #define ALL_BEARER_MODES (LINEBEARERMODE_VOICE | \
  59. LINEBEARERMODE_SPEECH | \
  60. LINEBEARERMODE_MULTIUSE | \
  61. LINEBEARERMODE_DATA | \
  62. LINEBEARERMODE_ALTSPEECHDATA | \
  63. LINEBEARERMODE_NONCALLSIGNALING | \
  64. LINEBEARERMODE_PASSTHROUGH)
  65. #define ALL_BUSY_MODES (LINEBUSYMODE_STATION | \
  66. LINEBUSYMODE_TRUNK | \
  67. LINEBUSYMODE_UNKNOWN | \
  68. LINEBUSYMODE_UNAVAIL)
  69. #define ALL_CALL_FEATURES (LINECALLFEATURE_ACCEPT | \
  70. LINECALLFEATURE_ADDTOCONF | \
  71. LINECALLFEATURE_ANSWER | \
  72. LINECALLFEATURE_BLINDTRANSFER | \
  73. LINECALLFEATURE_COMPLETECALL | \
  74. LINECALLFEATURE_COMPLETETRANSF | \
  75. LINECALLFEATURE_DIAL | \
  76. LINECALLFEATURE_DROP | \
  77. LINECALLFEATURE_GATHERDIGITS | \
  78. LINECALLFEATURE_GENERATEDIGITS | \
  79. LINECALLFEATURE_GENERATETONE | \
  80. LINECALLFEATURE_HOLD | \
  81. LINECALLFEATURE_MONITORDIGITS | \
  82. LINECALLFEATURE_MONITORMEDIA | \
  83. LINECALLFEATURE_MONITORTONES | \
  84. LINECALLFEATURE_PARK | \
  85. LINECALLFEATURE_PREPAREADDCONF | \
  86. LINECALLFEATURE_REDIRECT | \
  87. LINECALLFEATURE_REMOVEFROMCONF | \
  88. LINECALLFEATURE_SECURECALL | \
  89. LINECALLFEATURE_SENDUSERUSER | \
  90. LINECALLFEATURE_SETCALLPARAMS | \
  91. LINECALLFEATURE_SETMEDIACONTROL | \
  92. LINECALLFEATURE_SETTERMINAL | \
  93. LINECALLFEATURE_SETUPCONF | \
  94. LINECALLFEATURE_SETUPTRANSFER | \
  95. LINECALLFEATURE_SWAPHOLD | \
  96. LINECALLFEATURE_UNHOLD | \
  97. LINECALLFEATURE_RELEASEUSERUSERINFO)
  98. #define ALL_CALL_INFO_STATES (LINECALLINFOSTATE_OTHER | \
  99. LINECALLINFOSTATE_DEVSPECIFIC | \
  100. LINECALLINFOSTATE_BEARERMODE | \
  101. LINECALLINFOSTATE_RATE | \
  102. LINECALLINFOSTATE_MEDIAMODE | \
  103. LINECALLINFOSTATE_APPSPECIFIC | \
  104. LINECALLINFOSTATE_CALLID | \
  105. LINECALLINFOSTATE_RELATEDCALLID | \
  106. LINECALLINFOSTATE_ORIGIN | \
  107. LINECALLINFOSTATE_REASON | \
  108. LINECALLINFOSTATE_COMPLETIONID | \
  109. LINECALLINFOSTATE_TRUNK | \
  110. LINECALLINFOSTATE_CALLERID | \
  111. LINECALLINFOSTATE_CALLEDID | \
  112. LINECALLINFOSTATE_CONNECTEDID | \
  113. LINECALLINFOSTATE_REDIRECTIONID | \
  114. LINECALLINFOSTATE_REDIRECTINGID | \
  115. LINECALLINFOSTATE_DISPLAY | \
  116. LINECALLINFOSTATE_USERUSERINFO | \
  117. LINECALLINFOSTATE_HIGHLEVELCOMP | \
  118. LINECALLINFOSTATE_LOWLEVELCOMP | \
  119. LINECALLINFOSTATE_CHARGINGINFO | \
  120. LINECALLINFOSTATE_TERMINAL | \
  121. LINECALLINFOSTATE_DIALPARAMS | \
  122. LINECALLINFOSTATE_MONITORMODES)
  123. //LINECALLINFOSTATE_NUMMONITORS not SP flag
  124. //LINECALLINFOSTATE_NUMOWNERINCR not SP flag
  125. //LINECALLINFOSTATE_NUMOWNERDECR not SP flag
  126. #define ALL_CALL_PARTY_ID_FLAGS (LINECALLPARTYID_BLOCKED | \
  127. LINECALLPARTYID_OUTOFAREA | \
  128. LINECALLPARTYID_NAME | \
  129. LINECALLPARTYID_ADDRESS | \
  130. LINECALLPARTYID_PARTIAL | \
  131. LINECALLPARTYID_UNKNOWN | \
  132. LINECALLPARTYID_UNAVAIL)
  133. #define ALL_CALL_STATES (LINECALLSTATE_IDLE | \
  134. LINECALLSTATE_OFFERING | \
  135. LINECALLSTATE_ACCEPTED | \
  136. LINECALLSTATE_DIALTONE | \
  137. LINECALLSTATE_DIALING | \
  138. LINECALLSTATE_RINGBACK | \
  139. LINECALLSTATE_BUSY | \
  140. LINECALLSTATE_SPECIALINFO | \
  141. LINECALLSTATE_CONNECTED | \
  142. LINECALLSTATE_PROCEEDING | \
  143. LINECALLSTATE_ONHOLD | \
  144. LINECALLSTATE_CONFERENCED | \
  145. LINECALLSTATE_ONHOLDPENDCONF | \
  146. LINECALLSTATE_ONHOLDPENDTRANSFER | \
  147. LINECALLSTATE_DISCONNECTED | \
  148. LINECALLSTATE_UNKNOWN)
  149. #define ALL_DIAL_TONE_MODES (LINEDIALTONEMODE_NORMAL | \
  150. LINEDIALTONEMODE_SPECIAL | \
  151. LINEDIALTONEMODE_INTERNAL | \
  152. LINEDIALTONEMODE_EXTERNAL | \
  153. LINEDIALTONEMODE_UNKNOWN | \
  154. LINEDIALTONEMODE_UNAVAIL)
  155. #define ALL_DISCONNECT_MODES (LINEDISCONNECTMODE_NORMAL | \
  156. LINEDISCONNECTMODE_UNKNOWN | \
  157. LINEDISCONNECTMODE_REJECT | \
  158. LINEDISCONNECTMODE_PICKUP | \
  159. LINEDISCONNECTMODE_FORWARDED | \
  160. LINEDISCONNECTMODE_BUSY | \
  161. LINEDISCONNECTMODE_NOANSWER | \
  162. LINEDISCONNECTMODE_BADADDRESS | \
  163. LINEDISCONNECTMODE_UNREACHABLE | \
  164. LINEDISCONNECTMODE_CONGESTION | \
  165. LINEDISCONNECTMODE_INCOMPATIBLE | \
  166. LINEDISCONNECTMODE_UNAVAIL | \
  167. LINEDISCONNECTMODE_NODIALTONE)
  168. #define ALL_MEDIA_MODES (LINEMEDIAMODE_UNKNOWN | \
  169. LINEMEDIAMODE_INTERACTIVEVOICE | \
  170. LINEMEDIAMODE_AUTOMATEDVOICE | \
  171. LINEMEDIAMODE_DATAMODEM | \
  172. LINEMEDIAMODE_G3FAX | \
  173. LINEMEDIAMODE_TDD | \
  174. LINEMEDIAMODE_G4FAX | \
  175. LINEMEDIAMODE_DIGITALDATA | \
  176. LINEMEDIAMODE_TELETEX | \
  177. LINEMEDIAMODE_VIDEOTEX | \
  178. LINEMEDIAMODE_TELEX | \
  179. LINEMEDIAMODE_MIXED | \
  180. LINEMEDIAMODE_ADSI | \
  181. LINEMEDIAMODE_VOICEVIEW)
  182. #define ALL_LINE_DEV_CAP_FLAGS (LINEDEVCAPFLAGS_CROSSADDRCONF | \
  183. LINEDEVCAPFLAGS_HIGHLEVCOMP | \
  184. LINEDEVCAPFLAGS_LOWLEVCOMP | \
  185. LINEDEVCAPFLAGS_MEDIACONTROL | \
  186. LINEDEVCAPFLAGS_MULTIPLEADDR | \
  187. LINEDEVCAPFLAGS_CLOSEDROP | \
  188. LINEDEVCAPFLAGS_DIALBILLING | \
  189. LINEDEVCAPFLAGS_DIALQUIET | \
  190. LINEDEVCAPFLAGS_DIALDIALTONE)
  191. #define ALL_LINE_STATES (LINEDEVSTATE_OTHER | \
  192. LINEDEVSTATE_RINGING | \
  193. LINEDEVSTATE_CONNECTED | \
  194. LINEDEVSTATE_DISCONNECTED | \
  195. LINEDEVSTATE_MSGWAITON | \
  196. LINEDEVSTATE_MSGWAITOFF | \
  197. LINEDEVSTATE_INSERVICE | \
  198. LINEDEVSTATE_OUTOFSERVICE | \
  199. LINEDEVSTATE_MAINTENANCE | \
  200. LINEDEVSTATE_OPEN | \
  201. LINEDEVSTATE_CLOSE | \
  202. LINEDEVSTATE_NUMCALLS | \
  203. LINEDEVSTATE_NUMCOMPLETIONS | \
  204. LINEDEVSTATE_TERMINALS | \
  205. LINEDEVSTATE_ROAMMODE | \
  206. LINEDEVSTATE_BATTERY | \
  207. LINEDEVSTATE_SIGNAL | \
  208. LINEDEVSTATE_DEVSPECIFIC | \
  209. LINEDEVSTATE_REINIT | \
  210. LINEDEVSTATE_LOCK | \
  211. LINEDEVSTATE_CAPSCHANGE | \
  212. LINEDEVSTATE_CONFIGCHANGE | \
  213. LINEDEVSTATE_TRANSLATECHANGE | \
  214. LINEDEVSTATE_COMPLCANCEL | \
  215. LINEDEVSTATE_REMOVED)
  216. #define ALL_LINE_FEATURES (LINEFEATURE_DEVSPECIFIC | \
  217. LINEFEATURE_DEVSPECIFICFEAT | \
  218. LINEFEATURE_FORWARD | \
  219. LINEFEATURE_MAKECALL | \
  220. LINEFEATURE_SETMEDIACONTROL | \
  221. LINEFEATURE_SETTERMINAL)
  222. #define ALL_SPECIAL_INFO (LINESPECIALINFO_NOCIRCUIT | \
  223. LINESPECIALINFO_CUSTIRREG | \
  224. LINESPECIALINFO_REORDER | \
  225. LINESPECIALINFO_UNKNOWN | \
  226. LINESPECIALINFO_UNAVAIL)
  227. #define ALL_ADDRESS_CAP_FLAGS (LINEADDRCAPFLAGS_FWDNUMRINGS | \
  228. LINEADDRCAPFLAGS_PICKUPGROUPID | \
  229. LINEADDRCAPFLAGS_SECURE | \
  230. LINEADDRCAPFLAGS_BLOCKIDDEFAULT | \
  231. LINEADDRCAPFLAGS_BLOCKIDOVERRIDE | \
  232. LINEADDRCAPFLAGS_DIALED | \
  233. LINEADDRCAPFLAGS_ORIGOFFHOOK | \
  234. LINEADDRCAPFLAGS_DESTOFFHOOK | \
  235. LINEADDRCAPFLAGS_FWDCONSULT | \
  236. LINEADDRCAPFLAGS_SETUPCONFNULL | \
  237. LINEADDRCAPFLAGS_AUTORECONNECT | \
  238. LINEADDRCAPFLAGS_COMPLETIONID | \
  239. LINEADDRCAPFLAGS_TRANSFERHELD | \
  240. LINEADDRCAPFLAGS_TRANSFERMAKE | \
  241. LINEADDRCAPFLAGS_CONFERENCEHELD | \
  242. LINEADDRCAPFLAGS_CONFERENCEMAKE | \
  243. LINEADDRCAPFLAGS_PARTIALDIAL | \
  244. LINEADDRCAPFLAGS_FWDSTATUSVALID | \
  245. LINEADDRCAPFLAGS_FWDINTEXTADDR | \
  246. LINEADDRCAPFLAGS_FWDBUSYNAADDR | \
  247. LINEADDRCAPFLAGS_ACCEPTTOALERT | \
  248. LINEADDRCAPFLAGS_CONFDROP | \
  249. LINEADDRCAPFLAGS_PICKUPCALLWAIT)
  250. #endif // _PX_TAPI_