diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-10-16 08:32:58 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-10-26 20:39:25 +0100 |
commit | 6eafe9137ca345078531fc607a461f397faa505b (patch) | |
tree | 0d923eca102bd5bdffa9d8c78ddb9c21398374cf /openbsc/src/gsm_04_08.c | |
parent | 143f1f56d94804fdfdd3302aa65cdc14f0b955e9 (diff) |
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.
Diffstat (limited to 'openbsc/src/gsm_04_08.c')
-rw-r--r-- | openbsc/src/gsm_04_08.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <openbsc/rtp_proxy.h> #include <openbsc/talloc.h> #include <openbsc/transaction.h> +#include <openbsc/ussd.h> #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); |