aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc_nat/bsc_nat_rewrite.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-06-19 13:10:40 +0200
committerHarald Welte <laforge@gnumonks.org>2013-06-19 15:31:00 +0200
commit7083fd4389ff426ba139742a6f534f13c444fabf (patch)
tree8dcd2927b48eda90747fa5f2959799be9c85cb2c /openbsc/src/osmo-bsc_nat/bsc_nat_rewrite.c
parent96c46cff47f9dd6dc81a89e9f407284f9315c89c (diff)
rtp_proxy: add RTP_LOOPBACK mode for local loop back
This will echo back all voice received on the socket back to the same socket/subscriber. If we mark a socket as LOOPBACK at the BSC, we don't yet know a priori which source IP/port the BTS side of the socket will have, so we can only bind our local IP+port. Only once the first message from the BTS arrives at the BSC rtp_proxy, we know the source and should do a connect() to that remote address. The rtp_proxy has no idea when a call is disconnected, so the loopback mode only works for the first call, but no subsequent calls. This patch compares IP/PORT of the BTS side of the RTP flow and issues a new connect only if it is not the current remote address.
Diffstat (limited to 'openbsc/src/osmo-bsc_nat/bsc_nat_rewrite.c')
0 files changed, 0 insertions, 0 deletions