From 6eafe9137ca345078531fc607a461f397faa505b Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 16 Oct 2009 08:32:58 +0200 Subject: Add USDD code from Mike Haben This is the initial checkin of the USSD code from Mike Haben. I didn't put it in the main branch as I think it still needs some cleanup. --- openbsc/src/gsm_04_08.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'openbsc/src/gsm_04_08.c') diff --git a/openbsc/src/gsm_04_08.c b/openbsc/src/gsm_04_08.c index cd883a3fa..23739657d 100644 --- a/openbsc/src/gsm_04_08.c +++ b/openbsc/src/gsm_04_08.c @@ -48,6 +48,7 @@ #include #include #include +#include #define GSM_MAX_FACILITY 128 #define GSM_MAX_SSVERSION 128 @@ -3540,10 +3541,12 @@ int gsm0408_rcvmsg(struct msgb *msg, u_int8_t link_id) break; case GSM48_PDISC_MM_GPRS: case GSM48_PDISC_SM_GPRS: - case GSM48_PDISC_NC_SS: /* mobile-originated USSD */ fprintf(stderr, "Unimplemented GSM 04.08 discriminator 0x%02x\n", pdisc); break; + case GSM48_PDISC_NC_SS: + rc = handle_rcv_ussd(msg); + break; default: fprintf(stderr, "Unknown GSM 04.08 discriminator 0x%02x\n", pdisc); -- cgit v1.2.3