aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_data.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-03-25 04:58:08 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-03-25 04:58:08 +0100
commitaebea482f54a97deaca8688c79af3809a756240c (patch)
treeee1df27e820e16e8eb4f2fefca05cb136777486a /openbsc/src/gsm_data.c
parent12f20d369c6bba0dfe61e433c14d220b9c43febd (diff)
channel request: Store the to be assigned channel type in the GSM Network
Store the mapping from request to channel type in the GSM Network struct as there is some policy involved with handling the request. E.g. in a half rate network we don't want emergy calls to be getting a TCH/F, or we want to have a different policy for early/late assignment of phone calls. Update the table when creating the network and when the neci is changed.
Diffstat (limited to 'openbsc/src/gsm_data.c')
-rw-r--r--openbsc/src/gsm_data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/gsm_data.c b/openbsc/src/gsm_data.c
index c4d0431a3..5efebc208 100644
--- a/openbsc/src/gsm_data.c
+++ b/openbsc/src/gsm_data.c
@@ -296,6 +296,8 @@ struct gsm_network *gsm_network_init(u_int16_t country_code, u_int16_t network_c
net->mncc_recv = mncc_recv;
+ gsm_net_update_ctype(net);
+
net->core_country_code = -1;
net->core_network_code = -1;
net->rtp_base_port = 4000;