aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/mgcp.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-02-03 08:50:33 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-02-03 08:50:33 +0100
commite0955029a141c52921b408d12b23469bcd919b81 (patch)
tree88a99050f6aae68fb35fa762f67673eef391161f /openbsc/include/openbsc/mgcp.h
parent89f3cb8606019892ae626a40f2423278ac4b88f1 (diff)
[mgcp] Prepare to do MGCP over TCP and inside the bsc_msc_ip process
* Separate main process and protocol handling into two parts. * Change the protocol handling to work with UDP and TCP connection * This will allow to speak MGCP over TCP between the BSC MUX and the real BSC.
Diffstat (limited to 'openbsc/include/openbsc/mgcp.h')
-rw-r--r--openbsc/include/openbsc/mgcp.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/openbsc/include/openbsc/mgcp.h b/openbsc/include/openbsc/mgcp.h
index fa6224c12..17dd2ec4f 100644
--- a/openbsc/include/openbsc/mgcp.h
+++ b/openbsc/include/openbsc/mgcp.h
@@ -21,7 +21,8 @@
*
*/
-unsigned int rtp_base_port = 4000;
+#define RTP_PORT_DEFAULT 4000
+extern unsigned int rtp_base_port;
/**
* Calculate the RTP audio port for the given multiplex
@@ -42,7 +43,12 @@ unsigned int rtp_base_port = 4000;
* network and BTS.
*
*/
-int rtp_calculate_port(int multiplex, int base)
+static inline int rtp_calculate_port(int multiplex, int base)
{
return base + (multiplex * 2);
}
+
+int mgcp_parse_config(const char *config_file, struct gsm_network *dummy_network);
+int mgcp_handle_message(int fd, struct msgb *msg, struct sockaddr_in *source);
+int mgcp_send_rsip(int fd, struct sockaddr_in *source);
+int mgcp_vty_init(void);