From c57575bea80c901823f22983cb49ba03da5b21e5 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 1 Apr 2010 06:48:52 +0200 Subject: 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. --- openbsc/include/openbsc/bsc_nat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'openbsc/include/openbsc') 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 -- cgit v1.2.3