aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/mgcp.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-02-03 09:54:43 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-02-03 09:54:43 +0100
commit77f7afe08e2529ff7be301f6cf5298207370807f (patch)
treebb02bd4c9feebfd92da5e9f41a24cc1538280b13 /openbsc/include/openbsc/mgcp.h
parent2ada71de6465def08867c522dc955ff61907c116 (diff)
[mgcp] Prepare the in process MGCP handling by adding callbacks
* Call a callback when the endpoint was created, modified or deleted. This can be used by the BSC MUX to send a MGCP packet over TCP to the right the BSC to allocate the endpoint there with the right data, or it can be used in the BSC to send the right commands to the BTS.
Diffstat (limited to 'openbsc/include/openbsc/mgcp.h')
-rw-r--r--openbsc/include/openbsc/mgcp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/mgcp.h b/openbsc/include/openbsc/mgcp.h
index 17dd2ec4f..114b39546 100644
--- a/openbsc/include/openbsc/mgcp.h
+++ b/openbsc/include/openbsc/mgcp.h
@@ -52,3 +52,11 @@ 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);
+
+/* endpoint managed */
+#define MGCP_ENDP_CRCX 1
+#define MGCP_ENDP_DLCX 2
+#define MGCP_ENDP_MDCX 3
+
+typedef int (*mgcp_change)(int endpoint, int state, int local_rtp, void *);
+void mgcp_set_change_cb(mgcp_change cb, void *data);