[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.
This commit is contained in:
parent
d0c540210a
commit
cbcfe24fee
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue