commit | c36f3321b31b446f104203b45a761567e75abf01 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Mon Oct 11 09:31:47 2010 +0200 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Tue Oct 12 15:34:20 2010 +0200 |
tree | c596fb9b555019794f63af0708251d6aae03d7f6 | |
parent | 821e0fc93bcb0b0d23d9d390430630b38ef9558c [diff] |
ussd: Catch up with libosmocore and pass the gsm48_hdr
diff --git a/openbsc/src/ussd.c b/openbsc/src/ussd.c index 19b494f..c9eac13 100644 --- a/openbsc/src/ussd.c +++ b/openbsc/src/ussd.c
@@ -47,9 +47,11 @@ { int rc; struct ussd_request req; + struct gsm48_hdr *gh; memset(&req, 0, sizeof(req)); - rc = gsm0480_decode_ussd_request(msg, &req); + gh = msgb_l3(msg); + rc = gsm0480_decode_ussd_request(gh, msgb_l3len(msg), &req); if (req.text[0] == 0xFF) /* Release-Complete */ return 0;