don't enable handover unless RTP Proxy is enabled

We cannot support in-call handover of calls without a RTP proxy,
since at the time of the handover the SSRC, sequence number and
timestamp of the RTP frames change.
This commit is contained in:
Harald Welte 2009-12-20 13:51:01 +01:00
parent edbc0f7aea
commit fe03f0d002
1 changed files with 6 additions and 0 deletions

View File

@ -870,6 +870,12 @@ DEFUN(cfg_net_handover, cfg_net_handover_cmd,
"handover (0|1)",
"Whether or not to use in-call handover")
{
if (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]);
return CMD_SUCCESS;