ussd: Catch up with libosmocore and pass the gsm48_hdr

This commit is contained in:
Holger Hans Peter Freyther 2010-10-11 09:31:47 +02:00
parent daa0fe7637
commit 88a5fa0a75
1 changed files with 3 additions and 1 deletions

View File

@ -47,9 +47,11 @@ int handle_rcv_ussd(struct gsm_subscriber_connection *conn, struct msgb *msg)
{
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;