diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-18 09:53:59 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-10-18 09:54:33 +0200 |
commit | ba482438a05560a534e590078ff5b072e0ebdeb8 (patch) | |
tree | ff33c5571399629deff94c284e0fcffd8314302f | |
parent | 4cc21eaa42bd90928d0b5c1d3f52713a17abdff3 (diff) |
ussd: Catch up with libosmocore and pass the gsm48_hdr
Conflicts:
openbsc/src/ussd.c
-rw-r--r-- | openbsc/src/ussd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/openbsc/src/ussd.c b/openbsc/src/ussd.c index 547691965..3c6521178 100644 --- a/openbsc/src/ussd.c +++ b/openbsc/src/ussd.c @@ -45,8 +45,11 @@ static int send_own_number(const struct msgb *msg, const struct ussd_request *re int handle_rcv_ussd(struct msgb *msg) { struct ussd_request req; + struct gsm48_hdr *gh; - gsm0480_decode_ussd_request(msg, &req); + memset(&req, 0, sizeof(req)); + gh = msgb_l3(msg); + gsm0480_decode_ussd_request(gh, msgb_l3len(msg), &req); if (req.text[0] == 0xFF) /* Release-Complete */ return 0; |