diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-14 02:34:35 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-14 02:34:35 +0800 |
commit | 723fb87a6cad72c05fbbbf6a0a5329b9cc77de23 (patch) | |
tree | 8e65c9d40d64999e5a5b26a7bd22409319a4d7fe /openbsc | |
parent | 9da449265562e234a5a0b3279c2b0d47f43eae46 (diff) |
[mgcp] Clean up VTY code, the ranges are checked by the VTY code.
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/mgcp/mgcp_vty.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/openbsc/src/mgcp/mgcp_vty.c b/openbsc/src/mgcp/mgcp_vty.c index f6ac53b5e..b05888284 100644 --- a/openbsc/src/mgcp/mgcp_vty.c +++ b/openbsc/src/mgcp/mgcp_vty.c @@ -141,11 +141,6 @@ DEFUN(cfg_mgcp_bind_port, "Bind the MGCP to this port") { unsigned int port = atoi(argv[0]); - if (port > 65534) { - vty_out(vty, "%% wrong bind port '%s'%s", argv[0], VTY_NEWLINE); - return CMD_WARNING; - } - g_cfg->source_port = port; return CMD_SUCCESS; } @@ -156,11 +151,6 @@ DEFUN(cfg_mgcp_bind_early, "Bind all RTP ports early") { unsigned int bind = atoi(argv[0]); - if (bind != 0 && bind != 1) { - vty_out(vty, "%% param must be 0 or 1.%s", VTY_NEWLINE); - return CMD_WARNING; - } - g_cfg->early_bind = bind == 1; return CMD_SUCCESS; } @@ -171,11 +161,6 @@ DEFUN(cfg_mgcp_rtp_base_port, "Base port to use") { unsigned int port = atoi(argv[0]); - if (port > 65534) { - vty_out(vty, "%% wrong base port '%s'%s", argv[0], VTY_NEWLINE); - return CMD_WARNING; - } - g_cfg->rtp_base_port = port; return CMD_SUCCESS; } @@ -186,11 +171,6 @@ DEFUN(cfg_mgcp_sdp_payload_number, "Set the audio codec to use") { unsigned int payload = atoi(argv[0]); - if (payload > 255) { - vty_out(vty, "%% wrong payload number '%s'%s", argv[0], VTY_NEWLINE); - return CMD_WARNING; - } - g_cfg->audio_payload = payload; return CMD_SUCCESS; } |