diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-01 06:48:52 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-01 07:41:23 +0200 |
commit | c57575bea80c901823f22983cb49ba03da5b21e5 (patch) | |
tree | 15581904c0607596d73612b4aa3c399c16d40a03 /openbsc/include | |
parent | 8cdfe9fc37819051187ad02dca20d8b75c701b0b (diff) |
nat: Test rewriting of MGCP messages to patch ip and port
Add code to change the ip and port for audio data inside
MGCP messages. This is needed because the BSS might be
behind the NAT and can not reach the network directly and
might be behind a nat so the announced sourceport is not
the one as we see it.
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/bsc_nat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/bsc_nat.h b/openbsc/include/openbsc/bsc_nat.h index 412d9a841..068ef68fb 100644 --- a/openbsc/include/openbsc/bsc_nat.h +++ b/openbsc/include/openbsc/bsc_nat.h @@ -184,5 +184,6 @@ void bsc_mgcp_free_endpoints(struct bsc_nat *nat); int bsc_mgcp_init(struct bsc_nat *nat); struct bsc_connection *bsc_mgcp_find_con(struct bsc_nat *, int endpoint_number); +struct msgb *bsc_mgcp_rewrite(struct msgb *msg, const char *ip, int port); #endif |