blob: ccb6c6f95b8415a8d08d02d44d4c92089fdf2a0c [file] [log] [blame]
Holger Hans Peter Freyther47765712010-09-30 17:45:12 +08001/* A USSD Module */
2/*
3 * (C) 2010 by Holger Hans Peter Freyther <zecke@selfish.org>
4 * (C) 2010 by On-Waves
5 * All Rights Reserved
6 *
Holger Hans Peter Freytherde56c222011-01-16 17:45:14 +01007 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Affero General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
Holger Hans Peter Freyther47765712010-09-30 17:45:12 +080010 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Holger Hans Peter Freytherde56c222011-01-16 17:45:14 +010015 * GNU Affero General Public License for more details.
Holger Hans Peter Freyther47765712010-09-30 17:45:12 +080016 *
Holger Hans Peter Freytherde56c222011-01-16 17:45:14 +010017 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
Holger Hans Peter Freyther47765712010-09-30 17:45:12 +080019 *
20 */
21
22#include <bsc_data.h>
Holger Hans Peter Freyther289436f2011-02-16 23:08:29 +010023#include <bsc_sccp.h>
Holger Hans Peter Freyther0f349f22010-10-06 04:39:08 +080024
25/*
26 * Check the msg and identify a Location Updating Request and see if the
27 * LAC is different to this one and then mark the CR message.
28 */
Holger Hans Peter Freyther84ec8712011-02-15 20:01:47 +010029int bsc_ussd_handle_out_msg(struct msc_connection *msc, struct sccp_parse_result *result,
Holger Hans Peter Freyther0f349f22010-10-06 04:39:08 +080030 struct msgb *msg)
31{
32 /* Only search for this in the CR message */
33 if (sccp_determine_msg_type(msg) != SCCP_MSG_TYPE_CR)
34 return 0;
35
36 /* now check the kind of GSM message */
37
38 return 0;
39}
Holger Hans Peter Freytherdfcf2df2010-10-06 06:20:35 +080040
41/*
42 * Check the message if it contains a location update request...
43 */
Holger Hans Peter Freyther84ec8712011-02-15 20:01:47 +010044int bsc_ussd_handle_in_msg(struct msc_connection *msc, struct sccp_parse_result *res,
Holger Hans Peter Freytherdfcf2df2010-10-06 06:20:35 +080045 struct msgb *msg)
46{
47 return 0;
48}