[mgcp] Clean up VTY code, the ranges are checked by the VTY code.
diff --git a/openbsc/src/mgcp/mgcp_vty.c b/openbsc/src/mgcp/mgcp_vty.c
index f6ac53b..b058882 100644
--- a/openbsc/src/mgcp/mgcp_vty.c
+++ b/openbsc/src/mgcp/mgcp_vty.c
@@ -141,11 +141,6 @@
"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 @@
"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 @@
"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 @@
"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;
}