summaryrefslogtreecommitdiffstats
path: root/include/sccp.hrl
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-10-09 14:12:53 +0200
committerHarald Welte <laforge@gnumonks.org>2011-10-09 14:12:53 +0200
commite15005e1fbbbfa9de05f4f1c6f6ade3d1d8de832 (patch)
treec7b9d335006df2e17bb48670005495a9f6b432d9 /include/sccp.hrl
parent56c6c04f62335eb9cf265f9a2e8faf5782932899 (diff)
SCCP: more cause values
Diffstat (limited to 'include/sccp.hrl')
-rw-r--r--include/sccp.hrl45
1 files changed, 45 insertions, 0 deletions
diff --git a/include/sccp.hrl b/include/sccp.hrl
index 537ac48..c19e512 100644
--- a/include/sccp.hrl
+++ b/include/sccp.hrl
@@ -67,6 +67,51 @@
-define(SCCP_SSN_BISDN, 2#000001101).
-define(SCCP_SSN_TC_TEST, 2#000001110).
+% According to Q.713 Section 3.11 - Release Cause
+%FIXME
+
+% According to Q.713 Section 3.12 - Return Cause
+-define(SCCP_CAUSE_RET_NOTRANS_NATURE, 2#00000000).
+-define(SCCP_CAUSE_RET_NOTRANS_ADDR, 2#00000001).
+-define(SCCP_CAUSE_RET_SUBSYS_CONG, 2#00000010).
+-define(SCCP_CAUSE_RET_SUBSYS_FAILURE, 2#00000011).
+-define(SCCP_CAUSE_RET_UNEQUIP_USER, 2#00000100).
+-define(SCCP_CAUSE_RET_MTP_FAILURE, 2#00000101).
+-define(SCCP_CAUSE_RET_NET_CONG, 2#00000110).
+-define(SCCP_CAUSE_RET_UNQUALIFIED, 2#00000111).
+-define(SCCP_CAUSE_RET_ERR_MSG_TRANSP, 2#00001000).
+-define(SCCP_CAUSE_RET_ERR_LOCAL_PROC, 2#00001001).
+-define(SCCP_CAUSE_RET_DEST_NO_REASS, 2#00001010).
+-define(SCCP_CAUSE_RET_SCCP_FAILURE, 2#00001011).
+-define(SCCP_CAUSE_RET_HOP_CTR_FAIL, 2#00001100).
+-define(SCCP_CAUSE_RET_SEG_NOT_SUPP, 2#00001101).
+-define(SCCP_CAUSE_RET_SEG_FAILURE, 2#00001110).
+
+% According to Q.713 Section 3.13 - Reset Cause
+%FIXME
+
+% According to Q.713 Section 3.14 - Error Cause
+%FIXME
+
+% According to Q.713 Section 3.15 - Refusal Cause
+-define(SCCP_CAUSE_REF_ENDU_ORIGINATED, 2#00000000).
+-define(SCCP_CAUSE_REF_ENDU_CONGESTION, 2#00000001).
+-define(SCCP_CAUSE_REF_ENDU_FAILURE, 2#00000010).
+-define(SCCP_CAUSE_REF_USER_ORIGINATED, 2#00000011).
+-define(SCCP_CAUSE_REF_DEST_UNKNOWN, 2#00000100).
+-define(SCCP_CAUSE_REF_DEST_INACCESS, 2#00000101).
+-define(SCCP_CAUSE_REF_QOS_UNAVAIL_TRANS, 2#00000110).
+-define(SCCP_CAUSE_REF_QOS_UNAVAIL_NTRANS, 2#00000111).
+-define(SCCP_CAUSE_REF_ACCESS_FAIL, 2#00001000).
+-define(SCCP_CAUSE_REF_ACCES_CONGESTION, 2#00001001).
+-define(SCCP_CAUSE_REF_SUBSYS_FAILURE, 2#00001010).
+-define(SCCP_CAUSE_REF_SUBSYS_CONGESTION, 2#00001011).
+-define(SCCP_CAUSE_REF_EXP_CONN_EST_TMR, 2#00001100).
+-define(SCCP_CAUSE_REF_INCOMP_USER_DATA, 2#00001101).
+-define(SCCP_CAUSE_REF_HOP_COUNTER_VIOL, 2#00010000).
+-define(SCCP_CAUSE_REF_NO_GTT_FOR_NATURE, 2#00010010).
+-define(SCCP_CAUSE_REF_UNEQUIPPED_USER, 2#00010011).
+
% a single parsed SCCP message