Oliver Smith | 5375f78 | 2023-05-23 13:38:33 +0200 | [diff] [blame] | 1 | /* Filter/overlay codec and CSD bearer service selections for voice calls/CSD, |
| 2 | * across MS, RAN and CN limitations |
| 3 | * |
| 4 | * (C) 2023 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de> |
| 5 | * All Rights Reserved |
| 6 | * |
| 7 | * Author: Oliver Smith |
| 8 | * |
| 9 | * SPDX-License-Identifier: AGPL-3.0+ |
| 10 | * |
| 11 | * This program is free software; you can redistribute it and/or modify |
| 12 | * it under the terms of the GNU Affero General Public License as published by |
| 13 | * the Free Software Foundation; either version 3 of the License, or |
| 14 | * (at your option) any later version. |
| 15 | * |
| 16 | * This program is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU Affero General Public License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU Affero General Public License |
| 22 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 23 | */ |
| 24 | |
| 25 | #pragma once |
| 26 | |
| 27 | #include <osmocom/gsm/mncc.h> |
| 28 | |
| 29 | #include <osmocom/msc/codec_mapping.h> |
| 30 | #include <osmocom/msc/transaction.h> |
Alexander Couzens | eff28ab | 2024-09-12 00:55:25 +0200 | [diff] [blame^] | 31 | #include <osmocom/vlr/vlr.h> |
Oliver Smith | 5375f78 | 2023-05-23 13:38:33 +0200 | [diff] [blame] | 32 | |
Oliver Smith | a35abb7 | 2023-05-23 17:29:57 +0200 | [diff] [blame] | 33 | void trans_cc_filter_init(struct gsm_trans *trans); |
Oliver Smith | c7c40c9 | 2023-05-23 17:43:40 +0200 | [diff] [blame] | 34 | void trans_cc_filter_set_ran(struct gsm_trans *trans, enum osmo_rat_type ran_type); |
Oliver Smith | 1c7f178 | 2023-05-23 17:58:26 +0200 | [diff] [blame] | 35 | void trans_cc_filter_set_bss(struct gsm_trans *trans, struct msc_a *msc_a); |
Neels Hofmeyr | 100f8f9 | 2024-02-05 05:14:35 +0100 | [diff] [blame] | 36 | #define trans_cc_filter_run(TRANS_CC) _trans_cc_filter_run(__FILE__, __LINE__, TRANS_CC) |
| 37 | void _trans_cc_filter_run(const char *file, int line, struct gsm_trans *trans); |
Oliver Smith | 5375f78 | 2023-05-23 13:38:33 +0200 | [diff] [blame] | 38 | void trans_cc_filter_set_ms_from_bc(struct gsm_trans *trans, const struct gsm_mncc_bearer_cap *bcap); |
Oliver Smith | 8a8ce71 | 2023-05-31 16:56:52 +0200 | [diff] [blame] | 39 | void trans_cc_set_remote_from_bc(struct gsm_trans *trans, const struct gsm_mncc_bearer_cap *bcap); |