From 98a3877e979c9e901a7adc6946904a5d535cb93f Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 3 Aug 2010 02:27:21 +0800 Subject: mgcp: Implement the "loopback" mode for a connection endpoint. --- openbsc/include/openbsc/mgcp_internal.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'openbsc/include') diff --git a/openbsc/include/openbsc/mgcp_internal.h b/openbsc/include/openbsc/mgcp_internal.h index 918ba4b2f..a17dc9e45 100644 --- a/openbsc/include/openbsc/mgcp_internal.h +++ b/openbsc/include/openbsc/mgcp_internal.h @@ -28,6 +28,15 @@ #define CI_UNUSED 0 +enum mgcp_connection_mode { + MGCP_CONN_NONE = 0, + MGCP_CONN_RECV_ONLY = 1, + MGCP_CONN_SEND_ONLY = 2, + MGCP_CONN_RECV_SEND = MGCP_CONN_RECV_ONLY | MGCP_CONN_SEND_ONLY, + MGCP_CONN_LOOPBACK = 4, +}; + + struct mgcp_endpoint { int ci; char *callid; -- cgit v1.2.3