diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-01-07 16:14:38 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-01-07 16:14:38 +0100 |
commit | cbcfe24fee18981de0765cddb9fa02e79b3c156d (patch) | |
tree | fd2e633aa83f6e317085a2d54ae4c631e995983d /openbsc/src/vty_interface.c | |
parent | d0c540210a72ad1f1062b44a73ce7fe2d2bc2cf3 (diff) |
[vty] In case of handover only warn about the proxy mode when it is enabled
Do not warn if the user has put "handover 0" in his configuration
as this will not enable handover, only warn if it is going to be
enabled.
Diffstat (limited to 'openbsc/src/vty_interface.c')
-rw-r--r-- | openbsc/src/vty_interface.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c index f978c27fc..8d6e202c1 100644 --- a/openbsc/src/vty_interface.c +++ b/openbsc/src/vty_interface.c @@ -1212,13 +1212,15 @@ DEFUN(cfg_net_handover, cfg_net_handover_cmd, "handover (0|1)", "Whether or not to use in-call handover") { - if (ipacc_rtp_direct) { + int enable = atoi(argv[0]); + + if (enable && ipacc_rtp_direct) { vty_out(vty, "%% Cannot enable handover unless RTP Proxy mode " "is enabled by using the -P command line option%s", VTY_NEWLINE); return CMD_WARNING; } - gsmnet->handover.active = atoi(argv[0]); + gsmnet->handover.active = enable; return CMD_SUCCESS; } |