aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/rsl.c
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2020-03-06 11:28:40 +0100
committerHarald Welte <laforge@osmocom.org>2020-03-08 17:56:52 +0100
commitcb4340b8a443811a7bfa281a32937663b51c8d62 (patch)
tree5168afaef67ea1327f1033b2d0e2e906165a9731 /src/common/rsl.c
parent58d79e88ad58887c92ecc98024f537e3efbb9469 (diff)
rsl: make IP DSCP configurablelaforge/virt-voice
Diffstat (limited to 'src/common/rsl.c')
-rw-r--r--src/common/rsl.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c
index 10fb95e9..41dd2434 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -2009,8 +2009,15 @@ static int bind_rtp(struct gsm_bts *bts, struct osmo_rtp_socket *rs, const char
bts->rtp_port_range_next += 2;
- if (rc == 0)
- return 0;
+ if (rc != 0)
+ continue;
+
+ if (bts->rtp_ip_dscp != -1) {
+ if (osmo_rtp_socket_set_dscp(rs, bts->rtp_ip_dscp))
+ LOGP(DRSL, LOGL_ERROR, "failed to set DSCP=%i: %s\n",
+ bts->rtp_ip_dscp, strerror(errno));
+ }
+ return 0;
}
return -1;