l3_1tr6.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. /* $Id: l3_1tr6.h,v 2.2.6.2 2001/09/23 22:24:49 kai Exp $
  2. *
  3. * German 1TR6 D-channel protocol defines
  4. *
  5. * This software may be used and distributed according to the terms
  6. * of the GNU General Public License, incorporated herein by reference.
  7. *
  8. */
  9. #ifndef l3_1tr6
  10. #define l3_1tr6
  11. #define PROTO_DIS_N0 0x40
  12. #define PROTO_DIS_N1 0x41
  13. /*
  14. * MsgType N0
  15. */
  16. #define MT_N0_REG_IND 0x61
  17. #define MT_N0_CANC_IND 0x62
  18. #define MT_N0_FAC_STA 0x63
  19. #define MT_N0_STA_ACK 0x64
  20. #define MT_N0_STA_REJ 0x65
  21. #define MT_N0_FAC_INF 0x66
  22. #define MT_N0_INF_ACK 0x67
  23. #define MT_N0_INF_REJ 0x68
  24. #define MT_N0_CLOSE 0x75
  25. #define MT_N0_CLO_ACK 0x77
  26. /*
  27. * MsgType N1
  28. */
  29. #define MT_N1_ESC 0x00
  30. #define MT_N1_ALERT 0x01
  31. #define MT_N1_CALL_SENT 0x02
  32. #define MT_N1_CONN 0x07
  33. #define MT_N1_CONN_ACK 0x0F
  34. #define MT_N1_SETUP 0x05
  35. #define MT_N1_SETUP_ACK 0x0D
  36. #define MT_N1_RES 0x26
  37. #define MT_N1_RES_ACK 0x2E
  38. #define MT_N1_RES_REJ 0x22
  39. #define MT_N1_SUSP 0x25
  40. #define MT_N1_SUSP_ACK 0x2D
  41. #define MT_N1_SUSP_REJ 0x21
  42. #define MT_N1_USER_INFO 0x20
  43. #define MT_N1_DET 0x40
  44. #define MT_N1_DISC 0x45
  45. #define MT_N1_REL 0x4D
  46. #define MT_N1_REL_ACK 0x5A
  47. #define MT_N1_CANC_ACK 0x6E
  48. #define MT_N1_CANC_REJ 0x67
  49. #define MT_N1_CON_CON 0x69
  50. #define MT_N1_FAC 0x60
  51. #define MT_N1_FAC_ACK 0x68
  52. #define MT_N1_FAC_CAN 0x66
  53. #define MT_N1_FAC_REG 0x64
  54. #define MT_N1_FAC_REJ 0x65
  55. #define MT_N1_INFO 0x6D
  56. #define MT_N1_REG_ACK 0x6C
  57. #define MT_N1_REG_REJ 0x6F
  58. #define MT_N1_STAT 0x63
  59. #define MT_N1_INVALID 0
  60. /*
  61. * W Elemente
  62. */
  63. #define WE_Shift_F0 0x90
  64. #define WE_Shift_F6 0x96
  65. #define WE_Shift_OF0 0x98
  66. #define WE_Shift_OF6 0x9E
  67. #define WE0_cause 0x08
  68. #define WE0_connAddr 0x0C
  69. #define WE0_callID 0x10
  70. #define WE0_chanID 0x18
  71. #define WE0_netSpecFac 0x20
  72. #define WE0_display 0x28
  73. #define WE0_keypad 0x2C
  74. #define WE0_origAddr 0x6C
  75. #define WE0_destAddr 0x70
  76. #define WE0_userInfo 0x7E
  77. #define WE0_moreData 0xA0
  78. #define WE0_congestLevel 0xB0
  79. #define WE6_serviceInd 0x01
  80. #define WE6_chargingInfo 0x02
  81. #define WE6_date 0x03
  82. #define WE6_facSelect 0x05
  83. #define WE6_facStatus 0x06
  84. #define WE6_statusCalled 0x07
  85. #define WE6_addTransAttr 0x08
  86. /*
  87. * FacCodes
  88. */
  89. #define FAC_Sperre 0x01
  90. #define FAC_Sperre_All 0x02
  91. #define FAC_Sperre_Fern 0x03
  92. #define FAC_Sperre_Intl 0x04
  93. #define FAC_Sperre_Interk 0x05
  94. #define FAC_Forward1 0x02
  95. #define FAC_Forward2 0x03
  96. #define FAC_Konferenz 0x06
  97. #define FAC_GrabBchan 0x0F
  98. #define FAC_Reactivate 0x10
  99. #define FAC_Konferenz3 0x11
  100. #define FAC_Dienstwechsel1 0x12
  101. #define FAC_Dienstwechsel2 0x13
  102. #define FAC_NummernIdent 0x14
  103. #define FAC_GBG 0x15
  104. #define FAC_DisplayUebergeben 0x17
  105. #define FAC_DisplayUmgeleitet 0x1A
  106. #define FAC_Unterdruecke 0x1B
  107. #define FAC_Deactivate 0x1E
  108. #define FAC_Activate 0x1D
  109. #define FAC_SPV 0x1F
  110. #define FAC_Rueckwechsel 0x23
  111. #define FAC_Umleitung 0x24
  112. /*
  113. * Cause codes
  114. */
  115. #define CAUSE_InvCRef 0x01
  116. #define CAUSE_BearerNotImpl 0x03
  117. #define CAUSE_CIDunknown 0x07
  118. #define CAUSE_CIDinUse 0x08
  119. #define CAUSE_NoChans 0x0A
  120. #define CAUSE_FacNotImpl 0x10
  121. #define CAUSE_FacNotSubscr 0x11
  122. #define CAUSE_OutgoingBarred 0x20
  123. #define CAUSE_UserAccessBusy 0x21
  124. #define CAUSE_NegativeGBG 0x22
  125. #define CAUSE_UnknownGBG 0x23
  126. #define CAUSE_NoSPVknown 0x25
  127. #define CAUSE_DestNotObtain 0x35
  128. #define CAUSE_NumberChanged 0x38
  129. #define CAUSE_OutOfOrder 0x39
  130. #define CAUSE_NoUserResponse 0x3A
  131. #define CAUSE_UserBusy 0x3B
  132. #define CAUSE_IncomingBarred 0x3D
  133. #define CAUSE_CallRejected 0x3E
  134. #define CAUSE_NetworkCongestion 0x59
  135. #define CAUSE_RemoteUser 0x5A
  136. #define CAUSE_LocalProcErr 0x70
  137. #define CAUSE_RemoteProcErr 0x71
  138. #define CAUSE_RemoteUserSuspend 0x72
  139. #define CAUSE_RemoteUserResumed 0x73
  140. #define CAUSE_UserInfoDiscarded 0x7F
  141. #define T303 4000
  142. #define T304 20000
  143. #define T305 4000
  144. #define T308 4000
  145. #define T310 120000
  146. #define T313 4000
  147. #define T318 4000
  148. #define T319 4000
  149. #endif