diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-14 02:27:50 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-05-14 02:39:42 +0800 |
commit | 1384af652261d06f398ea1b9d528869f612d707b (patch) | |
tree | eaa8d37a442770cbd9a2a27cca9123c326b8db50 /openbsc/src/mgcp/mgcp_vty.c | |
parent | b3c206aa341e2f5f9332446fbcbd1092c6cec901 (diff) |
[mgcp] Use A.B.C.D for the ip addresses inside the vty config
Make the vty code parse the ip addresses for us and validate
them for us.
Diffstat (limited to 'openbsc/src/mgcp/mgcp_vty.c')
-rw-r--r-- | openbsc/src/mgcp/mgcp_vty.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/src/mgcp/mgcp_vty.c b/openbsc/src/mgcp/mgcp_vty.c index bf5d15f0b..f6ac53b5e 100644 --- a/openbsc/src/mgcp/mgcp_vty.c +++ b/openbsc/src/mgcp/mgcp_vty.c @@ -103,7 +103,7 @@ DEFUN(cfg_mgcp, DEFUN(cfg_mgcp_local_ip, cfg_mgcp_local_ip_cmd, - "local ip IP", + "local ip A.B.C.D", "Set the IP to be used in SDP records") { if (g_cfg->local_ip) @@ -114,7 +114,7 @@ DEFUN(cfg_mgcp_local_ip, DEFUN(cfg_mgcp_bts_ip, cfg_mgcp_bts_ip_cmd, - "bts ip IP", + "bts ip A.B.C.D", "Set the IP of the BTS for RTP forwarding") { if (g_cfg->bts_ip) @@ -126,7 +126,7 @@ DEFUN(cfg_mgcp_bts_ip, DEFUN(cfg_mgcp_bind_ip, cfg_mgcp_bind_ip_cmd, - "bind ip IP", + "bind ip A.B.C.D", "Bind the MGCP to this local addr") { if (g_cfg->source_addr) @@ -227,7 +227,7 @@ DEFUN(cfg_mgcp_number_endp, DEFUN(cfg_mgcp_forward_ip, cfg_mgcp_forward_ip_cmd, - "forward audio ip IP", + "forward audio ip A.B.C.D", "Forward packets from and to the IP. This disables most of the MGCP feature.") { if (g_cfg->forward_ip) |