rtp_proxy_main: Use existing function to convert CIC to UDP port
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 @@
 }
 
 
-#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)
 {