From aebea482f54a97deaca8688c79af3809a756240c Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 25 Mar 2010 04:58:08 +0100 Subject: 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. --- openbsc/src/gsm_data.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbsc/src/gsm_data.c') 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; -- cgit v1.2.3