summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-06-19 13:30:33 +0200
committerHarald Welte <laforge@gnumonks.org>2013-06-19 15:31:00 +0200
commit7084aee8aa5a4d77199726ba2be8a13d4e3f1a86 (patch)
tree4b424116d1e7d51578499a43097517f3566046cf
parent7083fd4389ff426ba139742a6f534f13c444fabf (diff)
rtp_proxy_main: Use existing function to convert CIC to UDP portlaforge/rtp_proxy
-rw-r--r--openbsc/src/libtrau/rtp_proxy_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/libtrau/rtp_proxy_main.c b/openbsc/src/libtrau/rtp_proxy_main.c
index 87d6b77..fc71c87 100644
--- a/openbsc/src/libtrau/rtp_proxy_main.c
+++ b/openbsc/src/libtrau/rtp_proxy_main.c
@@ -43,6 +43,7 @@
#include <openbsc/signal.h>
#include <openbsc/vty.h>
#include <openbsc/rtp_proxy.h>
+#include <openbsc/mgcp.h>
#include "../../bscconfig.h"
@@ -211,7 +212,7 @@ err_free_a:
}
-#define PORT_BY_CIC(mux, x) (4000 + ((mux)*32)+((x)*2))
+#define PORT_BY_CIC(mux, x) rtp_calculate_port((mux)*32+(x), 4000)
int main(int argc, char **argv)
{