diff options
author | Harald Welte <laforge@osmocom.org> | 2022-05-17 18:25:14 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2022-05-19 19:34:41 +0000 |
commit | e6f1160046c85fae4959dae880f0b45a6c88bad1 (patch) | |
tree | cbf8333fe28e0ec04aebe253c08114619651df04 /configure.ac | |
parent | 53e2e5fe708293f9ac8f3b1cb69e62261d90accb (diff) |
smpp: Parse and use SMPP-provided validity period
Before this patch, we always ignored any SMPP-provided validity period
and used '0' which is now, and means it expires immediately.
As SMPP allows for validity_period of NULL, use 7 days as SMSC default
in such situations.
Change-Id: Iad9f2697f045ed3bc0eb74c3a9730861f82e6c48
Closes: OS#5567
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 45f6806b0..4b67ea62d 100644 --- a/configure.ac +++ b/configure.ac @@ -48,6 +48,8 @@ PKG_CHECK_MODULES(LIBOSMOSCCP, libosmo-sccp >= 1.5.0) PKG_CHECK_MODULES(LIBOSMOMGCPCLIENT, libosmo-mgcp-client >= 1.9.0) PKG_CHECK_MODULES(LIBOSMOGSUPCLIENT, libosmo-gsup-client >= 1.4.0) +AC_CHECK_FUNC([timegm], [AC_DEFINE(HAVE_TIMEGM, 1, Define if libc implements timegm)]) + old_LIBS=$LIBS AC_SEARCH_LIBS([sctp_send], [sctp], [ AC_DEFINE(HAVE_LIBSCTP, 1, [Define 1 to enable SCTP support]) |