diff options
author | Max <msuraev@sysmocom.de> | 2016-04-28 12:05:27 +0200 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2016-09-24 16:30:22 +0200 |
commit | 15d9b7929d449e4138bcb003c614035bceadc3d1 (patch) | |
tree | f8981279c69166126a8c65cbd8698b0602a29415 | |
parent | fc47015d919a95d45b2efdf0e66e1eb3ebb72598 (diff) |
Bump minimum oRTP version3G_2016_09
Require version 0.22.0 which matches Debian stable ATM to simplify
testing and maintenance across all supported BTS models and
corresponding toolchains.
Change-Id: I005d60bb50889edad3e6fc0cd9f7f180aeaf1dab
Fixes: SYS#2569
-rw-r--r-- | configure.ac | 10 | ||||
-rw-r--r-- | src/trau/osmo_ortp.c | 10 |
2 files changed, 3 insertions, 17 deletions
diff --git a/configure.ac b/configure.ac index 7d88eb4..92cba96 100644 --- a/configure.ac +++ b/configure.ac @@ -33,15 +33,7 @@ AM_CONFIG_HEADER(config.h) PKG_CHECK_MODULES(LIBOSMOCORE, libosmocore >= 0.3.0) PKG_CHECK_MODULES(LIBOSMOVTY, libosmovty >= 0.3.0) PKG_CHECK_MODULES(LIBOSMOGSM, libosmogsm >= 0.3.10) -PKG_CHECK_MODULES([ORTP], [ortp >= 0.13.1], - [ - PKG_CHECK_MODULES([ORTP_VERSION], [ortp >= 0.21], - [AC_DEFINE(HAVE_ORTP_021, 1, - [libortp >= 0.21])], - [AC_DEFINE(HAVE_ORTP_021, 0, - [libortp < 0.21])]) - ] -) +PKG_CHECK_MODULES(ORTP, ortp >= 0.22.0) AC_CHECK_HEADERS(dahdi/user.h,,AC_MSG_WARN(DAHDI input driver will not be built)) diff --git a/src/trau/osmo_ortp.c b/src/trau/osmo_ortp.c index 0bb1197..5441337 100644 --- a/src/trau/osmo_ortp.c +++ b/src/trau/osmo_ortp.c @@ -357,13 +357,9 @@ struct osmo_rtp_socket *osmo_rtp_socket_create(void *talloc_ctx, unsigned int fl */ int osmo_rtp_socket_bind(struct osmo_rtp_socket *rs, const char *ip, int port) { - int rc; -#if HAVE_ORTP_021 - int rtcp = (-1 != port) ? port + 1 : -1; + int rc, rtcp = (-1 != port) ? port + 1 : -1; rc = rtp_session_set_local_addr(rs->sess, ip, port, rtcp); -#else - rc = rtp_session_set_local_addr(rs->sess, ip, port); -#endif + if (rc < 0) return rc; @@ -600,11 +596,9 @@ void osmo_rtp_socket_stats(struct osmo_rtp_socket *rs, *recv_lost = stats->cum_packet_loss; } -#if HAVE_ORTP_021 const jitter_stats_t *jitter; jitter = rtp_session_get_jitter_stats(rs->sess); if (jitter) *last_jitter = jitter->jitter; -#endif } |