commit | 88a5fa0a7536138424bad775b1bff083fa9a1c4f | [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 | daa0fe76377a67ce4131e94ab405775e8edb9a79 [diff] [blame] |
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;