Neels Hofmeyr | 7685a78 | 2017-01-30 23:30:26 +0100 | [diff] [blame] | 1 | /* OsmoHLR VTY implementation */ |
| 2 | |
| 3 | /* (C) 2016 sysmocom s.f.m.c. GmbH <info@sysmocom.de> |
Neels Hofmeyr | 7685a78 | 2017-01-30 23:30:26 +0100 | [diff] [blame] | 4 | * Author: Neels Hofmeyr <nhofmeyr@sysmocom.de> |
Harald Welte | fa7ee33 | 2018-06-24 13:20:32 +0200 | [diff] [blame] | 5 | * (C) 2018 Harald Welte <laforge@gnumonks.org> |
| 6 | * |
| 7 | * All Rights Reserved |
Neels Hofmeyr | 7685a78 | 2017-01-30 23:30:26 +0100 | [diff] [blame] | 8 | * |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 9 | * (C) 2018 Harald Welte <laforge@gnumonks.org> |
| 10 | * |
| 11 | * All Rights Reserved |
| 12 | * |
Neels Hofmeyr | 7685a78 | 2017-01-30 23:30:26 +0100 | [diff] [blame] | 13 | * This program is free software; you can redistribute it and/or modify |
| 14 | * it under the terms of the GNU Affero General Public License as published by |
| 15 | * the Free Software Foundation; either version 3 of the License, or |
| 16 | * (at your option) any later version. |
| 17 | * |
| 18 | * This program is distributed in the hope that it will be useful, |
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 21 | * GNU Affero General Public License for more details. |
| 22 | * |
| 23 | * You should have received a copy of the GNU Affero General Public License |
| 24 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 25 | * |
| 26 | */ |
| 27 | |
Pau Espin Pedrol | ce9bc40 | 2017-05-31 13:19:22 +0200 | [diff] [blame] | 28 | #include <osmocom/core/talloc.h> |
Neels Hofmeyr | 7685a78 | 2017-01-30 23:30:26 +0100 | [diff] [blame] | 29 | #include <osmocom/vty/vty.h> |
| 30 | #include <osmocom/vty/command.h> |
| 31 | #include <osmocom/vty/logging.h> |
Harald Welte | 7ee6e55 | 2018-02-14 00:52:05 +0100 | [diff] [blame] | 32 | #include <osmocom/vty/misc.h> |
Harald Welte | fa7ee33 | 2018-06-24 13:20:32 +0200 | [diff] [blame] | 33 | #include <osmocom/abis/ipa.h> |
Neels Hofmeyr | 7685a78 | 2017-01-30 23:30:26 +0100 | [diff] [blame] | 34 | |
Harald Welte | dab544e | 2018-07-29 16:14:48 +0200 | [diff] [blame] | 35 | #include "hlr.h" |
Neels Hofmeyr | 7685a78 | 2017-01-30 23:30:26 +0100 | [diff] [blame] | 36 | #include "hlr_vty.h" |
Neels Hofmeyr | 183e700 | 2017-10-06 02:59:54 +0200 | [diff] [blame] | 37 | #include "hlr_vty_subscr.h" |
Vadim Yanitskiy | d157a56 | 2018-12-01 00:03:39 +0700 | [diff] [blame] | 38 | #include "hlr_ussd.h" |
Harald Welte | fa7ee33 | 2018-06-24 13:20:32 +0200 | [diff] [blame] | 39 | #include "gsup_server.h" |
Neels Hofmeyr | 7685a78 | 2017-01-30 23:30:26 +0100 | [diff] [blame] | 40 | |
Pau Espin Pedrol | ce9bc40 | 2017-05-31 13:19:22 +0200 | [diff] [blame] | 41 | struct cmd_node hlr_node = { |
| 42 | HLR_NODE, |
| 43 | "%s(config-hlr)# ", |
| 44 | 1, |
| 45 | }; |
| 46 | |
| 47 | DEFUN(cfg_hlr, |
| 48 | cfg_hlr_cmd, |
| 49 | "hlr", |
| 50 | "Configure the HLR") |
| 51 | { |
| 52 | vty->node = HLR_NODE; |
| 53 | return CMD_SUCCESS; |
| 54 | } |
| 55 | |
| 56 | struct cmd_node gsup_node = { |
| 57 | GSUP_NODE, |
| 58 | "%s(config-hlr-gsup)# ", |
| 59 | 1, |
| 60 | }; |
| 61 | |
| 62 | DEFUN(cfg_gsup, |
| 63 | cfg_gsup_cmd, |
| 64 | "gsup", |
| 65 | "Configure GSUP options") |
| 66 | { |
| 67 | vty->node = GSUP_NODE; |
| 68 | return CMD_SUCCESS; |
| 69 | } |
| 70 | |
| 71 | static int config_write_hlr(struct vty *vty) |
| 72 | { |
| 73 | vty_out(vty, "hlr%s", VTY_NEWLINE); |
| 74 | return CMD_SUCCESS; |
| 75 | } |
| 76 | |
| 77 | static int config_write_hlr_gsup(struct vty *vty) |
| 78 | { |
| 79 | vty_out(vty, " gsup%s", VTY_NEWLINE); |
| 80 | if (g_hlr->gsup_bind_addr) |
| 81 | vty_out(vty, " bind ip %s%s", g_hlr->gsup_bind_addr, VTY_NEWLINE); |
| 82 | return CMD_SUCCESS; |
| 83 | } |
| 84 | |
Harald Welte | fa7ee33 | 2018-06-24 13:20:32 +0200 | [diff] [blame] | 85 | static void show_one_conn(struct vty *vty, const struct osmo_gsup_conn *conn) |
| 86 | { |
| 87 | const struct ipa_server_conn *isc = conn->conn; |
| 88 | char *name; |
| 89 | int rc; |
| 90 | |
| 91 | rc = osmo_gsup_conn_ccm_get(conn, (uint8_t **) &name, IPAC_IDTAG_SERNR); |
| 92 | OSMO_ASSERT(rc); |
| 93 | |
| 94 | vty_out(vty, " '%s' from %s:%5u, CS=%u, PS=%u, 3G_IND=%u%s", |
| 95 | name, isc->addr, isc->port, conn->supports_cs, conn->supports_ps, conn->auc_3g_ind, |
| 96 | VTY_NEWLINE); |
| 97 | } |
| 98 | |
| 99 | DEFUN(show_gsup_conn, show_gsup_conn_cmd, |
| 100 | "show gsup-connections", |
| 101 | SHOW_STR "GSUP Connections from VLRs, SGSNs, EUSEs\n") |
| 102 | { |
| 103 | struct osmo_gsup_server *gs = g_hlr->gs; |
| 104 | struct osmo_gsup_conn *conn; |
| 105 | |
| 106 | llist_for_each_entry(conn, &gs->clients, list) |
| 107 | show_one_conn(vty, conn); |
| 108 | |
| 109 | return CMD_SUCCESS; |
| 110 | } |
| 111 | |
Pau Espin Pedrol | ce9bc40 | 2017-05-31 13:19:22 +0200 | [diff] [blame] | 112 | DEFUN(cfg_hlr_gsup_bind_ip, |
| 113 | cfg_hlr_gsup_bind_ip_cmd, |
| 114 | "bind ip A.B.C.D", |
| 115 | "Listen/Bind related socket option\n" |
| 116 | IP_STR |
| 117 | "IPv4 Address to bind the GSUP interface to\n") |
| 118 | { |
| 119 | if(g_hlr->gsup_bind_addr) |
| 120 | talloc_free(g_hlr->gsup_bind_addr); |
| 121 | g_hlr->gsup_bind_addr = talloc_strdup(g_hlr, argv[0]); |
| 122 | |
| 123 | return CMD_SUCCESS; |
| 124 | } |
| 125 | |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 126 | /*********************************************************************** |
Harald Welte | dab544e | 2018-07-29 16:14:48 +0200 | [diff] [blame] | 127 | * USSD Entity |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 128 | ***********************************************************************/ |
| 129 | |
| 130 | #include "hlr_ussd.h" |
| 131 | |
Harald Welte | dab544e | 2018-07-29 16:14:48 +0200 | [diff] [blame] | 132 | #define USSD_STR "USSD Configuration\n" |
| 133 | #define UROUTE_STR "Routing Configuration\n" |
| 134 | #define PREFIX_STR "Prefix-Matching Route\n" "USSD Prefix\n" |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 135 | |
Vadim Yanitskiy | be9fd43 | 2018-12-27 08:15:00 +0700 | [diff] [blame] | 136 | #define INT_CHOICE "(own-msisdn|own-imsi|get-ran|umts-on|umts-off)" |
Harald Welte | dab544e | 2018-07-29 16:14:48 +0200 | [diff] [blame] | 137 | #define INT_STR "Internal USSD Handler\n" \ |
| 138 | "Respond with subscribers' own MSISDN\n" \ |
Vadim Yanitskiy | a60ad0d | 2018-12-27 05:39:54 +0700 | [diff] [blame] | 139 | "Respond with subscribers' own IMSI\n" \ |
Vadim Yanitskiy | be9fd43 | 2018-12-27 08:15:00 +0700 | [diff] [blame] | 140 | "Respond with available RAN types\n" \ |
| 141 | "Enable UMTS service\n" \ |
| 142 | "Disable UMTS service\n" |
Harald Welte | dab544e | 2018-07-29 16:14:48 +0200 | [diff] [blame] | 143 | |
| 144 | #define EXT_STR "External USSD Handler\n" \ |
| 145 | "Name of External USSD Handler (IPA CCM ID)\n" |
| 146 | |
| 147 | DEFUN(cfg_ussd_route_pfx_int, cfg_ussd_route_pfx_int_cmd, |
| 148 | "ussd route prefix PREFIX internal " INT_CHOICE, |
| 149 | USSD_STR UROUTE_STR PREFIX_STR INT_STR) |
| 150 | { |
| 151 | const struct hlr_iuse *iuse = iuse_find(argv[1]); |
| 152 | struct hlr_ussd_route *rt = ussd_route_find_prefix(g_hlr, argv[0]); |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 153 | if (rt) { |
| 154 | vty_out(vty, "%% Cannot add [another?] route for prefix %s%s", argv[0], VTY_NEWLINE); |
| 155 | return CMD_WARNING; |
| 156 | } |
Harald Welte | dab544e | 2018-07-29 16:14:48 +0200 | [diff] [blame] | 157 | ussd_route_prefix_alloc_int(g_hlr, argv[0], iuse); |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 158 | |
| 159 | return CMD_SUCCESS; |
| 160 | } |
| 161 | |
Harald Welte | dab544e | 2018-07-29 16:14:48 +0200 | [diff] [blame] | 162 | DEFUN(cfg_ussd_route_pfx_ext, cfg_ussd_route_pfx_ext_cmd, |
| 163 | "ussd route prefix PREFIX external EUSE", |
| 164 | USSD_STR UROUTE_STR PREFIX_STR EXT_STR) |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 165 | { |
Harald Welte | dab544e | 2018-07-29 16:14:48 +0200 | [diff] [blame] | 166 | struct hlr_euse *euse = euse_find(g_hlr, argv[1]); |
| 167 | struct hlr_ussd_route *rt = ussd_route_find_prefix(g_hlr, argv[0]); |
| 168 | if (rt) { |
| 169 | vty_out(vty, "%% Cannot add [another?] route for prefix %s%s", argv[0], VTY_NEWLINE); |
| 170 | return CMD_WARNING; |
| 171 | } |
| 172 | if (!euse) { |
| 173 | vty_out(vty, "%% Cannot find euse '%s'%s", argv[1], VTY_NEWLINE); |
| 174 | return CMD_WARNING; |
| 175 | } |
| 176 | ussd_route_prefix_alloc_ext(g_hlr, argv[0], euse); |
| 177 | |
| 178 | return CMD_SUCCESS; |
| 179 | } |
| 180 | |
| 181 | DEFUN(cfg_ussd_no_route_pfx, cfg_ussd_no_route_pfx_cmd, |
| 182 | "no ussd route prefix PREFIX", |
| 183 | NO_STR USSD_STR UROUTE_STR PREFIX_STR) |
| 184 | { |
| 185 | struct hlr_ussd_route *rt = ussd_route_find_prefix(g_hlr, argv[0]); |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 186 | if (!rt) { |
| 187 | vty_out(vty, "%% Cannot find route for prefix %s%s", argv[0], VTY_NEWLINE); |
| 188 | return CMD_WARNING; |
| 189 | } |
Harald Welte | dab544e | 2018-07-29 16:14:48 +0200 | [diff] [blame] | 190 | ussd_route_del(rt); |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 191 | |
| 192 | return CMD_SUCCESS; |
| 193 | } |
| 194 | |
Harald Welte | dab544e | 2018-07-29 16:14:48 +0200 | [diff] [blame] | 195 | DEFUN(cfg_ussd_defaultroute, cfg_ussd_defaultroute_cmd, |
| 196 | "ussd default-route external EUSE", |
| 197 | USSD_STR "Configure default-route for all USSD to unknown destinations\n" |
| 198 | EXT_STR) |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 199 | { |
Vadim Yanitskiy | b93c44f | 2018-08-02 23:37:51 +0700 | [diff] [blame] | 200 | struct hlr_euse *euse; |
| 201 | |
| 202 | euse = euse_find(g_hlr, argv[0]); |
| 203 | if (!euse) { |
| 204 | vty_out(vty, "%% Cannot find EUSE %s%s", argv[0], VTY_NEWLINE); |
| 205 | return CMD_WARNING; |
| 206 | } |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 207 | |
| 208 | if (g_hlr->euse_default != euse) { |
| 209 | vty_out(vty, "Switching default route from %s to %s%s", |
Harald Welte | 55d32a1 | 2018-07-30 17:26:35 +0200 | [diff] [blame] | 210 | g_hlr->euse_default ? g_hlr->euse_default->name : "<none>", |
| 211 | euse->name, VTY_NEWLINE); |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 212 | g_hlr->euse_default = euse; |
| 213 | } |
| 214 | |
| 215 | return CMD_SUCCESS; |
| 216 | } |
| 217 | |
Harald Welte | dab544e | 2018-07-29 16:14:48 +0200 | [diff] [blame] | 218 | DEFUN(cfg_ussd_no_defaultroute, cfg_ussd_no_defaultroute_cmd, |
| 219 | "no ussd default-route", |
| 220 | NO_STR USSD_STR "Remove the default-route for all USSD to unknown destinations\n") |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 221 | { |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 222 | g_hlr->euse_default = NULL; |
| 223 | |
| 224 | return CMD_SUCCESS; |
| 225 | } |
| 226 | |
| 227 | struct cmd_node euse_node = { |
| 228 | EUSE_NODE, |
| 229 | "%s(config-hlr-euse)# ", |
| 230 | 1, |
| 231 | }; |
| 232 | |
| 233 | DEFUN(cfg_euse, cfg_euse_cmd, |
| 234 | "euse NAME", |
| 235 | "Configure a particular External USSD Entity\n" |
| 236 | "Alphanumeric name of the External USSD Entity\n") |
| 237 | { |
| 238 | struct hlr_euse *euse; |
| 239 | const char *id = argv[0]; |
| 240 | |
| 241 | euse = euse_find(g_hlr, id); |
| 242 | if (!euse) { |
| 243 | euse = euse_alloc(g_hlr, id); |
| 244 | if (!euse) |
| 245 | return CMD_WARNING; |
| 246 | } |
| 247 | vty->index = euse; |
| 248 | vty->index_sub = &euse->description; |
| 249 | vty->node = EUSE_NODE; |
| 250 | |
| 251 | return CMD_SUCCESS; |
| 252 | } |
| 253 | |
| 254 | DEFUN(cfg_no_euse, cfg_no_euse_cmd, |
| 255 | "no euse NAME", |
| 256 | NO_STR "Remove a particular External USSD Entity\n" |
| 257 | "Alphanumeric name of the External USSD Entity\n") |
| 258 | { |
| 259 | struct hlr_euse *euse = euse_find(g_hlr, argv[0]); |
| 260 | if (!euse) { |
| 261 | vty_out(vty, "%% Cannot remove non-existant EUSE %s%s", argv[0], VTY_NEWLINE); |
| 262 | return CMD_WARNING; |
| 263 | } |
| 264 | if (g_hlr->euse_default == euse) { |
| 265 | vty_out(vty, "%% Cannot remove EUSE %s, it is the default route%s", argv[0], VTY_NEWLINE); |
| 266 | return CMD_WARNING; |
| 267 | } |
| 268 | euse_del(euse); |
| 269 | return CMD_SUCCESS; |
| 270 | } |
| 271 | |
| 272 | static void dump_one_euse(struct vty *vty, struct hlr_euse *euse) |
| 273 | { |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 274 | vty_out(vty, " euse %s%s", euse->name, VTY_NEWLINE); |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 275 | } |
| 276 | |
| 277 | static int config_write_euse(struct vty *vty) |
| 278 | { |
| 279 | struct hlr_euse *euse; |
Harald Welte | dab544e | 2018-07-29 16:14:48 +0200 | [diff] [blame] | 280 | struct hlr_ussd_route *rt; |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 281 | |
| 282 | llist_for_each_entry(euse, &g_hlr->euse_list, list) |
| 283 | dump_one_euse(vty, euse); |
| 284 | |
Harald Welte | dab544e | 2018-07-29 16:14:48 +0200 | [diff] [blame] | 285 | llist_for_each_entry(rt, &g_hlr->ussd_routes, list) { |
| 286 | vty_out(vty, " ussd route prefix %s %s %s%s", rt->prefix, |
| 287 | rt->is_external ? "external" : "internal", |
| 288 | rt->is_external ? rt->u.euse->name : rt->u.iuse->name, |
| 289 | VTY_NEWLINE); |
| 290 | } |
| 291 | |
| 292 | if (g_hlr->euse_default) |
| 293 | vty_out(vty, " ussd default-route external %s%s", g_hlr->euse_default->name, VTY_NEWLINE); |
| 294 | |
Vadim Yanitskiy | d157a56 | 2018-12-01 00:03:39 +0700 | [diff] [blame] | 295 | if (g_hlr->ncss_guard_timeout != NCSS_GUARD_TIMEOUT_DEFAULT) |
| 296 | vty_out(vty, " ncss-guard-timeout %i%s", |
| 297 | g_hlr->ncss_guard_timeout, VTY_NEWLINE); |
| 298 | |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 299 | return 0; |
| 300 | } |
| 301 | |
Vadim Yanitskiy | d157a56 | 2018-12-01 00:03:39 +0700 | [diff] [blame] | 302 | DEFUN(cfg_ncss_guard_timeout, cfg_ncss_guard_timeout_cmd, |
| 303 | "ncss-guard-timeout <0-255>", |
| 304 | "Set guard timer for NCSS (call independent SS) session activity\n" |
| 305 | "Guard timer value (sec.), or 0 to disable") |
| 306 | { |
| 307 | g_hlr->ncss_guard_timeout = atoi(argv[0]); |
| 308 | return CMD_SUCCESS; |
| 309 | } |
| 310 | |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 311 | /*********************************************************************** |
| 312 | * Common Code |
| 313 | ***********************************************************************/ |
| 314 | |
Pau Espin Pedrol | ce9bc40 | 2017-05-31 13:19:22 +0200 | [diff] [blame] | 315 | int hlr_vty_go_parent(struct vty *vty) |
| 316 | { |
| 317 | switch (vty->node) { |
| 318 | case GSUP_NODE: |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 319 | case EUSE_NODE: |
Pau Espin Pedrol | ce9bc40 | 2017-05-31 13:19:22 +0200 | [diff] [blame] | 320 | vty->node = HLR_NODE; |
| 321 | vty->index = NULL; |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 322 | vty->index_sub = NULL; |
Pau Espin Pedrol | ce9bc40 | 2017-05-31 13:19:22 +0200 | [diff] [blame] | 323 | break; |
| 324 | default: |
| 325 | case HLR_NODE: |
| 326 | vty->node = CONFIG_NODE; |
| 327 | vty->index = NULL; |
| 328 | break; |
| 329 | case CONFIG_NODE: |
| 330 | vty->node = ENABLE_NODE; |
| 331 | vty->index = NULL; |
| 332 | break; |
| 333 | } |
| 334 | |
| 335 | return vty->node; |
| 336 | } |
| 337 | |
Neels Hofmeyr | 7685a78 | 2017-01-30 23:30:26 +0100 | [diff] [blame] | 338 | int hlr_vty_is_config_node(struct vty *vty, int node) |
| 339 | { |
| 340 | switch (node) { |
| 341 | /* add items that are not config */ |
| 342 | case CONFIG_NODE: |
| 343 | return 0; |
| 344 | |
| 345 | default: |
| 346 | return 1; |
| 347 | } |
| 348 | } |
| 349 | |
Harald Welte | d5807b8 | 2018-07-29 12:27:41 +0200 | [diff] [blame] | 350 | void hlr_vty_init(const struct log_info *cat) |
Neels Hofmeyr | 7685a78 | 2017-01-30 23:30:26 +0100 | [diff] [blame] | 351 | { |
| 352 | logging_vty_add_cmds(cat); |
Harald Welte | 7ee6e55 | 2018-02-14 00:52:05 +0100 | [diff] [blame] | 353 | osmo_talloc_vty_add_cmds(); |
Pau Espin Pedrol | ce9bc40 | 2017-05-31 13:19:22 +0200 | [diff] [blame] | 354 | |
Harald Welte | fa7ee33 | 2018-06-24 13:20:32 +0200 | [diff] [blame] | 355 | install_element_ve(&show_gsup_conn_cmd); |
| 356 | |
Pau Espin Pedrol | ce9bc40 | 2017-05-31 13:19:22 +0200 | [diff] [blame] | 357 | install_element(CONFIG_NODE, &cfg_hlr_cmd); |
| 358 | install_node(&hlr_node, config_write_hlr); |
Pau Espin Pedrol | ce9bc40 | 2017-05-31 13:19:22 +0200 | [diff] [blame] | 359 | |
| 360 | install_element(HLR_NODE, &cfg_gsup_cmd); |
| 361 | install_node(&gsup_node, config_write_hlr_gsup); |
Pau Espin Pedrol | ce9bc40 | 2017-05-31 13:19:22 +0200 | [diff] [blame] | 362 | |
| 363 | install_element(GSUP_NODE, &cfg_hlr_gsup_bind_ip_cmd); |
Neels Hofmeyr | 183e700 | 2017-10-06 02:59:54 +0200 | [diff] [blame] | 364 | |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 365 | install_element(HLR_NODE, &cfg_euse_cmd); |
| 366 | install_element(HLR_NODE, &cfg_no_euse_cmd); |
| 367 | install_node(&euse_node, config_write_euse); |
Harald Welte | dab544e | 2018-07-29 16:14:48 +0200 | [diff] [blame] | 368 | install_element(HLR_NODE, &cfg_ussd_route_pfx_int_cmd); |
| 369 | install_element(HLR_NODE, &cfg_ussd_route_pfx_ext_cmd); |
| 370 | install_element(HLR_NODE, &cfg_ussd_no_route_pfx_cmd); |
| 371 | install_element(HLR_NODE, &cfg_ussd_defaultroute_cmd); |
| 372 | install_element(HLR_NODE, &cfg_ussd_no_defaultroute_cmd); |
Vadim Yanitskiy | d157a56 | 2018-12-01 00:03:39 +0700 | [diff] [blame] | 373 | install_element(HLR_NODE, &cfg_ncss_guard_timeout_cmd); |
Harald Welte | 4956ae1 | 2018-06-15 22:04:28 +0200 | [diff] [blame] | 374 | |
Harald Welte | d5807b8 | 2018-07-29 12:27:41 +0200 | [diff] [blame] | 375 | hlr_vty_subscriber_init(); |
Neels Hofmeyr | 7685a78 | 2017-01-30 23:30:26 +0100 | [diff] [blame] | 376 | } |