use of org.mobicents.tools.sip.balancer.BlackholeAppServer in project load-balancer by RestComm.
the class UdpForwardingPerformanceTest method setUp.
@Before
public void setUp() throws Exception {
shootist = new Shootist();
balancer = new BalancerRunner();
LoadBalancerConfiguration lbConfig = new LoadBalancerConfiguration();
lbConfig.getSipConfiguration().getExternalLegConfiguration().setHost("127.0.0.1");
lbConfig.getSipConfiguration().getInternalLegConfiguration().setHost("127.0.0.1");
lbConfig.getSipConfiguration().getInternalLegConfiguration().setUdpPort(5065);
balancer.start(lbConfig);
server = new BlackholeAppServer("blackhole", 18452, "127.0.0.1");
server.start();
Thread.sleep(5000);
}
use of org.mobicents.tools.sip.balancer.BlackholeAppServer in project load-balancer by RestComm.
the class TcpForwardingPerformanceTest method setUp.
@Before
public void setUp() throws Exception {
balancer = new BalancerRunner();
LoadBalancerConfiguration lbConfig = new LoadBalancerConfiguration();
lbConfig.getSipConfiguration().getExternalLegConfiguration().setHost("127.0.0.1");
lbConfig.getSipConfiguration().getInternalLegConfiguration().setHost("127.0.0.1");
lbConfig.getSipConfiguration().getInternalLegConfiguration().setTcpPort(5065);
balancer.start(lbConfig);
server = new BlackholeAppServer("blackhole", 18452, "127.0.0.1");
server.start();
Thread.sleep(5000);
}
Aggregations