libosmo-sigtran 2.2.1.64-e866 Osmocom SIGTRAN library

xua_as_fsm.h
Go to the documentation of this file.
1#pragma once
2
3struct osmo_ss7_as;
4struct osmo_ss7_asp;
5
6 enum xua_as_state {
7 XUA_AS_S_DOWN,
8 XUA_AS_S_INACTIVE,
9 XUA_AS_S_ACTIVE,
10 XUA_AS_S_PENDING,
11};
12
13 struct xua_as_event_asp_inactive_ind_pars {
14 struct osmo_ss7_asp *asp;
15 /* RFC4666 4.3.4.5: "When an ASP moves from ASP-DOWN to ASP-INACTIVE within a
16 * particular AS, a Notify message SHOULD be sent, by the ASP-UP receptor,
17 * after sending the ASP-UP-ACK, in order to inform the ASP of the current AS
18 * state." */
19 bool asp_requires_notify;
20};
21
22 enum xua_as_event {
23 XUA_ASPAS_ASP_INACTIVE_IND, /* param: struct xua_as_event_asp_inactive_ind_pars* */
24 XUA_ASPAS_ASP_DOWN_IND, /* param: struct osmo_ss7_asp* */
25 XUA_ASPAS_ASP_ACTIVE_IND,
26 XUA_AS_E_RECOVERY_EXPD,
27 XUA_AS_E_TRANSFER_REQ, /* param: struct xua_msg*, ownership transferred. */
28};
29
30extern struct osmo_fsm xua_as_fsm;
31
32struct osmo_fsm_inst *xua_as_fsm_start(struct osmo_ss7_as *as, int log_level);
osmo_ss7_as
Definition: ss7_as.h:95
osmo_ss7_asp
Definition: ss7_asp.h:55
xua_as_event_asp_inactive_ind_pars
Definition: xua_as_fsm.h:13
xua_as_event_asp_inactive_ind_pars::asp
struct osmo_ss7_asp * asp
Definition: xua_as_fsm.h:14
xua_as_event_asp_inactive_ind_pars::asp_requires_notify
bool asp_requires_notify
Definition: xua_as_fsm.h:19
xua_as_event
xua_as_event
Definition: xua_as_fsm.h:22
XUA_ASPAS_ASP_DOWN_IND
@ XUA_ASPAS_ASP_DOWN_IND
Definition: xua_as_fsm.h:24
XUA_ASPAS_ASP_ACTIVE_IND
@ XUA_ASPAS_ASP_ACTIVE_IND
Definition: xua_as_fsm.h:25
XUA_AS_E_TRANSFER_REQ
@ XUA_AS_E_TRANSFER_REQ
Definition: xua_as_fsm.h:27
XUA_ASPAS_ASP_INACTIVE_IND
@ XUA_ASPAS_ASP_INACTIVE_IND
Definition: xua_as_fsm.h:23
XUA_AS_E_RECOVERY_EXPD
@ XUA_AS_E_RECOVERY_EXPD
Definition: xua_as_fsm.h:26
xua_as_fsm
struct osmo_fsm xua_as_fsm
Definition: xua_as_fsm.c:733
xua_as_fsm_start
struct osmo_fsm_inst * xua_as_fsm_start(struct osmo_ss7_as *as, int log_level)
Start an AS FSM for a given Application Server.
Definition: xua_as_fsm.c:746
xua_as_state
xua_as_state
Definition: xua_as_fsm.h:6
XUA_AS_S_DOWN
@ XUA_AS_S_DOWN
Definition: xua_as_fsm.h:7
XUA_AS_S_ACTIVE
@ XUA_AS_S_ACTIVE
Definition: xua_as_fsm.h:9
XUA_AS_S_INACTIVE
@ XUA_AS_S_INACTIVE
Definition: xua_as_fsm.h:8
XUA_AS_S_PENDING
@ XUA_AS_S_PENDING
Definition: xua_as_fsm.h:10