Loading...
Searching...
No Matches
sccp_scmg.h
Go to the documentation of this file.
#pragma once
/* SCCP Management as per Section 5.3 of ITU-T Q.713 */
enum sccp_scmg_msg_type {
SCCP_SCMG_MSGT_SSA = 0x01, /* Subsystem Allowed */
SCCP_SCMG_MSGT_SSP = 0x02, /* Subsystem Prohibited */
SCCP_SCMG_MSGT_SST = 0x03, /* Subsystem Status Test */
SCCP_SCMG_MSGT_SOR = 0x04, /* Subsystem Out-of-service Request */
SCCP_SCMG_MSGT_SOG = 0x05, /* Subsystem Out-of-service Grant */
SCCP_SCMG_MSGT_SSC = 0x06, /* Subsystem Congested */
};
struct sccp_scmg_msg {
uint8_t msg_type; /* enum sccp_scmg_msg_type */
uint8_t affected_ssn;
uint16_t affected_pc;
uint8_t smi;
/* one octet, only in case of SSC */
uint8_t ssc_congestion_lvl[0];
} __attribute__ ((packed));
extern const struct value_string sccp_scmg_msgt_names[];
static inline const char *sccp_scmg_msgt_name(enum sccp_scmg_msg_type msgt)
{ return get_value_string(sccp_scmg_msgt_names, msgt); }
__attribute__
enum m3ua_rkm_reg_status __attribute__
sccp_scmg_msg_type
sccp_scmg_msg_type
Definition sccp_scmg.h:5
SCCP_SCMG_MSGT_SSC
@ SCCP_SCMG_MSGT_SSC
Definition sccp_scmg.h:11
SCCP_SCMG_MSGT_SOG
@ SCCP_SCMG_MSGT_SOG
Definition sccp_scmg.h:10
SCCP_SCMG_MSGT_SST
@ SCCP_SCMG_MSGT_SST
Definition sccp_scmg.h:8
SCCP_SCMG_MSGT_SOR
@ SCCP_SCMG_MSGT_SOR
Definition sccp_scmg.h:9
SCCP_SCMG_MSGT_SSP
@ SCCP_SCMG_MSGT_SSP
Definition sccp_scmg.h:7
SCCP_SCMG_MSGT_SSA
@ SCCP_SCMG_MSGT_SSA
Definition sccp_scmg.h:6
sccp_scmg_msgt_names
const struct value_string sccp_scmg_msgt_names[]
Definition sccp_scmg.c:158
sccp_scmg_msgt_name
static const char * sccp_scmg_msgt_name(enum sccp_scmg_msg_type msgt)
Definition sccp_scmg.h:24
sccp_scmg_msg
Definition sccp_scmg.h:14
sccp_scmg_msg::ssc_congestion_lvl
uint8_t ssc_congestion_lvl[0]
Definition sccp_scmg.h:20
sccp_scmg_msg::affected_ssn
uint8_t affected_ssn
Definition sccp_scmg.h:16
sccp_scmg_msg::affected_pc
uint16_t affected_pc
Definition sccp_scmg.h:17
sccp_scmg_msg::msg_type
uint8_t msg_type
Definition sccp_scmg.h:15
sccp_scmg_msg::smi
uint8_t smi
Definition sccp_scmg.h:18