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.

1653 lines
59 KiB

  1. /*++ BUILD Version: 0000 // Increment this if a change has global effects
  2. Copyright (c) 1994-97 Microsoft Corporation
  3. Module Name:
  4. vars.c
  5. Abstract:
  6. Globals for TAPI Browser util.
  7. Author:
  8. Dan Knudson (DanKn) 23-Oct-1994
  9. Revision History:
  10. --*/
  11. #include <stdio.h>
  12. #include "tb.h"
  13. #ifdef WIN32
  14. #define my_far
  15. #else
  16. #define my_far _far
  17. #endif
  18. PMYWIDGET aWidgets = (PMYWIDGET) NULL;
  19. FILE *hLogFile = (FILE *) NULL;
  20. HANDLE ghInst;
  21. HWND ghwndMain, ghwndEdit, ghwndList1, ghwndList2;
  22. BOOL bShowParams = FALSE;
  23. BOOL gbDeallocateCall = FALSE;
  24. BOOL gbDisableHandleChecking;
  25. LPVOID pBigBuf;
  26. DWORD dwBigBufSize;
  27. DWORD dwNumPendingMakeCalls = 0;
  28. DWORD dwNumPendingDrops = 0;
  29. DWORD gdwNumLineDevs = 0;
  30. DWORD gdwNumPhoneDevs = 0;
  31. BOOL bDumpParams = FALSE;
  32. BOOL bTimeStamp;
  33. DWORD bNukeIdleMonitorCalls;
  34. DWORD bNukeIdleOwnedCalls;
  35. DWORD dwDumpStructsFlags;
  36. LPLINECALLPARAMS lpCallParams;
  37. #if TAPI_2_0
  38. BOOL gbWideStringParams = FALSE;
  39. LPLINECALLPARAMS lpCallParamsW;
  40. #endif
  41. DWORD aUserButtonFuncs[MAX_USER_BUTTONS];
  42. char aUserButtonsText[MAX_USER_BUTTONS][MAX_USER_BUTTON_TEXT_SIZE];
  43. PMYLINEAPP pLineAppSel;
  44. PMYLINE pLineSel;
  45. PMYCALL pCallSel, pCallSel2;
  46. PMYPHONEAPP pPhoneAppSel;
  47. PMYPHONE pPhoneSel;
  48. char my_far szDefAppName[MAX_STRING_PARAM_SIZE];
  49. char my_far szDefUserUserInfo[MAX_STRING_PARAM_SIZE];
  50. char my_far szDefDestAddress[MAX_STRING_PARAM_SIZE];
  51. char my_far szDefLineDeviceClass[MAX_STRING_PARAM_SIZE];
  52. char my_far szDefPhoneDeviceClass[MAX_STRING_PARAM_SIZE];
  53. char far *lpszDefAppName;
  54. char far *lpszDefUserUserInfo;
  55. char far *lpszDefDestAddress;
  56. char far *lpszDefLineDeviceClass;
  57. char far *lpszDefPhoneDeviceClass;
  58. char my_far szTab[] = " ";
  59. char my_far szCurrVer[] = "1.1";
  60. // help char my_far szTapiHlp[256] = "";
  61. // help char my_far szTspiHlp[256] = "";
  62. DWORD dwDefAddressID;
  63. DWORD dwDefLineAPIVersion;
  64. DWORD dwDefBearerMode;
  65. DWORD dwDefCountryCode;
  66. DWORD dwDefLineDeviceID;
  67. DWORD dwDefLineExtVersion;
  68. DWORD dwDefMediaMode;
  69. DWORD dwDefLinePrivilege;
  70. DWORD dwDefPhoneAPIVersion;
  71. DWORD dwDefPhoneDeviceID;
  72. DWORD dwDefPhoneExtVersion;
  73. DWORD dwDefPhonePrivilege;
  74. #if TAPI_2_0
  75. HANDLE ghCompletionPort;
  76. #endif
  77. char aAscii[] =
  78. {
  79. 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46,
  80. 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46,
  81. 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
  82. 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63,
  83. 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
  84. 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95,
  85. 96, 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,
  86. 112,113,114,115,116,117,118,119,120,121,122,123,124,125,126, 46,
  87. 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46,
  88. 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46,
  89. 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46,
  90. 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46,
  91. 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46,
  92. 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46,
  93. 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46,
  94. 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46
  95. };
  96. LOOKUP my_far aAddressCapFlags[] =
  97. {
  98. { LINEADDRCAPFLAGS_FWDNUMRINGS ,"FWDNUMRINGS" },
  99. { LINEADDRCAPFLAGS_PICKUPGROUPID ,"PICKUPGROUPID" },
  100. { LINEADDRCAPFLAGS_SECURE ,"SECURE" },
  101. { LINEADDRCAPFLAGS_BLOCKIDDEFAULT ,"BLOCKIDDEFAULT" },
  102. { LINEADDRCAPFLAGS_BLOCKIDOVERRIDE ,"BLOCKIDOVERRIDE" },
  103. { LINEADDRCAPFLAGS_DIALED ,"DIALED" },
  104. { LINEADDRCAPFLAGS_ORIGOFFHOOK ,"ORIGOFFHOOK" },
  105. { LINEADDRCAPFLAGS_DESTOFFHOOK ,"DESTOFFHOOK" },
  106. { LINEADDRCAPFLAGS_FWDCONSULT ,"FWDCONSULT" },
  107. { LINEADDRCAPFLAGS_SETUPCONFNULL ,"SETUPCONFNULL" },
  108. { LINEADDRCAPFLAGS_AUTORECONNECT ,"AUTORECONNECT" },
  109. { LINEADDRCAPFLAGS_COMPLETIONID ,"COMPLETIONID" },
  110. { LINEADDRCAPFLAGS_TRANSFERHELD ,"TRANSFERHELD" },
  111. { LINEADDRCAPFLAGS_TRANSFERMAKE ,"TRANSFERMAKE" },
  112. { LINEADDRCAPFLAGS_CONFERENCEHELD ,"CONFERENCEHELD" },
  113. { LINEADDRCAPFLAGS_CONFERENCEMAKE ,"CONFERENCEMAKE" },
  114. { LINEADDRCAPFLAGS_PARTIALDIAL ,"PARTIALDIAL" },
  115. { LINEADDRCAPFLAGS_FWDSTATUSVALID ,"FWDSTATUSVALID" },
  116. { LINEADDRCAPFLAGS_FWDINTEXTADDR ,"FWDINTEXTADDR" },
  117. { LINEADDRCAPFLAGS_FWDBUSYNAADDR ,"FWDBUSYNAADDR" },
  118. { LINEADDRCAPFLAGS_ACCEPTTOALERT ,"ACCEPTTOALERT" },
  119. { LINEADDRCAPFLAGS_CONFDROP ,"CONFDROP" },
  120. { LINEADDRCAPFLAGS_PICKUPCALLWAIT ,"PICKUPCALLWAIT" },
  121. #if TAPI_2_0
  122. { LINEADDRCAPFLAGS_PREDICTIVEDIALER ,"PREDICTIVEDIALER" },
  123. { LINEADDRCAPFLAGS_QUEUE ,"QUEUE" },
  124. { LINEADDRCAPFLAGS_ROUTEPOINT ,"ROUTEPOINT" },
  125. { LINEADDRCAPFLAGS_HOLDMAKESNEW ,"HOLDMAKESNEW" },
  126. { LINEADDRCAPFLAGS_NOINTERNALCALLS ,"NOINTERNALCALLS" },
  127. { LINEADDRCAPFLAGS_NOEXTERNALCALLS ,"NOEXTERNALCALLS" },
  128. { LINEADDRCAPFLAGS_SETCALLINGID ,"SETCALLINGID" },
  129. #endif
  130. { 0xffffffff ,"" }
  131. };
  132. LOOKUP my_far aAddressModes[] =
  133. {
  134. { LINEADDRESSMODE_ADDRESSID ,"ADDRESSID" },
  135. { LINEADDRESSMODE_DIALABLEADDR ,"DIALABLEADDR" },
  136. { 0xffffffff ,"" }
  137. };
  138. LOOKUP my_far aAddressSharing[] =
  139. {
  140. { LINEADDRESSSHARING_PRIVATE ,"PRIVATE" },
  141. { LINEADDRESSSHARING_BRIDGEDEXCL ,"BRIDGEDEXCL" },
  142. { LINEADDRESSSHARING_BRIDGEDNEW ,"BRIDGEDNEW" },
  143. { LINEADDRESSSHARING_BRIDGEDSHARED ,"BRIDGEDSHARED" },
  144. { LINEADDRESSSHARING_MONITORED ,"MONITORED" },
  145. { 0xffffffff ,"" }
  146. };
  147. LOOKUP my_far aAddressStates[] =
  148. {
  149. { LINEADDRESSSTATE_OTHER ,"OTHER" },
  150. { LINEADDRESSSTATE_DEVSPECIFIC ,"DEVSPECIFIC" },
  151. { LINEADDRESSSTATE_INUSEZERO ,"INUSEZERO" },
  152. { LINEADDRESSSTATE_INUSEONE ,"INUSEONE" },
  153. { LINEADDRESSSTATE_INUSEMANY ,"INUSEMANY" },
  154. { LINEADDRESSSTATE_NUMCALLS ,"NUMCALLS" },
  155. { LINEADDRESSSTATE_FORWARD ,"FORWARD" },
  156. { LINEADDRESSSTATE_TERMINALS ,"TERMINALS" },
  157. #if TAPI_1_1
  158. { LINEADDRESSSTATE_CAPSCHANGE ,"CAPSCHANGE" },
  159. #endif
  160. { 0xffffffff ,"" }
  161. };
  162. LOOKUP my_far aAddressFeatures[] =
  163. {
  164. { LINEADDRFEATURE_FORWARD ,"FORWARD" },
  165. { LINEADDRFEATURE_MAKECALL ,"MAKECALL" },
  166. { LINEADDRFEATURE_PICKUP ,"PICKUP" },
  167. { LINEADDRFEATURE_SETMEDIACONTROL ,"SETMEDIACONTROL" },
  168. { LINEADDRFEATURE_SETTERMINAL ,"SETTERMINAL" },
  169. { LINEADDRFEATURE_SETUPCONF ,"SETUPCONF" },
  170. { LINEADDRFEATURE_UNCOMPLETECALL ,"UNCOMPLETECALL" },
  171. { LINEADDRFEATURE_UNPARK ,"UNPARK" },
  172. #if TAPI_2_0
  173. { LINEADDRFEATURE_PICKUPHELD ,"PICKUPHELD " },
  174. { LINEADDRFEATURE_PICKUPGROUP ,"PICKUPGROUP " },
  175. { LINEADDRFEATURE_PICKUPDIRECT ,"PICKUPDIRECT " },
  176. { LINEADDRFEATURE_PICKUPWAITING ,"PICKUPWAITING" },
  177. { LINEADDRFEATURE_FORWARDFWD ,"FORWARDFWD " },
  178. { LINEADDRFEATURE_FORWARDDND ,"FORWARDDND " },
  179. #endif
  180. { 0xffffffff ,"" }
  181. };
  182. #ifdef TAPI_2_0
  183. LOOKUP my_far aAgentStates[] =
  184. {
  185. { LINEAGENTSTATE_LOGGEDOFF ,"LOGGEDOFF" },
  186. { LINEAGENTSTATE_NOTREADY ,"NOTREADY" },
  187. { LINEAGENTSTATE_READY ,"READY" },
  188. { LINEAGENTSTATE_BUSYACD ,"BUSYACD" },
  189. { LINEAGENTSTATE_BUSYINCOMING ,"BUSYINCOMING" },
  190. { LINEAGENTSTATE_BUSYOUTBOUND ,"BUSYOUTBOUND" },
  191. { LINEAGENTSTATE_BUSYOTHER ,"BUSYOTHER" },
  192. { LINEAGENTSTATE_WORKINGAFTERCALL ,"WORKINGAFTERCALL" },
  193. { LINEAGENTSTATE_UNKNOWN ,"UNKNOWN" },
  194. { LINEAGENTSTATE_UNAVAIL ,"UNAVAIL" },
  195. { 0xffffffff ,"" }
  196. };
  197. LOOKUP my_far aAgentStatus[] =
  198. {
  199. { LINEAGENTSTATUS_GROUP ,"GROUP" },
  200. { LINEAGENTSTATUS_STATE ,"STATE" },
  201. { LINEAGENTSTATUS_NEXTSTATE ,"NEXTSTATE" },
  202. { LINEAGENTSTATUS_ACTIVITY ,"ACTIVITY" },
  203. { LINEAGENTSTATUS_ACTIVITYLIST ,"ACTIVITYLIST" },
  204. { LINEAGENTSTATUS_GROUPLIST ,"GROUPLIST" },
  205. { LINEAGENTSTATUS_CAPSCHANGE ,"CAPSCHANGE" },
  206. { LINEAGENTSTATUS_VALIDSTATES ,"VALIDSTATES" },
  207. { LINEAGENTSTATUS_VALIDNEXTSTATES ,"VALIDNEXTSTATES" },
  208. { 0xffffffff ,"" }
  209. };
  210. #endif
  211. LOOKUP my_far aAnswerModes[] =
  212. {
  213. { LINEANSWERMODE_NONE ,"NONE" },
  214. { LINEANSWERMODE_DROP ,"DROP" },
  215. { LINEANSWERMODE_HOLD ,"HOLD" },
  216. { 0xffffffff ,"" }
  217. };
  218. LOOKUP my_far aAPIVersions[] =
  219. {
  220. { 0x00010003 ,"TAPI 1.0" },
  221. #if TAPI_1_1
  222. { 0x00010004 ,"TAPI 1.4" },
  223. #if TAPI_2_0
  224. { 0x00020000 ,"TAPI 2.0" },
  225. #if TAPI_2_1
  226. { 0x00020001 ,"TAPI 2.1" },
  227. #if TAPI_2_2
  228. { 0x00020002 ,"TAPI 2.2" },
  229. #endif
  230. #endif
  231. #endif
  232. #endif
  233. { 0xffffffff ,"" }
  234. };
  235. LOOKUP my_far aBearerModes[] =
  236. {
  237. { LINEBEARERMODE_VOICE ,"VOICE" },
  238. { LINEBEARERMODE_SPEECH ,"SPEECH" },
  239. { LINEBEARERMODE_MULTIUSE ,"MULTIUSE" },
  240. { LINEBEARERMODE_DATA ,"DATA" },
  241. { LINEBEARERMODE_ALTSPEECHDATA ,"ALTSPEECHDATA" },
  242. { LINEBEARERMODE_NONCALLSIGNALING ,"NONCALLSIGNALING" },
  243. #if TAPI_1_1
  244. { LINEBEARERMODE_PASSTHROUGH ,"PASSTHROUGH" },
  245. #if TAPI_2_0
  246. { LINEBEARERMODE_RESTRICTEDDATA ,"RESTRICTEDDATA" },
  247. #endif
  248. #endif
  249. { 0xffffffff ,"" }
  250. };
  251. LOOKUP my_far aBusyModes[] =
  252. {
  253. { LINEBUSYMODE_STATION ,"STATION" },
  254. { LINEBUSYMODE_TRUNK ,"TRUNK" },
  255. { LINEBUSYMODE_UNKNOWN ,"UNKNOWN" },
  256. { LINEBUSYMODE_UNAVAIL ,"UNAVAIL" },
  257. { 0xffffffff ,"" }
  258. };
  259. LOOKUP my_far aCallComplConds[] =
  260. {
  261. { LINECALLCOMPLCOND_BUSY ,"BUSY" },
  262. { LINECALLCOMPLCOND_NOANSWER ,"NOANSWER" },
  263. { 0xffffffff ,"" }
  264. };
  265. LOOKUP my_far aCallComplModes[] =
  266. {
  267. { LINECALLCOMPLMODE_CAMPON ,"CAMPON" },
  268. { LINECALLCOMPLMODE_CALLBACK ,"CALLBACK" },
  269. { LINECALLCOMPLMODE_INTRUDE ,"INTRUDE" },
  270. { LINECALLCOMPLMODE_MESSAGE ,"MESSAGE" },
  271. { 0xffffffff ,"" }
  272. };
  273. LOOKUP my_far aCallFeatures[] =
  274. {
  275. { LINECALLFEATURE_ACCEPT ,"ACCEPT" },
  276. { LINECALLFEATURE_ADDTOCONF ,"ADDTOCONF" },
  277. { LINECALLFEATURE_ANSWER ,"ANSWER" },
  278. { LINECALLFEATURE_BLINDTRANSFER ,"BLINDTRANSFER" },
  279. { LINECALLFEATURE_COMPLETECALL ,"COMPLETECALL" },
  280. { LINECALLFEATURE_COMPLETETRANSF ,"COMPLETETRANSF" },
  281. { LINECALLFEATURE_DIAL ,"DIAL" },
  282. { LINECALLFEATURE_DROP ,"DROP" },
  283. { LINECALLFEATURE_GATHERDIGITS ,"GATHERDIGITS" },
  284. { LINECALLFEATURE_GENERATEDIGITS ,"GENERATEDIGITS" },
  285. { LINECALLFEATURE_GENERATETONE ,"GENERATETONE" },
  286. { LINECALLFEATURE_HOLD ,"HOLD" },
  287. { LINECALLFEATURE_MONITORDIGITS ,"MONITORDIGITS" },
  288. { LINECALLFEATURE_MONITORMEDIA ,"MONITORMEDIA" },
  289. { LINECALLFEATURE_MONITORTONES ,"MONITORTONES" },
  290. { LINECALLFEATURE_PARK ,"PARK" },
  291. { LINECALLFEATURE_PREPAREADDCONF ,"PREPAREADDCONF" },
  292. { LINECALLFEATURE_REDIRECT ,"REDIRECT" },
  293. { LINECALLFEATURE_REMOVEFROMCONF ,"REMOVEFROMCONF" },
  294. { LINECALLFEATURE_SECURECALL ,"SECURECALL" },
  295. { LINECALLFEATURE_SENDUSERUSER ,"SENDUSERUSER" },
  296. { LINECALLFEATURE_SETCALLPARAMS ,"SETCALLPARAMS" },
  297. { LINECALLFEATURE_SETMEDIACONTROL ,"SETMEDIACONTROL" },
  298. { LINECALLFEATURE_SETTERMINAL ,"SETTERMINAL" },
  299. { LINECALLFEATURE_SETUPCONF ,"SETUPCONF" },
  300. { LINECALLFEATURE_SETUPTRANSFER ,"SETUPTRANSFER" },
  301. { LINECALLFEATURE_SWAPHOLD ,"SWAPHOLD" },
  302. { LINECALLFEATURE_UNHOLD ,"UNHOLD" },
  303. #if TAPI_1_1
  304. { LINECALLFEATURE_RELEASEUSERUSERINFO ,"RELEASEUSERUSERINFO" },
  305. #if TAPI_2_0
  306. { LINECALLFEATURE_SETTREATMENT ,"SETTREATMENT" },
  307. { LINECALLFEATURE_SETQOS ,"SETQOS" },
  308. { LINECALLFEATURE_SETCALLDATA ,"SETCALLDATA" },
  309. #endif
  310. #endif
  311. { 0xffffffff ,"" }
  312. };
  313. #if TAPI_2_0
  314. LOOKUP my_far aCallFeatures2[] =
  315. {
  316. { LINECALLFEATURE2_NOHOLDCONFERENCE ,"NOHOLDCONFERENCE" },
  317. { LINECALLFEATURE2_ONESTEPTRANSFER ,"ONESTEPTRANSFER " },
  318. { LINECALLFEATURE2_COMPLCAMPON ,"COMPLCAMPON" },
  319. { LINECALLFEATURE2_COMPLCALLBACK ,"COMPLCALLBACK" },
  320. { LINECALLFEATURE2_COMPLINTRUDE ,"COMPLINTRUDE" },
  321. { LINECALLFEATURE2_COMPLMESSAGE ,"COMPLMESSAGE" },
  322. { LINECALLFEATURE2_TRANSFERNORM ,"TRANSFERNORM" },
  323. { LINECALLFEATURE2_TRANSFERCONF ,"TRANSFERCONF" },
  324. { LINECALLFEATURE2_PARKDIRECT ,"PARKDIRECT" },
  325. { LINECALLFEATURE2_PARKNONDIRECT ,"PARKNONDIRECT" },
  326. { 0xffffffff ,"" }
  327. };
  328. #endif
  329. LOOKUP my_far aCallInfoStates[] =
  330. {
  331. { LINECALLINFOSTATE_OTHER ,"OTHER" },
  332. { LINECALLINFOSTATE_DEVSPECIFIC ,"DEVSPECIFIC" },
  333. { LINECALLINFOSTATE_BEARERMODE ,"BEARERMODE" },
  334. { LINECALLINFOSTATE_RATE ,"RATE" },
  335. { LINECALLINFOSTATE_MEDIAMODE ,"MEDIAMODE" },
  336. { LINECALLINFOSTATE_APPSPECIFIC ,"APPSPECIFIC" },
  337. { LINECALLINFOSTATE_CALLID ,"CALLID" },
  338. { LINECALLINFOSTATE_RELATEDCALLID ,"RELATEDCALLID" },
  339. { LINECALLINFOSTATE_ORIGIN ,"ORIGIN" },
  340. { LINECALLINFOSTATE_REASON ,"REASON" },
  341. { LINECALLINFOSTATE_COMPLETIONID ,"COMPLETIONID" },
  342. { LINECALLINFOSTATE_NUMOWNERINCR ,"NUMOWNERINCR" },
  343. { LINECALLINFOSTATE_NUMOWNERDECR ,"NUMOWNERDECR" },
  344. { LINECALLINFOSTATE_NUMMONITORS ,"NUMMONITORS" },
  345. { LINECALLINFOSTATE_TRUNK ,"TRUNK" },
  346. { LINECALLINFOSTATE_CALLERID ,"CALLERID" },
  347. { LINECALLINFOSTATE_CALLEDID ,"CALLEDID" },
  348. { LINECALLINFOSTATE_CONNECTEDID ,"CONNECTEDID" },
  349. { LINECALLINFOSTATE_REDIRECTIONID ,"REDIRECTIONID" },
  350. { LINECALLINFOSTATE_REDIRECTINGID ,"REDIRECTINGID" },
  351. { LINECALLINFOSTATE_DISPLAY ,"DISPLAY" },
  352. { LINECALLINFOSTATE_USERUSERINFO ,"USERUSERINFO" },
  353. { LINECALLINFOSTATE_HIGHLEVELCOMP ,"HIGHLEVELCOMP" },
  354. { LINECALLINFOSTATE_LOWLEVELCOMP ,"LOWLEVELCOMP" },
  355. { LINECALLINFOSTATE_CHARGINGINFO ,"CHARGINGINFO" },
  356. { LINECALLINFOSTATE_TERMINAL ,"TERMINAL" },
  357. { LINECALLINFOSTATE_DIALPARAMS ,"DIALPARAMS" },
  358. { LINECALLINFOSTATE_MONITORMODES ,"MONITORMODES" },
  359. #if TAPI_2_0
  360. { LINECALLINFOSTATE_TREATMENT ,"TREATMENT" },
  361. { LINECALLINFOSTATE_QOS ,"QOS" },
  362. { LINECALLINFOSTATE_CALLDATA ,"CALLDATA" },
  363. #endif
  364. { 0xffffffff ,"" }
  365. };
  366. LOOKUP my_far aCallOrigins[] =
  367. {
  368. { LINECALLORIGIN_OUTBOUND ,"OUTBOUND" },
  369. { LINECALLORIGIN_INTERNAL ,"INTERNAL" },
  370. { LINECALLORIGIN_EXTERNAL ,"EXTERNAL" },
  371. { LINECALLORIGIN_UNKNOWN ,"UNKNOWN" },
  372. { LINECALLORIGIN_UNAVAIL ,"UNAVAIL" },
  373. { LINECALLORIGIN_CONFERENCE ,"CONFERENCE" },
  374. #if TAPI_1_1
  375. { LINECALLORIGIN_INBOUND ,"INBOUND" },
  376. #endif
  377. { 0xffffffff ,"" }
  378. };
  379. LOOKUP my_far aCallParamFlags[] =
  380. {
  381. { LINECALLPARAMFLAGS_SECURE ,"SECURE" },
  382. { LINECALLPARAMFLAGS_IDLE ,"IDLE" },
  383. { LINECALLPARAMFLAGS_BLOCKID ,"BLOCKID" },
  384. { LINECALLPARAMFLAGS_ORIGOFFHOOK ,"ORIGOFFHOOK" },
  385. { LINECALLPARAMFLAGS_DESTOFFHOOK ,"DESTOFFHOOK" },
  386. #if TAPI_2_0
  387. { LINECALLPARAMFLAGS_NOHOLDCONFERENCE ,"NOHOLDCONFERENCE" },
  388. { LINECALLPARAMFLAGS_PREDICTIVEDIAL ,"PREDICTIVEDIAL" },
  389. { LINECALLPARAMFLAGS_ONESTEPTRANSFER,"ONESTEPTRANSFER" },
  390. #endif
  391. { 0xffffffff ,"" }
  392. };
  393. LOOKUP my_far aCallerIDFlags[] =
  394. {
  395. { LINECALLPARTYID_BLOCKED ,"BLOCKED" },
  396. { LINECALLPARTYID_OUTOFAREA ,"OUTOFAREA" },
  397. { LINECALLPARTYID_NAME ,"NAME" },
  398. { LINECALLPARTYID_ADDRESS ,"ADDRESS" },
  399. { LINECALLPARTYID_PARTIAL ,"PARTIAL" },
  400. { LINECALLPARTYID_UNKNOWN ,"UNKNOWN" },
  401. { LINECALLPARTYID_UNAVAIL ,"UNAVAIL" },
  402. { 0xffffffff ,"" }
  403. };
  404. LOOKUP my_far aCallPrivileges[] =
  405. {
  406. { LINECALLPRIVILEGE_NONE ,"NONE" },
  407. { LINECALLPRIVILEGE_MONITOR ,"MONITOR" },
  408. { LINECALLPRIVILEGE_OWNER ,"OWNER" },
  409. { 0xffffffff ,"" }
  410. };
  411. LOOKUP my_far aCallReasons[] =
  412. {
  413. { LINECALLREASON_DIRECT ,"DIRECT" },
  414. { LINECALLREASON_FWDBUSY ,"FWDBUSY" },
  415. { LINECALLREASON_FWDNOANSWER ,"FWDNOANSWER" },
  416. { LINECALLREASON_FWDUNCOND ,"FWDUNCOND" },
  417. { LINECALLREASON_PICKUP ,"PICKUP" },
  418. { LINECALLREASON_UNPARK ,"UNPARK" },
  419. { LINECALLREASON_REDIRECT ,"REDIRECT" },
  420. { LINECALLREASON_CALLCOMPLETION ,"CALLCOMPLETION" },
  421. { LINECALLREASON_TRANSFER ,"TRANSFER" },
  422. { LINECALLREASON_REMINDER ,"REMINDER" },
  423. { LINECALLREASON_UNKNOWN ,"UNKNOWN" },
  424. { LINECALLREASON_UNAVAIL ,"UNAVAIL" },
  425. #if TAPI_1_1
  426. { LINECALLREASON_INTRUDE ,"INTRUDE" },
  427. { LINECALLREASON_PARKED ,"PARKED" },
  428. #if TAPI_2_0
  429. { LINECALLREASON_CAMPEDON ,"CAMPEDON" },
  430. { LINECALLREASON_ROUTEREQUEST ,"ROUTEREQUEST" },
  431. #endif
  432. #endif
  433. { 0xffffffff ,"" }
  434. };
  435. LOOKUP my_far aCallSelects[] =
  436. {
  437. { LINECALLSELECT_LINE ,"LINE" },
  438. { LINECALLSELECT_ADDRESS ,"ADDRESS" },
  439. { LINECALLSELECT_CALL ,"CALL" },
  440. { 0xffffffff ,"" }
  441. };
  442. LOOKUP my_far aCallStates[] =
  443. {
  444. { LINECALLSTATE_IDLE ,"IDLE" },
  445. { LINECALLSTATE_OFFERING ,"OFFERING" },
  446. { LINECALLSTATE_ACCEPTED ,"ACCEPTED" },
  447. { LINECALLSTATE_DIALTONE ,"DIALTONE" },
  448. { LINECALLSTATE_DIALING ,"DIALING" },
  449. { LINECALLSTATE_RINGBACK ,"RINGBACK" },
  450. { LINECALLSTATE_BUSY ,"BUSY" },
  451. { LINECALLSTATE_SPECIALINFO ,"SPECIALINFO" },
  452. { LINECALLSTATE_CONNECTED ,"CONNECTED" },
  453. { LINECALLSTATE_PROCEEDING ,"PROCEEDING" },
  454. { LINECALLSTATE_ONHOLD ,"ONHOLD" },
  455. { LINECALLSTATE_CONFERENCED ,"CONFERENCED" },
  456. { LINECALLSTATE_ONHOLDPENDCONF ,"ONHOLDPENDCONF" },
  457. { LINECALLSTATE_ONHOLDPENDTRANSFER ,"ONHOLDPENDTRANSFER" },
  458. { LINECALLSTATE_DISCONNECTED ,"DISCONNECTED" },
  459. { LINECALLSTATE_UNKNOWN ,"UNKNOWN" },
  460. { 0xffffffff ,"" }
  461. };
  462. #if TAPI_2_0
  463. LOOKUP my_far aCallTreatments[] =
  464. {
  465. { LINECALLTREATMENT_SILENCE ,"SILENCE" },
  466. { LINECALLTREATMENT_RINGBACK ,"RINGBACK" },
  467. { LINECALLTREATMENT_BUSY ,"BUSY" },
  468. { LINECALLTREATMENT_MUSIC ,"MUSIC" },
  469. { 0xffffffff ,"" }
  470. };
  471. #endif
  472. LOOKUP my_far aCardOptions[] =
  473. {
  474. #if TAPI_1_1
  475. { LINECARDOPTION_PREDEFINED ,"PREDEFINED" },
  476. { LINECARDOPTION_HIDDEN ,"HIDDEN" },
  477. #endif
  478. { 0xffffffff ,"" }
  479. };
  480. LOOKUP my_far aConnectedModes[] =
  481. {
  482. #if TAPI_1_1
  483. { LINECONNECTEDMODE_ACTIVE ,"ACTIVE" },
  484. { LINECONNECTEDMODE_INACTIVE ,"INACTIVE" },
  485. #endif
  486. { 0xffffffff ,"" }
  487. };
  488. LOOKUP my_far aDevCapsFlags[] =
  489. {
  490. { LINEDEVCAPFLAGS_CROSSADDRCONF ,"CROSSADDRCONF" },
  491. { LINEDEVCAPFLAGS_HIGHLEVCOMP ,"HIGHLEVCOMP" },
  492. { LINEDEVCAPFLAGS_LOWLEVCOMP ,"LOWLEVCOMP" },
  493. { LINEDEVCAPFLAGS_MEDIACONTROL ,"MEDIACONTROL" },
  494. { LINEDEVCAPFLAGS_MULTIPLEADDR ,"MULTIPLEADDR" },
  495. { LINEDEVCAPFLAGS_CLOSEDROP ,"CLOSEDROP" },
  496. { LINEDEVCAPFLAGS_DIALBILLING ,"DIALBILLING" },
  497. { LINEDEVCAPFLAGS_DIALQUIET ,"DIALQUIET" },
  498. { LINEDEVCAPFLAGS_DIALDIALTONE ,"DIALDIALTONE" },
  499. { 0xffffffff ,"" }
  500. };
  501. LOOKUP my_far aLineDevStatusFlags[] =
  502. {
  503. { LINEDEVSTATUSFLAGS_CONNECTED ,"CONNECTED" },
  504. { LINEDEVSTATUSFLAGS_MSGWAIT ,"MSGWAIT" },
  505. { LINEDEVSTATUSFLAGS_INSERVICE ,"INSERVICE" },
  506. { LINEDEVSTATUSFLAGS_LOCKED ,"LOCKED" },
  507. { 0xffffffff ,"" }
  508. };
  509. LOOKUP my_far aDialToneModes[] =
  510. {
  511. { LINEDIALTONEMODE_NORMAL ,"NORMAL" },
  512. { LINEDIALTONEMODE_SPECIAL ,"SPECIAL" },
  513. { LINEDIALTONEMODE_INTERNAL ,"INTERNAL" },
  514. { LINEDIALTONEMODE_EXTERNAL ,"EXTERNAL" },
  515. { LINEDIALTONEMODE_UNKNOWN ,"UNKNOWN" },
  516. { LINEDIALTONEMODE_UNAVAIL ,"UNAVAIL" },
  517. { 0xffffffff ,"" }
  518. };
  519. LOOKUP my_far aDigitModes[] =
  520. {
  521. { LINEDIGITMODE_PULSE ,"PULSE" },
  522. { LINEDIGITMODE_DTMF ,"DTMF" },
  523. { LINEDIGITMODE_DTMFEND ,"DTMFEND" },
  524. { 0xffffffff ,"" }
  525. };
  526. LOOKUP my_far aDisconnectModes[] =
  527. {
  528. { LINEDISCONNECTMODE_NORMAL ,"NORMAL" },
  529. { LINEDISCONNECTMODE_UNKNOWN ,"UNKNOWN" },
  530. { LINEDISCONNECTMODE_REJECT ,"REJECT" },
  531. { LINEDISCONNECTMODE_PICKUP ,"PICKUP" },
  532. { LINEDISCONNECTMODE_FORWARDED ,"FORWARDED" },
  533. { LINEDISCONNECTMODE_BUSY ,"BUSY" },
  534. { LINEDISCONNECTMODE_NOANSWER ,"NOANSWER" },
  535. { LINEDISCONNECTMODE_BADADDRESS ,"BADADDRESS" },
  536. { LINEDISCONNECTMODE_UNREACHABLE ,"UNREACHABLE" },
  537. { LINEDISCONNECTMODE_CONGESTION ,"CONGESTION" },
  538. { LINEDISCONNECTMODE_INCOMPATIBLE ,"INCOMPATIBLE" },
  539. { LINEDISCONNECTMODE_UNAVAIL ,"UNAVAIL" },
  540. #if TAPI_1_1
  541. { LINEDISCONNECTMODE_NODIALTONE ,"NODIALTONE" },
  542. #if TAPI_2_0
  543. { LINEDISCONNECTMODE_NUMBERCHANGED ,"NUMBERCHANGED" },
  544. { LINEDISCONNECTMODE_OUTOFORDER ,"OUTOFORDER" },
  545. { LINEDISCONNECTMODE_TEMPFAILURE ,"TEMPFAILURE" },
  546. { LINEDISCONNECTMODE_QOSUNAVAIL ,"QOSUNAVAIL" },
  547. { LINEDISCONNECTMODE_BLOCKED ,"BLOCKED" },
  548. { LINEDISCONNECTMODE_DONOTDISTURB ,"DONOTDISTURB" },
  549. #endif
  550. #endif
  551. { 0xffffffff ,"" }
  552. };
  553. #if TAPI_2_0
  554. LOOKUP my_far aLineInitExOptions[] =
  555. {
  556. { LINEINITIALIZEEXOPTION_USEHIDDENWINDOW
  557. ,"USEHIDDENWINDOW" },
  558. { LINEINITIALIZEEXOPTION_USEEVENT ,"USEEVENT" },
  559. { LINEINITIALIZEEXOPTION_USECOMPLETIONPORT
  560. ,"USECOMPLETIONPORT"},
  561. { 0xffffffff ,"" }
  562. };
  563. #endif
  564. #if TAPI_2_0
  565. LOOKUP my_far aPhoneInitExOptions[] =
  566. {
  567. { PHONEINITIALIZEEXOPTION_USEHIDDENWINDOW
  568. ,"USEHIDDENWINDOW" },
  569. { PHONEINITIALIZEEXOPTION_USEEVENT ,"USEEVENT" },
  570. { PHONEINITIALIZEEXOPTION_USECOMPLETIONPORT
  571. ,"USECOMPLETIONPORT"},
  572. { 0xffffffff ,"" }
  573. };
  574. #endif
  575. LOOKUP my_far aLineFeatures[] =
  576. {
  577. { LINEFEATURE_DEVSPECIFIC ,"DEVSPECIFIC" },
  578. { LINEFEATURE_DEVSPECIFICFEAT ,"DEVSPECIFICFEAT" },
  579. { LINEFEATURE_FORWARD ,"FORWARD" },
  580. { LINEFEATURE_MAKECALL ,"MAKECALL" },
  581. { LINEFEATURE_SETMEDIACONTROL ,"SETMEDIACONTROL" },
  582. { LINEFEATURE_SETTERMINAL ,"SETTERMINAL" },
  583. #if TAPI_2_0
  584. { LINEFEATURE_SETDEVSTATUS ,"SETDEVSTATUS" },
  585. { LINEFEATURE_FORWARDFWD ,"FORWARDFWD" },
  586. { LINEFEATURE_FORWARDDND ,"FORWARDDND" },
  587. #endif
  588. { 0xffffffff ,"" }
  589. };
  590. LOOKUP my_far aForwardModes[] =
  591. {
  592. { LINEFORWARDMODE_UNCOND ,"UNCOND" },
  593. { LINEFORWARDMODE_UNCONDINTERNAL ,"UNCONDINTERNAL" },
  594. { LINEFORWARDMODE_UNCONDEXTERNAL ,"UNCONDEXTERNAL" },
  595. { LINEFORWARDMODE_UNCONDSPECIFIC ,"UNCONDSPECIFIC" },
  596. { LINEFORWARDMODE_BUSY ,"BUSY" },
  597. { LINEFORWARDMODE_BUSYINTERNAL ,"BUSYINTERNAL" },
  598. { LINEFORWARDMODE_BUSYEXTERNAL ,"BUSYEXTERNAL" },
  599. { LINEFORWARDMODE_BUSYSPECIFIC ,"BUSYSPECIFIC" },
  600. { LINEFORWARDMODE_NOANSW ,"NOANSW" },
  601. { LINEFORWARDMODE_NOANSWINTERNAL ,"NOANSWINTERNAL" },
  602. { LINEFORWARDMODE_NOANSWEXTERNAL ,"NOANSWEXTERNAL" },
  603. { LINEFORWARDMODE_NOANSWSPECIFIC ,"NOANSWSPECIFIC" },
  604. { LINEFORWARDMODE_BUSYNA ,"BUSYNA" },
  605. { LINEFORWARDMODE_BUSYNAINTERNAL ,"BUSYNAINTERNAL" },
  606. { LINEFORWARDMODE_BUSYNAEXTERNAL ,"BUSYNAEXTERNAL" },
  607. { LINEFORWARDMODE_BUSYNASPECIFIC ,"BUSYNASPECIFIC" },
  608. #if TAPI_1_1
  609. { LINEFORWARDMODE_UNKNOWN ,"UNKNOWN" },
  610. { LINEFORWARDMODE_UNAVAIL ,"UNAVAIL" },
  611. #endif
  612. { 0xffffffff ,"" }
  613. };
  614. LOOKUP my_far aGatherTerms[] =
  615. {
  616. { LINEGATHERTERM_BUFFERFULL ,"BUFFERFULL" },
  617. { LINEGATHERTERM_TERMDIGIT ,"TERMDIGIT" },
  618. { LINEGATHERTERM_FIRSTTIMEOUT ,"FIRSTTIMEOUT" },
  619. { LINEGATHERTERM_INTERTIMEOUT ,"INTERTIMEOUT" },
  620. { LINEGATHERTERM_CANCEL ,"CANCEL" },
  621. { 0xffffffff ,"" }
  622. };
  623. LOOKUP my_far aGenerateTerms[] =
  624. {
  625. { LINEGENERATETERM_DONE ,"DONE" },
  626. { LINEGENERATETERM_CANCEL ,"CANCEL" },
  627. { 0xffffffff ,"" }
  628. };
  629. LOOKUP aLineOpenOptions[] =
  630. {
  631. { LINECALLPRIVILEGE_NONE ,"NONE" },
  632. { LINECALLPRIVILEGE_MONITOR ,"MONITOR" },
  633. { LINECALLPRIVILEGE_OWNER ,"OWNER" },
  634. #if TAPI_2_0
  635. { LINEOPENOPTION_PROXY ,"PROXY" },
  636. { LINEOPENOPTION_SINGLEADDRESS ,"SINGLEADDRESS" },
  637. #endif
  638. { 0xffffffff ,"" }
  639. };
  640. LOOKUP my_far aLineRoamModes[] =
  641. {
  642. { LINEROAMMODE_UNKNOWN ,"UNKNOWN" },
  643. { LINEROAMMODE_UNAVAIL ,"UNAVAIL" },
  644. { LINEROAMMODE_HOME ,"HOME" },
  645. { LINEROAMMODE_ROAMA ,"ROAMA" },
  646. { LINEROAMMODE_ROAMB ,"ROAMB" },
  647. { 0xffffffff ,"" }
  648. };
  649. LOOKUP my_far aLineStates[] =
  650. {
  651. { LINEDEVSTATE_OTHER ,"OTHER" },
  652. { LINEDEVSTATE_RINGING ,"RINGING" },
  653. { LINEDEVSTATE_CONNECTED ,"CONNECTED" },
  654. { LINEDEVSTATE_DISCONNECTED ,"DISCONNECTED" },
  655. { LINEDEVSTATE_MSGWAITON ,"MSGWAITON" },
  656. { LINEDEVSTATE_MSGWAITOFF ,"MSGWAITOFF" },
  657. { LINEDEVSTATE_INSERVICE ,"INSERVICE" },
  658. { LINEDEVSTATE_OUTOFSERVICE ,"OUTOFSERVICE" },
  659. { LINEDEVSTATE_MAINTENANCE ,"MAINTENANCE" },
  660. { LINEDEVSTATE_OPEN ,"OPEN" },
  661. { LINEDEVSTATE_CLOSE ,"CLOSE" },
  662. { LINEDEVSTATE_NUMCALLS ,"NUMCALLS" },
  663. { LINEDEVSTATE_NUMCOMPLETIONS ,"NUMCOMPLETIONS" },
  664. { LINEDEVSTATE_TERMINALS ,"TERMINALS" },
  665. { LINEDEVSTATE_ROAMMODE ,"ROAMMODE" },
  666. { LINEDEVSTATE_BATTERY ,"BATTERY" },
  667. { LINEDEVSTATE_SIGNAL ,"SIGNAL" },
  668. { LINEDEVSTATE_DEVSPECIFIC ,"DEVSPECIFIC" },
  669. { LINEDEVSTATE_REINIT ,"REINIT" },
  670. { LINEDEVSTATE_LOCK ,"LOCK" },
  671. #if TAPI_1_1
  672. { LINEDEVSTATE_CAPSCHANGE ,"CAPSCHANGE" },
  673. { LINEDEVSTATE_CONFIGCHANGE ,"CONFIGCHANGE" },
  674. { LINEDEVSTATE_TRANSLATECHANGE ,"TRANSLATECHANGE" },
  675. { LINEDEVSTATE_COMPLCANCEL ,"COMPLCANCEL" },
  676. { LINEDEVSTATE_REMOVED ,"REMOVED" },
  677. #endif
  678. { 0xffffffff ,"" }
  679. };
  680. LOOKUP my_far aLocationOptions[] =
  681. {
  682. #if TAPI_1_1
  683. { LINELOCATIONOPTION_PULSEDIAL ,"PULSEDIAL" },
  684. #endif
  685. { 0xffffffff ,"" }
  686. };
  687. LOOKUP my_far aMediaModes[] =
  688. {
  689. { LINEMEDIAMODE_UNKNOWN ,"UNKNOWN" },
  690. { LINEMEDIAMODE_INTERACTIVEVOICE ,"INTERACTIVEVOICE" },
  691. { LINEMEDIAMODE_AUTOMATEDVOICE ,"AUTOMATEDVOICE" },
  692. { LINEMEDIAMODE_DATAMODEM ,"DATAMODEM" },
  693. { LINEMEDIAMODE_G3FAX ,"G3FAX" },
  694. { LINEMEDIAMODE_TDD ,"TDD" },
  695. { LINEMEDIAMODE_G4FAX ,"G4FAX" },
  696. { LINEMEDIAMODE_DIGITALDATA ,"DIGITALDATA" },
  697. { LINEMEDIAMODE_TELETEX ,"TELETEX" },
  698. { LINEMEDIAMODE_VIDEOTEX ,"VIDEOTEX" },
  699. { LINEMEDIAMODE_TELEX ,"TELEX" },
  700. { LINEMEDIAMODE_MIXED ,"MIXED" },
  701. { LINEMEDIAMODE_ADSI ,"ADSI" },
  702. #if TAPI_1_1
  703. { LINEMEDIAMODE_VOICEVIEW ,"VOICEVIEW" },
  704. #endif
  705. #if TAPI_2_1
  706. { LINEMEDIAMODE_VIDEO ,"VIDEO" },
  707. #endif
  708. { 0xffffffff ,"" }
  709. };
  710. LOOKUP my_far aMediaControls[] =
  711. {
  712. { LINEMEDIACONTROL_NONE ,"NONE" },
  713. { LINEMEDIACONTROL_START ,"START" },
  714. { LINEMEDIACONTROL_RESET ,"RESET" },
  715. { LINEMEDIACONTROL_PAUSE ,"PAUSE" },
  716. { LINEMEDIACONTROL_RESUME ,"RESUME" },
  717. { LINEMEDIACONTROL_RATEUP ,"RATEUP" },
  718. { LINEMEDIACONTROL_RATEDOWN ,"RATEDOWN" },
  719. { LINEMEDIACONTROL_RATENORMAL ,"RATENORMAL" },
  720. { LINEMEDIACONTROL_VOLUMEUP ,"VOLUMEUP" },
  721. { LINEMEDIACONTROL_VOLUMEDOWN ,"VOLUMEDOWN" },
  722. { LINEMEDIACONTROL_VOLUMENORMAL ,"VOLUMENORMAL" },
  723. { 0xffffffff ,"" }
  724. };
  725. LOOKUP my_far aOfferingModes[] =
  726. {
  727. #if TAPI_1_1
  728. { LINEOFFERINGMODE_ACTIVE ,"ACTIVE" },
  729. { LINEOFFERINGMODE_INACTIVE ,"INACTIVE" },
  730. #endif
  731. { 0xffffffff ,"" }
  732. };
  733. LOOKUP my_far aParkModes[] =
  734. {
  735. { LINEPARKMODE_DIRECTED ,"DIRECTED" },
  736. { LINEPARKMODE_NONDIRECTED ,"NONDIRECTED" },
  737. { 0xffffffff ,"" }
  738. };
  739. #if TAPI_2_0
  740. LOOKUP my_far aProxyRequests[] =
  741. {
  742. { LINEPROXYREQUEST_SETAGENTGROUP ,"SETAGENTGROUP" },
  743. { LINEPROXYREQUEST_SETAGENTSTATE ,"SETAGENTSTATE" },
  744. { LINEPROXYREQUEST_SETAGENTACTIVITY ,"SETAGENTACTIVITY" },
  745. { LINEPROXYREQUEST_GETAGENTCAPS ,"GETAGENTCAPS" },
  746. { LINEPROXYREQUEST_GETAGENTSTATUS ,"GETAGENTSTATUS" },
  747. { LINEPROXYREQUEST_AGENTSPECIFIC ,"AGENTSPECIFIC" },
  748. { LINEPROXYREQUEST_GETAGENTACTIVITYLIST ,"GETAGENTACTIVITYLIST" },
  749. { LINEPROXYREQUEST_GETAGENTGROUPLIST ,"GETAGENTGROUPLIST" },
  750. { 0xffffffff ,"" }
  751. };
  752. #endif
  753. LOOKUP my_far aRemoveFromConfCaps[] =
  754. {
  755. { LINEREMOVEFROMCONF_NONE ,"NONE" },
  756. { LINEREMOVEFROMCONF_LAST ,"LAST" },
  757. { LINEREMOVEFROMCONF_ANY ,"ANY" },
  758. { 0xffffffff ,"" }
  759. };
  760. LOOKUP my_far aRequestModes[] =
  761. {
  762. { LINEREQUESTMODE_MAKECALL ,"MAKECALL" },
  763. { LINEREQUESTMODE_MEDIACALL ,"MEDIACALL" },
  764. { LINEREQUESTMODE_DROP ,"DROP" },
  765. { 0xffffffff ,"" }
  766. };
  767. LOOKUP my_far aRequestModes2[] =
  768. {
  769. { LINEREQUESTMODE_MAKECALL ,"MAKECALL" },
  770. { LINEREQUESTMODE_MEDIACALL ,"MEDIACALL" },
  771. { 0xffffffff ,"" }
  772. };
  773. LOOKUP my_far aSpecialInfo[] =
  774. {
  775. { LINESPECIALINFO_NOCIRCUIT ,"NOCIRCUIT" },
  776. { LINESPECIALINFO_CUSTIRREG ,"CUSTIRREG" },
  777. { LINESPECIALINFO_REORDER ,"REORDER" },
  778. { LINESPECIALINFO_UNKNOWN ,"UNKNOWN" },
  779. { LINESPECIALINFO_UNAVAIL ,"UNAVAIL" },
  780. { 0xffffffff ,"" }
  781. };
  782. LOOKUP my_far aTerminalModes[] =
  783. {
  784. { LINETERMMODE_BUTTONS ,"BUTTONS" },
  785. { LINETERMMODE_LAMPS ,"LAMPS" },
  786. { LINETERMMODE_DISPLAY ,"DISPLAY" },
  787. { LINETERMMODE_RINGER ,"RINGER" },
  788. { LINETERMMODE_HOOKSWITCH ,"HOOKSWITCH" },
  789. { LINETERMMODE_MEDIATOLINE ,"MEDIATOLINE" },
  790. { LINETERMMODE_MEDIAFROMLINE ,"MEDIAFROMLINE" },
  791. { LINETERMMODE_MEDIABIDIRECT ,"MEDIABIDIRECT" },
  792. { 0xffffffff ,"" }
  793. };
  794. LOOKUP my_far aTollListOptions[] =
  795. {
  796. { LINETOLLLISTOPTION_ADD ,"ADD" },
  797. { LINETOLLLISTOPTION_REMOVE ,"REMOVE" },
  798. { 0xffffffff ,"" }
  799. };
  800. LOOKUP my_far aToneModes[] =
  801. {
  802. { LINETONEMODE_CUSTOM ,"CUSTOM" },
  803. { LINETONEMODE_RINGBACK ,"RINGBACK" },
  804. { LINETONEMODE_BUSY ,"BUSY" },
  805. { LINETONEMODE_BEEP ,"BEEP" },
  806. { LINETONEMODE_BILLING ,"BILLING" },
  807. { 0xffffffff ,"" }
  808. };
  809. LOOKUP my_far aTransferModes[] =
  810. {
  811. { LINETRANSFERMODE_TRANSFER ,"TRANSFER" },
  812. { LINETRANSFERMODE_CONFERENCE ,"CONFERENCE" },
  813. { 0xffffffff ,"" }
  814. };
  815. LOOKUP my_far aTranslateOptions[] =
  816. {
  817. { LINETRANSLATEOPTION_CARDOVERRIDE ,"CARDOVERRIDE" },
  818. #if TAPI_1_1
  819. { LINETRANSLATEOPTION_CANCELCALLWAITING ,"CANCELCALLWAITING" },
  820. { LINETRANSLATEOPTION_FORCELOCAL ,"FORCELOCAL" },
  821. { LINETRANSLATEOPTION_FORCELD ,"FORCELD" },
  822. #endif
  823. { 0xffffffff ,"" }
  824. };
  825. LOOKUP my_far aTranslateResults[] =
  826. {
  827. { LINETRANSLATERESULT_CANONICAL ,"CANONICAL" },
  828. { LINETRANSLATERESULT_INTERNATIONAL ,"INTERNATIONAL" },
  829. { LINETRANSLATERESULT_LONGDISTANCE ,"LONGDISTANCE" },
  830. { LINETRANSLATERESULT_LOCAL ,"LOCAL" },
  831. { LINETRANSLATERESULT_INTOLLLIST ,"INTOLLLIST" },
  832. { LINETRANSLATERESULT_NOTINTOLLLIST ,"NOTINTOLLLIST" },
  833. { LINETRANSLATERESULT_DIALBILLING ,"DIALBILLING" },
  834. { LINETRANSLATERESULT_DIALQUIET ,"DIALQUIET" },
  835. { LINETRANSLATERESULT_DIALDIALTONE ,"DIALDIALTONE" },
  836. { LINETRANSLATERESULT_DIALPROMPT ,"DIALPROMPT" },
  837. #if TAPI_2_0
  838. { LINETRANSLATERESULT_VOICEDETECT ,"VOICEDETECT" },
  839. #endif
  840. { 0xffffffff ,"" }
  841. };
  842. LOOKUP my_far aButtonFunctions[] =
  843. {
  844. { PHONEBUTTONFUNCTION_UNKNOWN ,"UNKNOWN" },
  845. { PHONEBUTTONFUNCTION_CONFERENCE ,"CONFERENCE" },
  846. { PHONEBUTTONFUNCTION_TRANSFER ,"TRANSFER" },
  847. { PHONEBUTTONFUNCTION_DROP ,"DROP" },
  848. { PHONEBUTTONFUNCTION_HOLD ,"HOLD" },
  849. { PHONEBUTTONFUNCTION_RECALL ,"RECALL" },
  850. { PHONEBUTTONFUNCTION_DISCONNECT ,"DISCONNECT" },
  851. { PHONEBUTTONFUNCTION_CONNECT ,"CONNECT" },
  852. { PHONEBUTTONFUNCTION_MSGWAITON ,"MSGWAITON" },
  853. { PHONEBUTTONFUNCTION_MSGWAITOFF ,"MSGWAITOFF" },
  854. { PHONEBUTTONFUNCTION_SELECTRING ,"SELECTRING" },
  855. { PHONEBUTTONFUNCTION_ABBREVDIAL ,"ABBREVDIAL" },
  856. { PHONEBUTTONFUNCTION_FORWARD ,"FORWARD" },
  857. { PHONEBUTTONFUNCTION_PICKUP ,"PICKUP" },
  858. { PHONEBUTTONFUNCTION_RINGAGAIN ,"RINGAGAIN" },
  859. { PHONEBUTTONFUNCTION_PARK ,"PARK" },
  860. { PHONEBUTTONFUNCTION_REJECT ,"REJECT" },
  861. { PHONEBUTTONFUNCTION_REDIRECT ,"REDIRECT" },
  862. { PHONEBUTTONFUNCTION_MUTE ,"MUTE" },
  863. { PHONEBUTTONFUNCTION_VOLUMEUP ,"VOLUMEUP" },
  864. { PHONEBUTTONFUNCTION_VOLUMEDOWN ,"VOLUMEDOWN" },
  865. { PHONEBUTTONFUNCTION_SPEAKERON ,"SPEAKERON" },
  866. { PHONEBUTTONFUNCTION_SPEAKEROFF ,"SPEAKEROFF" },
  867. { PHONEBUTTONFUNCTION_FLASH ,"FLASH" },
  868. { PHONEBUTTONFUNCTION_DATAON ,"DATAON" },
  869. { PHONEBUTTONFUNCTION_DATAOFF ,"DATAOFF" },
  870. { PHONEBUTTONFUNCTION_DONOTDISTURB ,"DONOTDISTURB" },
  871. { PHONEBUTTONFUNCTION_INTERCOM ,"INTERCOM" },
  872. { PHONEBUTTONFUNCTION_BRIDGEDAPP ,"BRIDGEDAPP" },
  873. { PHONEBUTTONFUNCTION_BUSY ,"BUSY" },
  874. { PHONEBUTTONFUNCTION_CALLAPP ,"CALLAPP" },
  875. { PHONEBUTTONFUNCTION_DATETIME ,"DATETIME" },
  876. { PHONEBUTTONFUNCTION_DIRECTORY ,"DIRECTORY" },
  877. { PHONEBUTTONFUNCTION_COVER ,"COVER" },
  878. { PHONEBUTTONFUNCTION_CALLID ,"CALLID" },
  879. { PHONEBUTTONFUNCTION_LASTNUM ,"LASTNUM" },
  880. { PHONEBUTTONFUNCTION_NIGHTSRV ,"NIGHTSRV" },
  881. { PHONEBUTTONFUNCTION_SENDCALLS ,"SENDCALLS" },
  882. { PHONEBUTTONFUNCTION_MSGINDICATOR ,"MSGINDICATOR" },
  883. { PHONEBUTTONFUNCTION_REPDIAL ,"REPDIAL" },
  884. { PHONEBUTTONFUNCTION_SETREPDIAL ,"SETREPDIAL" },
  885. { PHONEBUTTONFUNCTION_SYSTEMSPEED ,"SYSTEMSPEED" },
  886. { PHONEBUTTONFUNCTION_STATIONSPEED ,"STATIONSPEED" },
  887. { PHONEBUTTONFUNCTION_CAMPON ,"CAMPON" },
  888. { PHONEBUTTONFUNCTION_SAVEREPEAT ,"SAVEREPEAT" },
  889. { PHONEBUTTONFUNCTION_QUEUECALL ,"QUEUECALL" },
  890. { PHONEBUTTONFUNCTION_NONE ,"NONE" },
  891. { 0xffffffff ,"" }
  892. };
  893. LOOKUP my_far aButtonModes[] =
  894. {
  895. { PHONEBUTTONMODE_DUMMY ,"DUMMY" },
  896. { PHONEBUTTONMODE_CALL ,"CALL" },
  897. { PHONEBUTTONMODE_FEATURE ,"FEATURE" },
  898. { PHONEBUTTONMODE_KEYPAD ,"KEYPAD" },
  899. { PHONEBUTTONMODE_LOCAL ,"LOCAL" },
  900. { PHONEBUTTONMODE_DISPLAY ,"DISPLAY" },
  901. { 0xffffffff ,"" }
  902. };
  903. LOOKUP my_far aButtonStates[] =
  904. {
  905. { PHONEBUTTONSTATE_UP ,"UP" },
  906. { PHONEBUTTONSTATE_DOWN ,"DOWN" },
  907. #if TAPI_1_1
  908. { PHONEBUTTONSTATE_UNKNOWN ,"UNKNOWN" },
  909. { PHONEBUTTONSTATE_UNAVAIL ,"UNAVAIL" },
  910. #endif
  911. { 0xffffffff ,"" }
  912. };
  913. #if TAPI_2_0
  914. LOOKUP my_far aPhoneFeatures[] =
  915. {
  916. { PHONEFEATURE_GETBUTTONINFO ,"GETBUTTONINFO" },
  917. { PHONEFEATURE_GETDATA ,"GETDATA" },
  918. { PHONEFEATURE_GETDISPLAY ,"GETDISPLAY" },
  919. { PHONEFEATURE_GETGAINHANDSET ,"GETGAINHANDSET" },
  920. { PHONEFEATURE_GETGAINSPEAKER ,"GETGAINSPEAKER" },
  921. { PHONEFEATURE_GETGAINHEADSET ,"GETGAINHEADSET" },
  922. { PHONEFEATURE_GETHOOKSWITCHHANDSET ,"GETHOOKSWITCHHANDSET" },
  923. { PHONEFEATURE_GETHOOKSWITCHSPEAKER ,"GETHOOKSWITCHSPEAKER" },
  924. { PHONEFEATURE_GETHOOKSWITCHHEADSET ,"GETHOOKSWITCHHEADSET" },
  925. { PHONEFEATURE_GETLAMP ,"GETLAMP" },
  926. { PHONEFEATURE_GETRING ,"GETRING" },
  927. { PHONEFEATURE_GETVOLUMEHANDSET ,"GETVOLUMEHANDSET" },
  928. { PHONEFEATURE_GETVOLUMESPEAKER ,"GETVOLUMESPEAKER" },
  929. { PHONEFEATURE_GETVOLUMEHEADSET ,"GETVOLUMEHEADSET" },
  930. { PHONEFEATURE_SETBUTTONINFO ,"SETBUTTONINFO" },
  931. { PHONEFEATURE_SETDATA ,"SETDATA" },
  932. { PHONEFEATURE_SETDISPLAY ,"SETDISPLAY" },
  933. { PHONEFEATURE_SETGAINHANDSET ,"SETGAINHANDSET" },
  934. { PHONEFEATURE_SETGAINSPEAKER ,"SETGAINSPEAKER" },
  935. { PHONEFEATURE_SETGAINHEADSET ,"SETGAINHEADSET" },
  936. { PHONEFEATURE_SETHOOKSWITCHHANDSET ,"SETHOOKSWITCHHANDSET" },
  937. { PHONEFEATURE_SETHOOKSWITCHSPEAKER ,"SETHOOKSWITCHSPEAKER" },
  938. { PHONEFEATURE_SETHOOKSWITCHHEADSET ,"SETHOOKSWITCHHEADSET" },
  939. { PHONEFEATURE_SETLAMP ,"SETLAMP" },
  940. { PHONEFEATURE_SETRING ,"SETRING" },
  941. { PHONEFEATURE_SETVOLUMEHANDSET ,"SETVOLUMEHANDSET" },
  942. { PHONEFEATURE_SETVOLUMESPEAKER ,"SETVOLUMESPEAKER" },
  943. { PHONEFEATURE_SETVOLUMEHEADSET ,"SETVOLUMEHEADSET" },
  944. { 0xffffffff ,"" }
  945. };
  946. #endif
  947. LOOKUP my_far aHookSwitchDevs[] =
  948. {
  949. { PHONEHOOKSWITCHDEV_HANDSET ,"HANDSET" },
  950. { PHONEHOOKSWITCHDEV_SPEAKER ,"SPEAKER" },
  951. { PHONEHOOKSWITCHDEV_HEADSET ,"HEADSET" },
  952. { 0xffffffff ,"" }
  953. };
  954. LOOKUP my_far aHookSwitchModes[] =
  955. {
  956. { PHONEHOOKSWITCHMODE_ONHOOK ,"ONHOOK" },
  957. { PHONEHOOKSWITCHMODE_MIC ,"MIC" },
  958. { PHONEHOOKSWITCHMODE_SPEAKER ,"SPEAKER" },
  959. { PHONEHOOKSWITCHMODE_MICSPEAKER ,"MICSPEAKER" },
  960. { PHONEHOOKSWITCHMODE_UNKNOWN ,"UNKNOWN" },
  961. { 0xffffffff ,"" }
  962. };
  963. LOOKUP my_far aLampModes[] =
  964. {
  965. { PHONELAMPMODE_DUMMY ,"DUMMY" },
  966. { PHONELAMPMODE_OFF ,"OFF" },
  967. { PHONELAMPMODE_STEADY ,"STEADY" },
  968. { PHONELAMPMODE_WINK ,"WINK" },
  969. { PHONELAMPMODE_FLASH ,"FLASH" },
  970. { PHONELAMPMODE_FLUTTER ,"FLUTTER" },
  971. { PHONELAMPMODE_BROKENFLUTTER ,"BROKENFLUTTER" },
  972. { PHONELAMPMODE_UNKNOWN ,"UNKNOWN" },
  973. { 0xffffffff ,"" }
  974. };
  975. LOOKUP my_far aPhonePrivileges[] =
  976. {
  977. { PHONEPRIVILEGE_MONITOR ,"MONITOR" },
  978. { PHONEPRIVILEGE_OWNER ,"OWNER" },
  979. { 0xffffffff ,"" }
  980. };
  981. LOOKUP my_far aPhoneStates[] =
  982. {
  983. { PHONESTATE_OTHER ,"OTHER" },
  984. { PHONESTATE_CONNECTED ,"CONNECTED" },
  985. { PHONESTATE_DISCONNECTED ,"DISCONNECTED" },
  986. { PHONESTATE_OWNER ,"OWNER" },
  987. { PHONESTATE_MONITORS ,"MONITORS" },
  988. { PHONESTATE_DISPLAY ,"DISPLAY" },
  989. { PHONESTATE_LAMP ,"LAMP" },
  990. { PHONESTATE_RINGMODE ,"RINGMODE" },
  991. { PHONESTATE_RINGVOLUME ,"RINGVOLUME" },
  992. { PHONESTATE_HANDSETHOOKSWITCH ,"HANDSETHOOKSWITCH"},
  993. { PHONESTATE_HANDSETVOLUME ,"HANDSETVOLUME" },
  994. { PHONESTATE_HANDSETGAIN ,"HANDSETGAIN" },
  995. { PHONESTATE_SPEAKERHOOKSWITCH ,"SPEAKERHOOKSWITCH"},
  996. { PHONESTATE_SPEAKERVOLUME ,"SPEAKERVOLUME" },
  997. { PHONESTATE_SPEAKERGAIN ,"SPEAKERGAIN" },
  998. { PHONESTATE_HEADSETHOOKSWITCH ,"HEADSETHOOKSWITCH"},
  999. { PHONESTATE_HEADSETVOLUME ,"HEADSETVOLUME" },
  1000. { PHONESTATE_HEADSETGAIN ,"HEADSETGAIN" },
  1001. { PHONESTATE_SUSPEND ,"SUSPEND" },
  1002. { PHONESTATE_RESUME ,"RESUME" },
  1003. { PHONESTATE_DEVSPECIFIC ,"DEVSPECIFIC" },
  1004. { PHONESTATE_REINIT ,"REINIT" },
  1005. #if TAPI_1_1
  1006. { PHONESTATE_CAPSCHANGE ,"CAPSCHANGE" },
  1007. { PHONESTATE_REMOVED ,"REMOVED" },
  1008. #endif
  1009. { 0xffffffff ,"" }
  1010. };
  1011. LOOKUP my_far aPhoneStatusFlags[] =
  1012. {
  1013. { PHONESTATUSFLAGS_CONNECTED ,"CONNECTED" },
  1014. { PHONESTATUSFLAGS_SUSPENDED ,"SUSPENDED" },
  1015. { 0xffffffff ,"" }
  1016. };
  1017. LOOKUP my_far aStringFormats[] =
  1018. {
  1019. { STRINGFORMAT_ASCII ,"ASCII" },
  1020. { STRINGFORMAT_DBCS ,"DBCS" },
  1021. { STRINGFORMAT_UNICODE ,"UNICODE" },
  1022. { STRINGFORMAT_BINARY ,"BINARY" },
  1023. { 0xffffffff ,"" }
  1024. };
  1025. #if INTERNAL_3_0
  1026. LOOKUP my_far aServerConfigFlags[] =
  1027. {
  1028. { TAPISERVERCONFIGFLAGS_ISSERVER ,"ISSERVER" },
  1029. { TAPISERVERCONFIGFLAGS_ENABLESERVER ,"ENABLESERVER" },
  1030. { TAPISERVERCONFIGFLAGS_SETACCOUNT ,"SETACCOUNT" },
  1031. { TAPISERVERCONFIGFLAGS_SETTAPIADMINISTRATORS ,"SETTAPIADMINS" },
  1032. { 0xffffffff ,"" }
  1033. };
  1034. LOOKUP my_far aAvailableProviderOptions[] =
  1035. {
  1036. { AVAILABLEPROVIDER_INSTALLABLE ,"INSTALLABLE " },
  1037. { AVAILABLEPROVIDER_CONFIGURABLE ,"CONFIGURABLE" },
  1038. { AVAILABLEPROVIDER_REMOVABLE ,"REMOVABLE " },
  1039. { 0xffffffff ,"" }
  1040. };
  1041. #endif
  1042. char *aszLineErrs[] =
  1043. {
  1044. "SUCCESS",
  1045. "ALLOCATED",
  1046. "BADDEVICEID",
  1047. "BEARERMODEUNAVAIL",
  1048. "inval err code (0x80000004)", // 0x80000004 isn't valid err code
  1049. "CALLUNAVAIL",
  1050. "COMPLETIONOVERRUN",
  1051. "CONFERENCEFULL",
  1052. "DIALBILLING",
  1053. "DIALDIALTONE",
  1054. "DIALPROMPT",
  1055. "DIALQUIET",
  1056. "INCOMPATIBLEAPIVERSION",
  1057. "INCOMPATIBLEEXTVERSION",
  1058. "INIFILECORRUPT",
  1059. "INUSE",
  1060. "INVALADDRESS", // 0x80000010
  1061. "INVALADDRESSID",
  1062. "INVALADDRESSMODE",
  1063. "INVALADDRESSSTATE",
  1064. "INVALAPPHANDLE",
  1065. "INVALAPPNAME",
  1066. "INVALBEARERMODE",
  1067. "INVALCALLCOMPLMODE",
  1068. "INVALCALLHANDLE",
  1069. "INVALCALLPARAMS",
  1070. "INVALCALLPRIVILEGE",
  1071. "INVALCALLSELECT",
  1072. "INVALCALLSTATE",
  1073. "INVALCALLSTATELIST",
  1074. "INVALCARD",
  1075. "INVALCOMPLETIONID",
  1076. "INVALCONFCALLHANDLE", // 0x80000020
  1077. "INVALCONSULTCALLHANDLE",
  1078. "INVALCOUNTRYCODE",
  1079. "INVALDEVICECLASS",
  1080. "INVALDEVICEHANDLE",
  1081. "INVALDIALPARAMS",
  1082. "INVALDIGITLIST",
  1083. "INVALDIGITMODE",
  1084. "INVALDIGITS",
  1085. "INVALEXTVERSION",
  1086. "INVALGROUPID",
  1087. "INVALLINEHANDLE",
  1088. "INVALLINESTATE",
  1089. "INVALLOCATION",
  1090. "INVALMEDIALIST",
  1091. "INVALMEDIAMODE",
  1092. "INVALMESSAGEID", // 0x80000030
  1093. "inval err code (0x80000031)", // 0x80000031 isn't valid err code
  1094. "INVALPARAM",
  1095. "INVALPARKID",
  1096. "INVALPARKMODE",
  1097. "INVALPOINTER",
  1098. "INVALPRIVSELECT",
  1099. "INVALRATE",
  1100. "INVALREQUESTMODE",
  1101. "INVALTERMINALID",
  1102. "INVALTERMINALMODE",
  1103. "INVALTIMEOUT",
  1104. "INVALTONE",
  1105. "INVALTONELIST",
  1106. "INVALTONEMODE",
  1107. "INVALTRANSFERMODE",
  1108. "LINEMAPPERFAILED", // 0x80000040
  1109. "NOCONFERENCE",
  1110. "NODEVICE",
  1111. "NODRIVER",
  1112. "NOMEM",
  1113. "NOREQUEST",
  1114. "NOTOWNER",
  1115. "NOTREGISTERED",
  1116. "OPERATIONFAILED",
  1117. "OPERATIONUNAVAIL",
  1118. "RATEUNAVAIL",
  1119. "RESOURCEUNAVAIL",
  1120. "REQUESTOVERRUN",
  1121. "STRUCTURETOOSMALL",
  1122. "TARGETNOTFOUND",
  1123. "TARGETSELF",
  1124. "UNINITIALIZED", // 0x80000050
  1125. "USERUSERINFOTOOBIG",
  1126. "REINIT",
  1127. "ADDRESSBLOCKED",
  1128. "BILLINGREJECTED",
  1129. "INVALFEATURE",
  1130. "NOMULTIPLEINSTANCE"
  1131. #if TAPI_2_0
  1132. ,
  1133. "INVALAGENTID",
  1134. "INVALAGENTGROUP",
  1135. "INVALPASSWORD",
  1136. "INVALAGENTSTATE",
  1137. "INVALAGENTACTIVITY",
  1138. "DIALVOICEDETECT"
  1139. #endif
  1140. };
  1141. char *aszPhoneErrs[] =
  1142. {
  1143. "SUCCESS",
  1144. "ALLOCATED",
  1145. "BADDEVICEID",
  1146. "INCOMPATIBLEAPIVERSION",
  1147. "INCOMPATIBLEEXTVERSION",
  1148. "INIFILECORRUPT",
  1149. "INUSE",
  1150. "INVALAPPHANDLE",
  1151. "INVALAPPNAME",
  1152. "INVALBUTTONLAMPID",
  1153. "INVALBUTTONMODE",
  1154. "INVALBUTTONSTATE",
  1155. "INVALDATAID",
  1156. "INVALDEVICECLASS",
  1157. "INVALEXTVERSION",
  1158. "INVALHOOKSWITCHDEV",
  1159. "INVALHOOKSWITCHMODE", // 0x90000010
  1160. "INVALLAMPMODE",
  1161. "INVALPARAM",
  1162. "INVALPHONEHANDLE",
  1163. "INVALPHONESTATE",
  1164. "INVALPOINTER",
  1165. "INVALPRIVILEGE",
  1166. "INVALRINGMODE",
  1167. "NODEVICE",
  1168. "NODRIVER",
  1169. "NOMEM",
  1170. "NOTOWNER",
  1171. "OPERATIONFAILED",
  1172. "OPERATIONUNAVAIL",
  1173. "inval err code (0x9000001E)", // 0x9000001e isn't valid err code
  1174. "RESOURCEUNAVAIL",
  1175. "REQUESTOVERRUN", // 0x90000020
  1176. "STRUCTURETOOSMALL",
  1177. "UNINITIALIZED",
  1178. "REINIT"
  1179. };
  1180. char *aszTapiErrs[] =
  1181. {
  1182. "SUCCESS",
  1183. "DROPPED",
  1184. "NOREQUESTRECIPIENT",
  1185. "REQUESTQUEUEFULL",
  1186. "INVALDESTADDRESS",
  1187. "INVALWINDOWHANDLE",
  1188. "INVALDEVICECLASS",
  1189. "INVALDEVICEID",
  1190. "DEVICECLASSUNAVAIL",
  1191. "DEVICEIDUNAVAIL",
  1192. "DEVICEINUSE",
  1193. "DESTBUSY",
  1194. "DESTNOANSWER",
  1195. "DESTUNAVAIL",
  1196. "UNKNOWNWINHANDLE",
  1197. "UNKNOWNREQUESTID",
  1198. "REQUESTFAILED",
  1199. "REQUESTCANCELLED",
  1200. "INVALPOINTER"
  1201. };
  1202. char *aFuncNames[] =
  1203. {
  1204. "lineAccept",
  1205. #if TAPI_1_1
  1206. "lineAddProvider",
  1207. #if TAPI_2_0
  1208. "lineAddProviderW",
  1209. #endif
  1210. #endif
  1211. "lineAddToConference",
  1212. #if TAPI_2_0
  1213. "lineAgentSpecific",
  1214. #endif
  1215. "lineAnswer",
  1216. "lineBlindTransfer",
  1217. #if TAPI_2_0
  1218. "lineBlindTransferW",
  1219. #endif
  1220. "lineClose",
  1221. "lineCompleteCall",
  1222. "lineCompleteTransfer",
  1223. "lineConfigDialog",
  1224. #if TAPI_2_0
  1225. "lineConfigDialogW",
  1226. #endif
  1227. #if TAPI_1_1
  1228. "lineConfigDialogEdit",
  1229. #if TAPI_2_0
  1230. "lineConfigDialogEditW",
  1231. #endif
  1232. "lineConfigProvider",
  1233. #endif
  1234. "lineDeallocateCall",
  1235. "lineDevSpecific",
  1236. "lineDevSpecificFeature",
  1237. "lineDial",
  1238. #if TAPI_2_0
  1239. "lineDialW",
  1240. #endif
  1241. "lineDrop",
  1242. "lineForward",
  1243. #if TAPI_2_0
  1244. "lineForwardW",
  1245. #endif
  1246. "lineGatherDigits",
  1247. #if TAPI_2_0
  1248. "lineGatherDigitsW",
  1249. #endif
  1250. "lineGenerateDigits",
  1251. #if TAPI_2_0
  1252. "lineGenerateDigitsW",
  1253. #endif
  1254. "lineGenerateTone",
  1255. "lineGetAddressCaps",
  1256. #if TAPI_2_0
  1257. "lineGetAddressCapsW",
  1258. #endif
  1259. "lineGetAddressID",
  1260. #if TAPI_2_0
  1261. "lineGetAddressIDW",
  1262. #endif
  1263. "lineGetAddressStatus",
  1264. #if TAPI_2_0
  1265. "lineGetAddressStatusW",
  1266. #endif
  1267. #if TAPI_2_0
  1268. "lineGetAgentActivityList",
  1269. "lineGetAgentActivityListW",
  1270. "lineGetAgentCaps",
  1271. "lineGetAgentGroupList",
  1272. "lineGetAgentStatus",
  1273. #endif
  1274. #if TAPI_1_1
  1275. "lineGetAppPriority",
  1276. #if TAPI_2_0
  1277. "lineGetAppPriorityW",
  1278. #endif
  1279. #endif
  1280. "lineGetCallInfo",
  1281. #if TAPI_2_0
  1282. "lineGetCallInfoW",
  1283. #endif
  1284. "lineGetCallStatus",
  1285. "lineGetConfRelatedCalls",
  1286. #if TAPI_1_1
  1287. "lineGetCountry",
  1288. #if TAPI_2_0
  1289. "lineGetCountryW",
  1290. #endif
  1291. #endif
  1292. "lineGetDevCaps",
  1293. #if TAPI_2_0
  1294. "lineGetDevCapsW",
  1295. #endif
  1296. "lineGetDevConfig",
  1297. #if TAPI_2_0
  1298. "lineGetDevConfigW",
  1299. #endif
  1300. "lineGetIcon",
  1301. #if TAPI_2_0
  1302. "lineGetIconW",
  1303. #endif
  1304. "lineGetID",
  1305. #if TAPI_2_0
  1306. "lineGetIDW",
  1307. #endif
  1308. "lineGetLineDevStatus",
  1309. #if TAPI_2_0
  1310. "lineGetLineDevStatusW",
  1311. "lineGetMessage",
  1312. #endif
  1313. "lineGetNewCalls",
  1314. "lineGetNumRings",
  1315. #if TAPI_1_1
  1316. "lineGetProviderList",
  1317. #if TAPI_2_0
  1318. "lineGetProviderListW",
  1319. #endif
  1320. #endif
  1321. "lineGetRequest",
  1322. #if TAPI_2_0
  1323. "lineGetRequestW",
  1324. #endif
  1325. "lineGetStatusMessages",
  1326. "lineGetTranslateCaps",
  1327. #if TAPI_2_0
  1328. "lineGetTranslateCapsW",
  1329. #endif
  1330. "lineHandoff",
  1331. #if TAPI_2_0
  1332. "lineHandoffW",
  1333. #endif
  1334. "lineHold",
  1335. "lineInitialize",
  1336. #if TAPI_2_0
  1337. "lineInitializeEx",
  1338. "lineInitializeExW",
  1339. #endif
  1340. "lineMakeCall",
  1341. #if TAPI_2_0
  1342. "lineMakeCallW",
  1343. #endif
  1344. "lineMonitorDigits",
  1345. "lineMonitorMedia",
  1346. "lineMonitorTones",
  1347. "lineNegotiateAPIVersion",
  1348. "lineNegotiateExtVersion",
  1349. "lineOpen",
  1350. #if TAPI_2_0
  1351. "lineOpenW",
  1352. #endif
  1353. "linePark",
  1354. #if TAPI_2_0
  1355. "lineParkW",
  1356. #endif
  1357. "linePickup",
  1358. #if TAPI_2_0
  1359. "linePickupW",
  1360. #endif
  1361. "linePrepareAddToConference",
  1362. #if TAPI_2_0
  1363. "linePrepareAddToConferenceW",
  1364. "lineProxyMessage",
  1365. "lineProxyResponse",
  1366. #endif
  1367. "lineRedirect",
  1368. #if TAPI_2_0
  1369. "lineRedirectW",
  1370. #endif
  1371. "lineRegisterRequestRecipient",
  1372. #if TAPI_1_1
  1373. "lineReleaseUserUserInfo",
  1374. #endif
  1375. "lineRemoveFromConference",
  1376. #if TAPI_1_1
  1377. "lineRemoveProvider",
  1378. #endif
  1379. "lineSecureCall",
  1380. "lineSendUserUserInfo",
  1381. #if TAPI_2_0
  1382. "lineSetAgentActivity",
  1383. "lineSetAgentGroup",
  1384. "lineSetAgentState",
  1385. #endif
  1386. #if TAPI_1_1
  1387. "lineSetAppPriority",
  1388. #if TAPI_2_0
  1389. "lineSetAppPriorityW",
  1390. #endif
  1391. #endif
  1392. "lineSetAppSpecific",
  1393. #if TAPI_2_0
  1394. "lineSetCallData",
  1395. #endif
  1396. "lineSetCallParams",
  1397. "lineSetCallPrivilege",
  1398. #if TAPI_2_0
  1399. "lineSetCallQualityOfService",
  1400. "lineSetCallTreatment",
  1401. #endif
  1402. "lineSetCurrentLocation",
  1403. "lineSetDevConfig",
  1404. #if TAPI_2_0
  1405. "lineSetDevConfigW",
  1406. "lineSetLineDevStatus",
  1407. #endif
  1408. "lineSetMediaControl",
  1409. "lineSetMediaMode",
  1410. "lineSetNumRings",
  1411. "lineSetStatusMessages",
  1412. "lineSetTerminal",
  1413. "lineSetTollList",
  1414. #if TAPI_2_0
  1415. "lineSetTollListW",
  1416. #endif
  1417. "lineSetupConference",
  1418. #if TAPI_2_0
  1419. "lineSetupConferenceW",
  1420. #endif
  1421. "lineSetupTransfer",
  1422. #if TAPI_2_0
  1423. "lineSetupTransferW",
  1424. #endif
  1425. "lineShutdown",
  1426. "lineSwapHold",
  1427. "lineTranslateAddress",
  1428. #if TAPI_2_0
  1429. "lineTranslateAddressW",
  1430. #endif
  1431. #if TAPI_1_1
  1432. "lineTranslateDialog",
  1433. #if TAPI_2_0
  1434. "lineTranslateDialogW",
  1435. #endif
  1436. #endif
  1437. "lineUncompleteCall",
  1438. "lineUnhold",
  1439. "lineUnpark",
  1440. #if TAPI_2_0
  1441. "lineUnparkW",
  1442. #endif
  1443. #if INTERNAL_3_0
  1444. "MMCAddProviderW",
  1445. "MMCConfigProviderW",
  1446. "MMCGetAvailableProviders",
  1447. "MMCGetLineInfoW",
  1448. "MMCGetLineStatusW",
  1449. "MMCGetPhoneInfoW",
  1450. "MMCGetPhoneStatusW",
  1451. "MMCGetProviderListW",
  1452. "MMCGetServerConfigW",
  1453. "MMCInitializeW",
  1454. "MMCRemoveProviderW",
  1455. "MMCSetLineInfoW",
  1456. "MMCSetPhoneInfoW",
  1457. "MMCSetServerConfigW",
  1458. "MMCShutdownW",
  1459. #endif
  1460. "phoneClose",
  1461. "phoneConfigDialog",
  1462. #if TAPI_2_0
  1463. "phoneConfigDialogW",
  1464. #endif
  1465. "phoneDevSpecific",
  1466. "phoneGetButtonInfo",
  1467. #if TAPI_2_0
  1468. "phoneGetButtonInfoW",
  1469. #endif
  1470. "phoneGetData",
  1471. "phoneGetDevCaps",
  1472. #if TAPI_2_0
  1473. "phoneGetDevCapsW",
  1474. #endif
  1475. "phoneGetDisplay",
  1476. "phoneGetGain",
  1477. "phoneGetHookSwitch",
  1478. "phoneGetIcon",
  1479. #if TAPI_2_0
  1480. "phoneGetIconW",
  1481. #endif
  1482. "phoneGetID",
  1483. #if TAPI_2_0
  1484. "phoneGetIDW",
  1485. #endif
  1486. "phoneGetLamp",
  1487. #if TAPI_2_0
  1488. "phoneGetMessage",
  1489. #endif
  1490. "phoneGetRing",
  1491. "phoneGetStatus",
  1492. #if TAPI_2_0
  1493. "phoneGetStatusW",
  1494. #endif
  1495. "phoneGetStatusMessages",
  1496. "phoneGetVolume",
  1497. "phoneInitialize",
  1498. #if TAPI_2_0
  1499. "phoneInitializeEx",
  1500. "phoneInitializeExW",
  1501. #endif
  1502. "phoneOpen",
  1503. "phoneNegotiateAPIVersion",
  1504. "phoneNegotiateExtVersion",
  1505. "phoneSetButtonInfo",
  1506. #if TAPI_2_0
  1507. "phoneSetButtonInfoW",
  1508. #endif
  1509. "phoneSetData",
  1510. "phoneSetDisplay",
  1511. "phoneSetGain",
  1512. "phoneSetHookSwitch",
  1513. "phoneSetLamp",
  1514. "phoneSetRing",
  1515. "phoneSetStatusMessages",
  1516. "phoneSetVolume",
  1517. "phoneShutdown",
  1518. "tapiGetLocationInfo",
  1519. #if TAPI_2_0
  1520. "tapiGetLocationInfoW",
  1521. #endif
  1522. "tapiRequestDrop",
  1523. "tapiRequestMakeCall",
  1524. #if TAPI_2_0
  1525. "tapiRequestMakeCallW",
  1526. #endif
  1527. "tapiRequestMediaCall",
  1528. #if TAPI_2_0
  1529. "tapiRequestMediaCallW",
  1530. #endif
  1531. "Open all lines",
  1532. "Open all phones",
  1533. "Close handle (comm, etc)",
  1534. "Dump buffer contents",
  1535. #if (INTERNAL_VER >= 0x20000)
  1536. "internalNewLocationW",
  1537. #endif
  1538. NULL,
  1539. "Default values",
  1540. "LINECALLPARAMS",
  1541. "LINEFORWARDLIST",
  1542. NULL
  1543. };