aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/net_init.c
diff options
context:
space:
mode:
authorIvan Kluchnikov <kluchnikovi@gmail.com>2015-07-21 11:40:08 +0300
committerIvan Kluchnikov <kluchnikovi@gmail.com>2015-07-22 21:32:10 +0300
commit85439534961c34f620117979d658bdbb760bafb3 (patch)
tree1e3aaa5d50a689d03590c8533d3a1b8a5c5ddf1b /openbsc/src/libbsc/net_init.c
parent3cc7d2b50d8e6d8834135adbb984c90500cacaae (diff)
sub: Add the ability to set prefix for randomly generated extensions
Prefix is added before randomly generated extension. Prefix is useful in case of "accept-all" authentication mode is used and routing based on number prefix is used. Added optional configuration parameter "extension-prefix".
Diffstat (limited to 'openbsc/src/libbsc/net_init.c')
-rw-r--r--openbsc/src/libbsc/net_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/net_init.c b/openbsc/src/libbsc/net_init.c
index 568a0b85e..16e8146a7 100644
--- a/openbsc/src/libbsc/net_init.c
+++ b/openbsc/src/libbsc/net_init.c
@@ -49,6 +49,7 @@ struct gsm_network *gsm_network_init(uint16_t country_code, uint16_t network_cod
net->subscr_group->net = net;
net->create_subscriber = 1;
+ net->exten_prefix = 0;
net->country_code = country_code;
net->network_code = network_code;