From 2486663844ab755fa52ea2c39c90d9e78645afc2 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 30 Jun 2010 12:15:19 +0800 Subject: ussd: Release the MSC connection as fast as possible.. --- openbsc/src/ussd.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/openbsc/src/ussd.c b/openbsc/src/ussd.c index 692df5bae..3c27646f2 100644 --- a/openbsc/src/ussd.c +++ b/openbsc/src/ussd.c @@ -54,11 +54,15 @@ int handle_rcv_ussd(struct gsm_subscriber_connection *conn, struct msgb *msg) 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 */ -- cgit v1.2.3