summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-12-26 06:49:00 +0100
committerthe 34c3 gsm team <34c3-gsm@congress>2017-12-27 17:14:12 +0100
commit477eb9f6d47010158c0de050929e291e077cf32d (patch)
tree8b34c5d55534773f95469f13164d2264c4d880ea /src
parent78b3522068edd8a628341243834ff1f907b538a2 (diff)
check at least if bearer cap are present
Diffstat (limited to 'src')
-rw-r--r--src/mncc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mncc.c b/src/mncc.c
index 486477b..ffc6223 100644
--- a/src/mncc.c
+++ b/src/mncc.c
@@ -485,6 +485,14 @@ static void check_setup(struct mncc_connection *conn, char *buf, int rc)
}
/* TODO.. bearer caps and better audio handling */
+ if ((data->fieds & MNCC_F_BEARER_CAP) == 0) {
+ LOGP(DMNCC, LOGL_ERROR,
+ "MNCC leg(%u) without bearrer cap fields(%u)\n",
+ data->callref, data->fields);
+ return mncc_send(conn, MNCC_REJ_REQ, data->callref);
+ }
+ /* parse bearer -> move to function */
+
if (!continue_setup(conn, data)) {
LOGP(DMNCC, LOGL_ERROR,
"MNCC screening parameters failed leg(%u)\n", data->callref);