Holger Hans Peter Freyther
1b624ba1f6
smpp: Close the file descriptor when we can't accept the SMSC conn
...
When we failed to allocate the memory or failed to register the
fd we would have leaked the file descriptor. Close the fd and
avoid the leak.
2013-07-14 09:04:51 +02:00
Holger Hans Peter Freyther
c962d45669
smpp: Add the classic check for osmo_fd_register
...
In case the osmo_fd_register will fail we will need to free the
memory we have allocated.
Fixes: Coverity CID 1042375
2013-07-14 09:04:51 +02:00
Harald Welte
995ff35f39
Fix license header at smpp_openbsc.c and smpp_smsc.c
...
As Holger pointed out, they contained a GPLv2+ disclaimer rather than
the AGPLv3+ which we use for OpenBSC. This is not an incompaibility,
but was done unintentionally. The code was always mean to be under
AGPLv3+.
Nevertheless, anyone using those two files in a version up to this
commit have the right to use it under GPLv2+ as well. This is not
applicable for any versions after this commit.
2013-07-13 16:35:32 +02:00
Harald Welte
61e1935a5f
SMPP: Respond with BIND_TRX_RESP to BIND_TRX, not BIND_TX_RESP
2013-05-26 14:40:14 +02:00
Holger Hans Peter Freyther
d7b22c624b
smpp: Attempt to fix a memory leak of the msgb
...
The smpp_pdu_rx method does not free the msgb. Introduce an
annotation (currently defined to nothing) to indicate what
will happen to a msgb.
2013-04-29 14:00:59 +02:00
Harald Welte
e07b6a77e5
SMPP: Implement support for MO SMS
...
Each ESME can have a number of prefix-matching routes, or it can
be a 'default route' to whcih all otherwise unknown SMS destinations
are routed.
2012-11-24 11:07:30 +01:00
Harald Welte
338e3b3b4b
SMPP: VTY configuration of SMPP code, authentication support
2012-11-24 11:07:29 +01:00
Harald Welte
874f9f1aa7
SMPP: More consistent logging / error reporting
2012-11-16 22:00:10 +01:00
Harald Welte
8a1b056bff
SMPP: Implement ALERT NOTIFICATION on attach/detach of subscribers
2012-11-16 22:00:10 +01:00
Harald Welte
4dbcdad903
SMPP: Introduce wrapper macro to memset all structures to zero
...
For some reason, libsmpp34 is too smart to zero out the entire structure
to which it is unpacking. This introduces an ugly wrapper macro to
work around. This needs discussion with the libsmpp34 maintainer.
2012-11-16 22:00:09 +01:00
Harald Welte
e94db49698
SMPP: Introduce ESME reference coounting
...
In case a ESME disappears after SUBMIT-SM but before the MT-SMS
is delivered (transaction mode), we have to make sure the esme
structure still exists.
2012-11-16 22:00:09 +01:00
Harald Welte
d4bdee79e9
SMPP: Implement transaction mode for SUBMIT-SM
...
WARNING: if the ESME disconnects, osmo_esme gets freed, and
sms->smpp.esme might point to invalid/unallocated memory!
2012-11-16 22:00:09 +01:00
Harald Welte
f1033cc752
Initial support of SMPP interface for MT-SMS
2012-11-16 22:00:09 +01:00