Source code of Windows XP (NT5)
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.

111 lines
3.7 KiB

  1. #ifndef __iptel_q931defs_h
  2. #define __iptel_q931defs_h
  3. // This module contains constants and enumerated types for values used in the Q.931 protocol.
  4. // It does not contain any structures, definitions, or APIs relevant to any implementation.
  5. // Q931_PROTOCOL_DISCRIMINATOR identifies Q.931 PDUs on links that may carry
  6. // PDUs from more than one protocol, such as LAPD D-channel links on PRI.
  7. #define Q931_PROTOCOL_DISCRIMINATOR 0x08
  8. // the well-known Q.931 TSAP for TCP on IP is TCP port 1720
  9. #define Q931_TSAP_IP_TCP 1720
  10. #define Q931_TSAP_IP_TCP_SECURE 1300
  11. enum Q931_MESSAGE_TYPE
  12. {
  13. // Call Establishment Message (000-----)
  14. Q931_MESSAGE_TYPE_ALERTING = 0x01,
  15. Q931_MESSAGE_TYPE_CALL_PROCEEDING = 0x02,
  16. Q931_MESSAGE_TYPE_CONNECT = 0x07,
  17. Q931_MESSAGE_TYPE_CONNECT_ACKNOWLEDGE = 0x0F,
  18. Q931_MESSAGE_TYPE_PROGRESS = 0x03,
  19. Q931_MESSAGE_TYPE_SETUP = 0x05,
  20. Q931_MESSAGE_TYPE_SETUP_ACKNOWLEDGE = 0x0E,
  21. Q931_MESSAGE_TYPE_FACILITY = 0x1C,
  22. // Call Information Phase message (001-----)
  23. Q931_MESSAGE_TYPE_RESUME = 0x26,
  24. Q931_MESSAGE_TYPE_RESUME_ACKNOWLEDGE = 0x2E,
  25. Q931_MESSAGE_TYPE_RESUME_REJECT = 0x22,
  26. Q931_MESSAGE_TYPE_SUSPEND = 0x25,
  27. Q931_MESSAGE_TYPE_SUSPEND_ACKNOWLEDGE = 0x2D,
  28. Q931_MESSAGE_TYPE_SUSPEND_REJECT = 0x21,
  29. Q931_MESSAGE_TYPE_USER_INFORMATION = 0x20,
  30. // Call Clearing Messages (010-----)
  31. Q931_MESSAGE_TYPE_DISCONNECT = 0x45,
  32. Q931_MESSAGE_TYPE_RELEASE = 0x4D,
  33. Q931_MESSAGE_TYPE_RELEASE_COMPLETE = 0x5A,
  34. Q931_MESSAGE_TYPE_RESTART = 0x46,
  35. Q931_MESSAGE_TYPE_RESTART_ACKNOWLEDGE = 0x4E,
  36. // Miscellaneous Message (011-----)
  37. Q931_MESSAGE_TYPE_SEGMENT = 0x60,
  38. Q931_MESSAGE_TYPE_CONGESTION_CONTROL = 0x79,
  39. Q931_MESSAGE_TYPE_INFORMATION = 0x7B,
  40. Q931_MESSAGE_TYPE_NOTIFY = 0x6E,
  41. Q931_MESSAGE_TYPE_STATUS = 0x7D,
  42. Q931_MESSAGE_TYPE_STATUS_ENQUIRY = 0x75,
  43. };
  44. enum Q931_IE_IDENTIFIER
  45. {
  46. // Single-Octet Information Elements
  47. Q931_IE_SHIFT = 0x90, // 1001----
  48. Q931_IE_RESERVED = 0x80, // 1000----
  49. Q931_IE_MORE_DATA = 0xA0, // 11000000
  50. Q931_IE_SENDING_COMPLETE = 0xA1, // 11000001
  51. Q931_IE_CONGESTION_CONTROL = 0xB0, // 1011----
  52. Q931_IE_REPEAT_INDICATOR = 0xD0, // 1101----
  53. // Variable-Length Information Elements
  54. Q931_IE_SEGMENTED_MESSAGE = 0x00,
  55. Q931_IE_BEARER_CAPABILITY = 0x04,
  56. Q931_IE_CAUSE = 0x08,
  57. Q931_IE_CALL_IDENTITIY = 0x10,
  58. Q931_IE_CALL_STATE = 0x14,
  59. Q931_IE_CHANNEL_IDENTIFICATION = 0x18,
  60. Q931_IE_PROGRESS_INDICATOR = 0x1E,
  61. Q931_IE_NETWORK_SPECIFIC_FACILITIES = 0x20,
  62. Q931_IE_NOTIFICATION_INDICATOR = 0x27,
  63. Q931_IE_DISPLAY = 0x28,
  64. Q931_IE_DATE_TIME = 0x29,
  65. Q931_IE_KEYPAD_FACILITY = 0x2A,
  66. Q931_IE_SIGNAL = 0x34,
  67. Q931_IE_INFORMATION_RATE = 0x40,
  68. Q931_IE_END_TO_END_TRANSIT_DELAY = 0x42,
  69. Q931_IE_TRANSIT_DELAY_SELECTION = 0x43,
  70. Q931_IE_PACKET_LAYER_BINARY_PARAMETERS = 0x44,
  71. Q931_IE_PACKET_LAYER_WINDOW_SIZE = 0x45,
  72. Q931_IE_PACKET_SIZE = 0x46,
  73. Q931_IE_CLOSED_USER_GROUP = 0x47,
  74. Q931_IE_REVERSE_CHARGE_INDICATION = 0x4A,
  75. Q931_IE_CALLING_PARTY_NUMBER = 0x6A,
  76. Q931_IE_CALLING_PARTY_SUBADDRESS = 0x6B,
  77. Q931_IE_CALLED_PARTY_NUMBER = 0x70,
  78. Q931_IE_CALLED_PARTY_SUBADDRESS = 0x71,
  79. Q931_IE_REDIRECTING_NUMBER = 0x74,
  80. Q931_IE_TRANSIT_NETWORK_SELECTION = 0x78,
  81. Q931_IE_RESTART_INDICATOR = 0x79,
  82. Q931_IE_LOW_LAYER_COMPATIBILITY = 0x7C,
  83. Q931_IE_HIGH_LAYER_COMPATIBILITY = 0x7D,
  84. Q931_IE_USER_TO_USER = 0x7E,
  85. Q931_IE_ESCAPE_FOR_EXTENSION = 0x7F,
  86. };
  87. enum Q931_UUIE_TYPE
  88. {
  89. Q931_UUIE_USER_SPECIFIC = 0x00,
  90. Q931_UUIE_OSI = 0x01,
  91. Q931_UUIE_X244 = 0x02,
  92. Q931_UUIE_IA5_TEXT = 0x04,
  93. Q931_UUIE_X208 = 0x05,
  94. Q931_UUIE_V120_RATE_ADAPTION = 0x07,
  95. Q931_UUIE_UNI_CALL_CONTROL = 0x08,
  96. };
  97. #endif // __iptel_q931defs_h