blob: 9688de3f891216e9ccf93255a291cf822c48d6fb [file] [log] [blame]
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +08001/* OpenBSC NAT interface to quagga VTY */
2/* (C) 2010 by Holger Hans Peter Freyther
3 * (C) 2010 by On-Waves
4 * All Rights Reserved
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 *
20 */
21
22#include <vty/command.h>
23#include <vty/buffer.h>
24#include <vty/vty.h>
25
26#include <openbsc/bsc_nat.h>
Holger Hans Peter Freytheraad82ce2010-05-11 19:07:39 +080027#include <openbsc/bsc_msc.h>
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +080028#include <openbsc/gsm_04_08.h>
Holger Hans Peter Freytherf7d33352010-06-15 18:50:26 +080029#include <openbsc/mgcp.h>
Holger Hans Peter Freyther5f291d52010-04-06 12:01:15 +020030#include <openbsc/vty.h>
Holger Hans Peter Freyther6c45f2e2010-06-15 19:06:18 +080031
32#include <osmocore/talloc.h>
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +080033
34#include <sccp/sccp.h>
35
36#include <stdlib.h>
37
38static struct bsc_nat *_nat;
39
40static struct cmd_node nat_node = {
41 NAT_NODE,
42 "%s(nat)#",
43 1,
44};
45
46static struct cmd_node bsc_node = {
47 BSC_NODE,
48 "%s(bsc)#",
49 1,
50};
51
52static int config_write_nat(struct vty *vty)
53{
54 vty_out(vty, "nat%s", VTY_NEWLINE);
Holger Hans Peter Freytherc16cf272010-04-13 09:24:37 +020055 if (_nat->imsi_allow)
56 vty_out(vty, " imsi allow %s%s", _nat->imsi_allow, VTY_NEWLINE);
57 if (_nat->imsi_deny)
58 vty_out(vty, " insi deny %s%s", _nat->imsi_deny, VTY_NEWLINE);
Holger Hans Peter Freythera88742c2010-06-15 18:51:04 +080059 vty_out(vty, " msc ip %s%s", _nat->msc_ip, VTY_NEWLINE);
Holger Hans Peter Freyther81395532010-04-17 07:48:45 +020060 vty_out(vty, " msc port %d%s", _nat->msc_port, VTY_NEWLINE);
Holger Hans Peter Freytherda35a8d2010-05-05 16:57:38 +080061 vty_out(vty, " timeout auth %d%s", _nat->auth_timeout, VTY_NEWLINE);
62 vty_out(vty, " timeout ping %d%s", _nat->ping_timeout, VTY_NEWLINE);
63 vty_out(vty, " timeout pong %d%s", _nat->pong_timeout, VTY_NEWLINE);
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +080064 return CMD_SUCCESS;
65}
66
67static void config_write_bsc_single(struct vty *vty, struct bsc_config *bsc)
68{
69 vty_out(vty, " bsc %u%s", bsc->nr, VTY_NEWLINE);
70 vty_out(vty, " token %s%s", bsc->token, VTY_NEWLINE);
Holger Hans Peter Freytherd1278c12010-04-16 16:52:20 +020071 vty_out(vty, " location_area_code %u%s", bsc->lac, VTY_NEWLINE);
Holger Hans Peter Freytherc16cf272010-04-13 09:24:37 +020072 if (bsc->imsi_allow)
73 vty_out(vty, " imsi allow %s%s", bsc->imsi_allow, VTY_NEWLINE);
74 if (bsc->imsi_deny)
75 vty_out(vty, " imsi deny %s%s", bsc->imsi_deny, VTY_NEWLINE);
Holger Hans Peter Freyther62e58432010-04-21 19:05:14 +080076 vty_out(vty, " paging forbidden %d%s", bsc->forbid_paging, VTY_NEWLINE);
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +080077}
78
79static int config_write_bsc(struct vty *vty)
80{
81 struct bsc_config *bsc;
82
83 llist_for_each_entry(bsc, &_nat->bsc_configs, entry)
84 config_write_bsc_single(vty, bsc);
85 return CMD_SUCCESS;
86}
87
88
Holger Hans Peter Freyther01a0b1b2010-04-19 16:06:43 +080089DEFUN(show_sccp, show_sccp_cmd, "show sccp connections",
90 SHOW_STR "Display information about current SCCP connections")
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +080091{
92 struct sccp_connections *con;
Holger Hans Peter Freytherb9af2fa2010-04-27 15:35:14 +080093 vty_out(vty, "Listing all opening SCCP connections%s", VTY_NEWLINE);
Holger Hans Peter Freyther4bd22942010-04-27 13:11:18 +080094
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +080095 llist_for_each_entry(con, &_nat->sccp_connections, list_entry) {
Holger Hans Peter Freyther4bd22942010-04-27 13:11:18 +080096 vty_out(vty, "For BSC Nr: %d lac: %d; BSC ref: 0x%x; MUX ref: 0x%x; Network has ref: %d ref: 0x%x MSC/BSC mux: 0x%x/0x%x%s",
Holger Hans Peter Freyther47dd4942010-04-06 15:11:34 +020097 con->bsc->cfg ? con->bsc->cfg->nr : -1,
98 con->bsc->cfg ? con->bsc->cfg->lac : -1,
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +080099 sccp_src_ref_to_int(&con->real_ref),
Holger Hans Peter Freyther32d34362010-04-05 10:10:33 +0200100 sccp_src_ref_to_int(&con->patched_ref),
Holger Hans Peter Freyther4bd22942010-04-27 13:11:18 +0800101 con->has_remote_ref,
102 sccp_src_ref_to_int(&con->remote_ref),
Holger Hans Peter Freyther32d34362010-04-05 10:10:33 +0200103 con->msc_timeslot, con->bsc_timeslot,
104 VTY_NEWLINE);
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800105 }
106
107 return CMD_SUCCESS;
108}
109
Holger Hans Peter Freyther01a0b1b2010-04-19 16:06:43 +0800110DEFUN(show_bsc, show_bsc_cmd, "show bsc connections",
111 SHOW_STR "Display information about current BSCs")
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800112{
113 struct bsc_connection *con;
Holger Hans Peter Freyther870663a2010-04-08 10:35:20 +0200114 struct sockaddr_in sock;
115 socklen_t len = sizeof(sock);
116
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800117 llist_for_each_entry(con, &_nat->bsc_connections, list_entry) {
Holger Hans Peter Freyther870663a2010-04-08 10:35:20 +0200118 getpeername(con->write_queue.bfd.fd, (struct sockaddr *) &sock, &len);
Holger Hans Peter Freyther3b879812010-05-01 15:32:32 +0800119 vty_out(vty, "BSC nr: %d lac: %d auth: %d fd: %d peername: %s%s",
Holger Hans Peter Freyther47dd4942010-04-06 15:11:34 +0200120 con->cfg ? con->cfg->nr : -1,
121 con->cfg ? con->cfg->lac : -1,
Holger Hans Peter Freyther870663a2010-04-08 10:35:20 +0200122 con->authenticated, con->write_queue.bfd.fd,
123 inet_ntoa(sock.sin_addr), VTY_NEWLINE);
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800124 }
125
126 return CMD_SUCCESS;
127}
128
Holger Hans Peter Freytherab7539c2010-04-22 13:36:46 +0800129DEFUN(show_bsc_cfg, show_bsc_cfg_cmd, "show bsc config",
130 SHOW_STR "Display information about known BSC configs")
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800131{
132 struct bsc_config *conf;
133 llist_for_each_entry(conf, &_nat->bsc_configs, entry) {
134 vty_out(vty, "BSC token: '%s' lac: %u nr: %u%s",
135 conf->token, conf->lac, conf->nr, VTY_NEWLINE);
Holger Hans Peter Freytherc16cf272010-04-13 09:24:37 +0200136 vty_out(vty, " imsi_allow: '%s' imsi_deny: '%s'%s",
137 conf->imsi_allow ? conf->imsi_allow: "any",
138 conf->imsi_deny ? conf->imsi_deny : "none",
139 VTY_NEWLINE);
Holger Hans Peter Freyther62e58432010-04-21 19:05:14 +0800140 vty_out(vty, " paging forbidden: %d%s",
141 conf->forbid_paging, VTY_NEWLINE);
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800142 }
143
144 return CMD_SUCCESS;
145}
146
Holger Hans Peter Freytherbcfebb22010-04-12 12:33:27 +0200147DEFUN(show_stats,
148 show_stats_cmd,
Holger Hans Peter Freyther314191d2010-05-02 18:59:24 +0800149 "show statistics [NR]",
Holger Hans Peter Freytherb9af2fa2010-04-27 15:35:14 +0800150 SHOW_STR "Display network statistics")
Holger Hans Peter Freytherbcfebb22010-04-12 12:33:27 +0200151{
152 struct bsc_config *conf;
153
Holger Hans Peter Freyther314191d2010-05-02 18:59:24 +0800154 int nr = -1;
155
156 if (argc == 1)
157 nr = atoi(argv[0]);
158
Holger Hans Peter Freytherbcfebb22010-04-12 12:33:27 +0200159 vty_out(vty, "NAT statistics%s", VTY_NEWLINE);
160 vty_out(vty, " SCCP Connections %lu total, %lu calls%s",
161 counter_get(_nat->stats.sccp.conn),
162 counter_get(_nat->stats.sccp.calls), VTY_NEWLINE);
163 vty_out(vty, " MSC Connections %lu%s",
164 counter_get(_nat->stats.msc.reconn), VTY_NEWLINE);
165 vty_out(vty, " BSC Connections %lu total, %lu auth failed.%s",
166 counter_get(_nat->stats.bsc.reconn),
167 counter_get(_nat->stats.bsc.auth_fail), VTY_NEWLINE);
168
169 llist_for_each_entry(conf, &_nat->bsc_configs, entry) {
Holger Hans Peter Freyther314191d2010-05-02 18:59:24 +0800170 if (argc == 1 && nr != conf->nr)
171 continue;
172
Holger Hans Peter Freytherbcfebb22010-04-12 12:33:27 +0200173 vty_out(vty, " BSC lac: %d nr: %d%s",
174 conf->lac, conf->nr, VTY_NEWLINE);
175 vty_out(vty, " SCCP Connnections %lu total, %lu calls%s",
176 counter_get(conf->stats.sccp.conn),
177 counter_get(conf->stats.sccp.calls), VTY_NEWLINE);
178 vty_out(vty, " BSC Connections %lu total%s",
179 counter_get(conf->stats.net.reconn), VTY_NEWLINE);
180 }
181
182 return CMD_SUCCESS;
183}
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800184
Holger Hans Peter Freytheraad82ce2010-05-11 19:07:39 +0800185DEFUN(show_msc,
186 show_msc_cmd,
187 "show msc connection",
188 SHOW_STR "Show the status of the MSC connection.")
189{
190 if (!_nat->msc_con) {
191 vty_out(vty, "The MSC is not yet configured.\n");
192 return CMD_WARNING;
193 }
194
195 vty_out(vty, "MSC on %s:%d is connected: %d%s\n",
196 _nat->msc_con->ip, _nat->msc_con->port,
197 _nat->msc_con->is_connected, VTY_NEWLINE);
198 return CMD_SUCCESS;
199}
200
Holger Hans Peter Freyther2f9dcf02010-04-27 13:21:39 +0800201DEFUN(close_bsc,
202 close_bsc_cmd,
203 "close bsc connection BSC_NR",
Holger Hans Peter Freytherb9af2fa2010-04-27 15:35:14 +0800204 "Close the connection with the BSC identified by the config number.")
Holger Hans Peter Freyther2f9dcf02010-04-27 13:21:39 +0800205{
206 struct bsc_connection *bsc;
207 int bsc_nr = atoi(argv[0]);
208
209 llist_for_each_entry(bsc, &_nat->bsc_connections, list_entry) {
210 if (!bsc->cfg || bsc->cfg->nr != bsc_nr)
211 continue;
212 bsc_close_connection(bsc);
213 break;
214 }
215
216 return CMD_SUCCESS;
217}
218
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800219DEFUN(cfg_nat, cfg_nat_cmd, "nat", "Configute the NAT")
220{
221 vty->index = _nat;
222 vty->node = NAT_NODE;
223
224 return CMD_SUCCESS;
225}
226
Holger Hans Peter Freytherc16cf272010-04-13 09:24:37 +0200227DEFUN(cfg_nat_imsi_allow,
228 cfg_nat_imsi_allow_cmd,
229 "imsi allow [REGEXP]",
230 "Allow matching IMSIs to talk to the MSC. "
231 "The defualt is to allow everyone.")
232{
Holger Hans Peter Freyther12dc89a2010-05-14 18:38:29 +0800233 bsc_parse_reg(_nat, &_nat->imsi_allow_re, &_nat->imsi_allow, argc, argv);
Holger Hans Peter Freytherc16cf272010-04-13 09:24:37 +0200234 return CMD_SUCCESS;
235}
236
237DEFUN(cfg_nat_imsi_deny,
238 cfg_nat_imsi_deny_cmd,
239 "imsi deny [REGEXP]",
240 "Deny matching IMSIs to talk to the MSC. "
241 "The defualt is to not deny.")
242{
Holger Hans Peter Freyther12dc89a2010-05-14 18:38:29 +0800243 bsc_parse_reg(_nat, &_nat->imsi_deny_re, &_nat->imsi_deny, argc, argv);
Holger Hans Peter Freytherc16cf272010-04-13 09:24:37 +0200244 return CMD_SUCCESS;
245}
246
Holger Hans Peter Freythera88742c2010-06-15 18:51:04 +0800247DEFUN(cfg_nat_msc_ip,
248 cfg_nat_msc_ip_cmd,
Holger Hans Peter Freytherd8b82062010-05-14 02:36:42 +0800249 "msc ip A.B.C.D",
Holger Hans Peter Freythera88742c2010-06-15 18:51:04 +0800250 "Set the IP address of the MSC.")
251{
252 bsc_nat_set_msc_ip(_nat, argv[0]);
253 return CMD_SUCCESS;
254}
255
Holger Hans Peter Freyther81395532010-04-17 07:48:45 +0200256DEFUN(cfg_nat_msc_port,
257 cfg_nat_msc_port_cmd,
258 "msc port <1-65500>",
259 "Set the port of the MSC.")
260{
261 _nat->msc_port = atoi(argv[0]);
262 return CMD_SUCCESS;
263}
264
Holger Hans Peter Freytherda35a8d2010-05-05 16:57:38 +0800265DEFUN(cfg_nat_auth_time,
266 cfg_nat_auth_time_cmd,
267 "timeout auth <1-256>",
268 "The time to wait for an auth response.")
269{
270 _nat->auth_timeout = atoi(argv[0]);
271 return CMD_SUCCESS;
272}
273
274DEFUN(cfg_nat_ping_time,
275 cfg_nat_ping_time_cmd,
276 "timeout ping NR",
277 "Send a ping every NR seconds. Negative to disable.")
278{
279 _nat->ping_timeout = atoi(argv[0]);
280 return CMD_SUCCESS;
281}
282
283DEFUN(cfg_nat_pong_time,
284 cfg_nat_pong_time_cmd,
285 "timeout pong NR",
286 "Wait NR seconds for the PONG response. Should be smaller than ping.")
287{
288 _nat->pong_timeout = atoi(argv[0]);
289 return CMD_SUCCESS;
290}
291
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800292/* per BSC configuration */
Holger Hans Peter Freytherb9af2fa2010-04-27 15:35:14 +0800293DEFUN(cfg_bsc, cfg_bsc_cmd, "bsc BSC_NR", "Select a BSC to configure")
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800294{
295 int bsc_nr = atoi(argv[0]);
296 struct bsc_config *bsc;
297
298 if (bsc_nr > _nat->num_bsc) {
299 vty_out(vty, "%% The next unused BSC number is %u%s",
300 _nat->num_bsc, VTY_NEWLINE);
301 return CMD_WARNING;
302 } else if (bsc_nr == _nat->num_bsc) {
303 /* allocate a new one */
304 bsc = bsc_config_alloc(_nat, "unknown", 0);
305 } else
306 bsc = bsc_config_num(_nat, bsc_nr);
307
308 if (!bsc)
309 return CMD_WARNING;
310
311 vty->index = bsc;
312 vty->node = BSC_NODE;
313
314 return CMD_SUCCESS;
315}
316
317DEFUN(cfg_bsc_token, cfg_bsc_token_cmd, "token TOKEN", "Set the token")
318{
319 struct bsc_config *conf = vty->index;
320
321 if (conf->token)
322 talloc_free(conf->token);
323 conf->token = talloc_strdup(conf, argv[0]);
324 return CMD_SUCCESS;
325}
326
327DEFUN(cfg_bsc_lac, cfg_bsc_lac_cmd, "location_area_code <0-65535>",
Holger Hans Peter Freytherb9af2fa2010-04-27 15:35:14 +0800328 "Set the Location Area Code (LAC) of this BSC")
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800329{
Holger Hans Peter Freyther39ee8772010-03-30 06:08:56 +0200330 struct bsc_config *tmp;
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800331 struct bsc_config *conf = vty->index;
332
333 int lac = atoi(argv[0]);
334
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800335 if (lac == GSM_LAC_RESERVED_DETACHED || lac == GSM_LAC_RESERVED_ALL_BTS) {
336 vty_out(vty, "%% LAC %d is reserved by GSM 04.08%s",
337 lac, VTY_NEWLINE);
338 return CMD_WARNING;
339 }
340
Holger Hans Peter Freyther39ee8772010-03-30 06:08:56 +0200341 /* verify that the LACs are unique */
342 llist_for_each_entry(tmp, &_nat->bsc_configs, entry) {
343 if (tmp->lac == lac) {
344 vty_out(vty, "%% LAC %d is already used.%s", lac, VTY_NEWLINE);
345 return CMD_ERR_INCOMPLETE;
346 }
347 }
348
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800349 conf->lac = lac;
350
351 return CMD_SUCCESS;
352}
353
Holger Hans Peter Freytherc16cf272010-04-13 09:24:37 +0200354DEFUN(cfg_bsc_imsi_allow,
355 cfg_bsc_imsi_allow_cmd,
356 "imsi allow [REGEXP]",
357 "Allow IMSIs with the following network to talk to the MSC."
358 "The default is to allow everyone)")
359{
360 struct bsc_config *conf = vty->index;
361
Holger Hans Peter Freyther12dc89a2010-05-14 18:38:29 +0800362 bsc_parse_reg(conf, &conf->imsi_allow_re, &conf->imsi_allow, argc, argv);
Holger Hans Peter Freytherc16cf272010-04-13 09:24:37 +0200363 return CMD_SUCCESS;
364}
365
366DEFUN(cfg_bsc_imsi_deny,
367 cfg_bsc_imsi_deny_cmd,
368 "imsi deny [REGEXP]",
369 "Deny IMSIs with the following network to talk to the MSC."
370 "The default is to not deny anyone.)")
371{
372 struct bsc_config *conf = vty->index;
373
Holger Hans Peter Freyther12dc89a2010-05-14 18:38:29 +0800374 bsc_parse_reg(conf, &conf->imsi_deny_re, &conf->imsi_deny, argc, argv);
Holger Hans Peter Freytherc16cf272010-04-13 09:24:37 +0200375 return CMD_SUCCESS;
376}
377
Holger Hans Peter Freyther62e58432010-04-21 19:05:14 +0800378DEFUN(cfg_bsc_paging,
379 cfg_bsc_paging_cmd,
380 "paging forbidden (0|1)",
381 "Forbid sending PAGING REQUESTS to the BSC.")
382{
383 struct bsc_config *conf = vty->index;
384
Holger Hans Peter Freyther834f1df2010-04-21 20:07:07 +0800385 if (strcmp("1", argv[0]) == 0)
Holger Hans Peter Freyther62e58432010-04-21 19:05:14 +0800386 conf->forbid_paging = 1;
387 else
388 conf->forbid_paging = 0;
389
390 return CMD_SUCCESS;
391}
392
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800393int bsc_nat_vty_init(struct bsc_nat *nat)
394{
395 _nat = nat;
396
397 cmd_init(1);
398 vty_init();
399
400 /* show commands */
401 install_element(VIEW_NODE, &show_sccp_cmd);
402 install_element(VIEW_NODE, &show_bsc_cmd);
403 install_element(VIEW_NODE, &show_bsc_cfg_cmd);
Holger Hans Peter Freytherbcfebb22010-04-12 12:33:27 +0200404 install_element(VIEW_NODE, &show_stats_cmd);
Holger Hans Peter Freyther2f9dcf02010-04-27 13:21:39 +0800405 install_element(VIEW_NODE, &close_bsc_cmd);
Holger Hans Peter Freytheraad82ce2010-05-11 19:07:39 +0800406 install_element(VIEW_NODE, &show_msc_cmd);
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800407
Holger Hans Peter Freyther5f291d52010-04-06 12:01:15 +0200408 openbsc_vty_add_cmds();
409
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800410 /* nat group */
411 install_element(CONFIG_NODE, &cfg_nat_cmd);
412 install_node(&nat_node, config_write_nat);
413 install_default(NAT_NODE);
Holger Hans Peter Freytherc16cf272010-04-13 09:24:37 +0200414 install_element(NAT_NODE, &cfg_nat_imsi_allow_cmd);
415 install_element(NAT_NODE, &cfg_nat_imsi_deny_cmd);
Holger Hans Peter Freythera88742c2010-06-15 18:51:04 +0800416 install_element(NAT_NODE, &cfg_nat_msc_ip_cmd);
Holger Hans Peter Freyther81395532010-04-17 07:48:45 +0200417 install_element(NAT_NODE, &cfg_nat_msc_port_cmd);
Holger Hans Peter Freytherda35a8d2010-05-05 16:57:38 +0800418 install_element(NAT_NODE, &cfg_nat_auth_time_cmd);
419 install_element(NAT_NODE, &cfg_nat_ping_time_cmd);
420 install_element(NAT_NODE, &cfg_nat_pong_time_cmd);
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800421
422 /* BSC subgroups */
423 install_element(NAT_NODE, &cfg_bsc_cmd);
424 install_node(&bsc_node, config_write_bsc);
425 install_default(BSC_NODE);
426 install_element(BSC_NODE, &cfg_bsc_token_cmd);
427 install_element(BSC_NODE, &cfg_bsc_lac_cmd);
Holger Hans Peter Freytherc16cf272010-04-13 09:24:37 +0200428 install_element(BSC_NODE, &cfg_bsc_imsi_allow_cmd);
429 install_element(BSC_NODE, &cfg_bsc_imsi_deny_cmd);
Holger Hans Peter Freyther62e58432010-04-21 19:05:14 +0800430 install_element(BSC_NODE, &cfg_bsc_paging_cmd);
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800431
Holger Hans Peter Freytherf7d33352010-06-15 18:50:26 +0800432 mgcp_vty_init();
433
Holger Hans Peter Freyther9a85ef32010-06-15 18:46:11 +0800434 return 0;
435}
436
437
438/* called by the telnet interface... we have our own init above */
439void bsc_vty_init()
440{}