public boolean startMedia()
{ // udp flow adaptation for RAT application
if (localport!=remoteport)
{ printLog("UDP local relay: src_port="+localport+", dest_port="+remoteport);
printLog("UDP local relay: src_port="+(localport+1)+", dest_port="+(remoteport+1));
new UdpRelay(localport,"127.0.0.1",remoteport,null);
new UdpRelay(localport+1,"127.0.0.1",remoteport+1,null);
}
else
{ printLog("local_port==remote_port --> no UDP relay is needed");
}