aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-18 20:21:44 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-20 02:49:09 +0800
commite02860af0011e968dd21c33fa65aee8e106dab7e (patch)
treec10e5cef389acec396a9a47895a417fc0689bbcf
parent0e940e65c7d81ce76f3f7d2d21f2ad34ba019836 (diff)
mgcp: Be able to parse 'sendonly' for the connection mode.
-rw-r--r--openbsc/src/mgcp/mgcp_protocol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/mgcp/mgcp_protocol.c b/openbsc/src/mgcp/mgcp_protocol.c
index a53753b0..943fd0b6 100644
--- a/openbsc/src/mgcp/mgcp_protocol.c
+++ b/openbsc/src/mgcp/mgcp_protocol.c
@@ -360,6 +360,8 @@ static int parse_conn_mode(const char *msg, int *conn_mode)
*conn_mode = MGCP_CONN_RECV_ONLY;
else if (strcmp(msg, "sendrecv") == 0)
*conn_mode = MGCP_CONN_RECV_SEND;
+ else if (strcmp(msg, "sendonly") == 0)
+ *conn_mode = MGCP_CONN_SEND_ONLY;
else if (strcmp(msg, "loopback") == 0)
*conn_mode = MGCP_CONN_LOOPBACK;
else {