diff options
author | Keith <keith@rhizomatica.org> | 2019-01-17 00:26:27 +0000 |
---|---|---|
committer | Keith Whyte <keith@rhizomatica.org> | 2019-02-28 15:15:58 +0000 |
commit | f706b39eb6132c18e28808807cde1ead83437e77 (patch) | |
tree | 4b4b5e870bcff3453b0fcaa273f98ee2ece4c08c /openbsc/src/libmsc/smpp_smsc.h | |
parent | ed8815e723b41e9800f14c67bccd34e51a06beb6 (diff) |
Don't deliver alert notifications to an ESME that
is not yet bound.
We create a new ESME in smsc->esme_list on establishment
of a TCP connection, yet we do not know the system id or
anything else, until the ESME identifies and authenticates.
So do not send alert notifications until we know the
bind status (and system_id)
Change-Id: I0e5d55d3fb6ac46d253902df2fe304e1b0fc8bbf
Diffstat (limited to 'openbsc/src/libmsc/smpp_smsc.h')
-rw-r--r-- | openbsc/src/libmsc/smpp_smsc.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/smpp_smsc.h b/openbsc/src/libmsc/smpp_smsc.h index 239820153..ad1af7642 100644 --- a/openbsc/src/libmsc/smpp_smsc.h +++ b/openbsc/src/libmsc/smpp_smsc.h @@ -19,6 +19,11 @@ #define MODE_7BIT 7 #define MODE_8BIT 8 +enum esme_bind { + ESME_BIND_RX = 0x01, + ESME_BIND_TX = 0x02, +}; + enum esme_read_state { READ_ST_IN_LEN = 0, READ_ST_IN_MSG = 1, |