summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-10-21 01:36:26 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-01-23 14:42:10 +0100
commitce58f5d91225b7beb176efc77171b3424bd7db0b (patch)
treed039ec41f2e54efc5d26860ac6c09f0464c219c2
parentece5f4c4d880e92d056029b4ee096c49dff13bd0 (diff)
mgcp hack: rtcp: pass back a sender report as well as a receiver report
-rw-r--r--openbsc/src/libmgcp/mgcp_network.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/libmgcp/mgcp_network.c b/openbsc/src/libmgcp/mgcp_network.c
index ffc8fc428..d74bd78f2 100644
--- a/openbsc/src/libmgcp/mgcp_network.c
+++ b/openbsc/src/libmgcp/mgcp_network.c
@@ -694,6 +694,10 @@ int mgcp_send(struct mgcp_endpoint *endp, int dest, int is_rtp,
uint32_t *ssrc = &buf[4];
(*ssrc) ++;
+ mgcp_udp_send(rtp_end->rtcp.fd,
+ &rtp_end->addr,
+ rtp_end->rtcp_port, buf, rc);
+ buf[1] = 201;
return mgcp_udp_send(rtp_end->rtcp.fd,
&rtp_end->addr,
rtp_end->rtcp_port, buf, rc);