ussd: Release the MSC connection as fast as possible..
diff --git a/openbsc/src/ussd.c b/openbsc/src/ussd.c
index 692df5b..3c27646 100644
--- a/openbsc/src/ussd.c
+++ b/openbsc/src/ussd.c
@@ -54,11 +54,15 @@
if (strstr(USSD_TEXT_OWN_NUMBER, req.text) != NULL) {
DEBUGP(DMM, "USSD: Own number requested\n");
- return send_own_number(conn, msg, &req);
+ rc = send_own_number(conn, msg, &req);
} else {
DEBUGP(DMM, "Unhandled USSD %s\n", req.text);
- return gsm0480_send_ussd_reject(conn, msg, &req);
+ rc = gsm0480_send_ussd_reject(conn, msg, &req);
}
+
+ /* check if we can release it */
+ msc_release_connection(conn);
+ return rc;
}
/* A network-specific handler function */