diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2023-06-21 15:03:37 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2023-07-17 12:29:42 +0000 |
commit | cd605f30b788ce1c5ad55ce650a830b8f9830dfe (patch) | |
tree | 825cb6e46b6e06a156fc6b976543e98e76e2b3f5 /include | |
parent | 429ab7bb97606db8285c25c29b9dbd3f671b6c23 (diff) |
ASCI: Add simple implementation of Group Call Register
This is a built-in data structure to store and handle voice group calls.
The GCR will be used by VGCS/VBS call control.
(Chg-Id: I9947403fde8212b66758104443c60aaacc8b1e7b)
The GCR will be used by VTY code.
(Chg-Id: I5bd034a62fc8b483f550d29103c2f7587198f590)
Change-Id: Ia74a4a865f943c5fb388cd28f9406005c92e663e
Related: OS#4854
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/msc/Makefile.am | 1 | ||||
-rw-r--r-- | include/osmocom/msc/asci_gcr.h | 55 | ||||
-rw-r--r-- | include/osmocom/msc/gsm_data.h | 5 |
3 files changed, 61 insertions, 0 deletions
diff --git a/include/osmocom/msc/Makefile.am b/include/osmocom/msc/Makefile.am index 3286c3770..3c54dee5b 100644 --- a/include/osmocom/msc/Makefile.am +++ b/include/osmocom/msc/Makefile.am @@ -55,4 +55,5 @@ noinst_HEADERS = \ vlr.h \ vlr_sgs.h \ vty.h \ + asci_gcr.h \ $(NULL) diff --git a/include/osmocom/msc/asci_gcr.h b/include/osmocom/msc/asci_gcr.h new file mode 100644 index 000000000..f2160c1e0 --- /dev/null +++ b/include/osmocom/msc/asci_gcr.h @@ -0,0 +1,55 @@ +/* Group Call Register (GCR) */ +/* + * (C) 2023 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de> + * All Rights Reserved + * + * SPDX-License-Identifier: AGPL-3.0+ + * + * Author: Andreas Eversberg + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + */ +#pragma once + +/* Group Call Register */ +struct gcr { + struct llist_head list; + enum trans_type trans_type; + char group_id[9]; + uint16_t timeout; + bool mute_talker; + struct llist_head bss_list; +}; + +struct gcr_bss { + struct llist_head list; + int pc; + struct llist_head cell_list; +}; + +struct gcr_cell { + struct llist_head list; + uint16_t cell_id; +}; + +struct gcr_cell *gcr_add_cell(struct gcr_bss *bss, uint16_t cell_id); +struct gcr_cell *gcr_find_cell(struct gcr_bss *bss, uint16_t cell_id); +void gcr_rm_cell(struct gcr_bss *bss, uint16_t cell_id); +struct gcr_bss *gcr_add_bss(struct gcr *gcr, int pc); +struct gcr_bss *gcr_find_bss(struct gcr *gcr, int pc); +void gcr_rm_bss(struct gcr *gcr, int pc); +struct gcr *gcr_create(struct gsm_network *gsmnet, enum trans_type trans_type, const char *group_id); +void gcr_destroy(struct gcr *gcr); +struct gcr *gcr_by_group_id(struct gsm_network *gsmnet, enum trans_type trans_type, const char *group_id); +struct gcr *gcr_by_callref(struct gsm_network *gsmnet, enum trans_type trans_type, uint32_t callref); diff --git a/include/osmocom/msc/gsm_data.h b/include/osmocom/msc/gsm_data.h index 2be4c351d..6c0dac9c0 100644 --- a/include/osmocom/msc/gsm_data.h +++ b/include/osmocom/msc/gsm_data.h @@ -269,6 +269,11 @@ struct gsm_network { /* SMS queue config parameters */ struct sms_queue_config *sms_queue_cfg; + + /* ASCI feature support */ + struct { + struct llist_head gcr_lists; + } asci; }; struct smpp_esme; |