Holger Hans Peter Freyther | 4776571 | 2010-09-30 17:45:12 +0800 | [diff] [blame] | 1 | /* 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 Freyther | de56c22 | 2011-01-16 17:45:14 +0100 | [diff] [blame] | 7 | * 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 Freyther | 4776571 | 2010-09-30 17:45:12 +0800 | [diff] [blame] | 10 | * (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 Freyther | de56c22 | 2011-01-16 17:45:14 +0100 | [diff] [blame] | 15 | * GNU Affero General Public License for more details. |
Holger Hans Peter Freyther | 4776571 | 2010-09-30 17:45:12 +0800 | [diff] [blame] | 16 | * |
Holger Hans Peter Freyther | de56c22 | 2011-01-16 17:45:14 +0100 | [diff] [blame] | 17 | * 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 Freyther | 4776571 | 2010-09-30 17:45:12 +0800 | [diff] [blame] | 19 | * |
| 20 | */ |
| 21 | |
| 22 | #include <bsc_data.h> |
Holger Hans Peter Freyther | 0f349f2 | 2010-10-06 04:39:08 +0800 | [diff] [blame] | 23 | |
| 24 | /* |
| 25 | * Check the msg and identify a Location Updating Request and see if the |
| 26 | * LAC is different to this one and then mark the CR message. |
| 27 | */ |
| 28 | int bsc_ussd_handle_out_msg(struct bsc_data *bsc, struct sccp_parse_result *result, |
| 29 | struct msgb *msg) |
| 30 | { |
| 31 | /* Only search for this in the CR message */ |
| 32 | if (sccp_determine_msg_type(msg) != SCCP_MSG_TYPE_CR) |
| 33 | return 0; |
| 34 | |
| 35 | /* now check the kind of GSM message */ |
| 36 | |
| 37 | return 0; |
| 38 | } |
Holger Hans Peter Freyther | dfcf2df | 2010-10-06 06:20:35 +0800 | [diff] [blame] | 39 | |
| 40 | /* |
| 41 | * Check the message if it contains a location update request... |
| 42 | */ |
Holger Hans Peter Freyther | 5228069 | 2010-10-06 16:09:25 +0800 | [diff] [blame] | 43 | int bsc_ussd_handle_in_msg(struct bsc_data *bsc, struct sccp_parse_result *res, |
Holger Hans Peter Freyther | dfcf2df | 2010-10-06 06:20:35 +0800 | [diff] [blame] | 44 | struct msgb *msg) |
| 45 | { |
| 46 | return 0; |
| 47 | } |