public class OneSipApp
{
public static void main(String[] args) throws Exception
{
Server server = new Server();
UdpConnector udp = new UdpConnector();
TcpConnector tcp = new TcpConnector();
int port = Integer.getInteger("cipango.port", 5060);
udp.setPort(port);
tcp.setPort(port);
server.getConnectorManager().setConnectors(new SipConnector[] { udp, tcp });
SipAppContext sipapp = new SipAppContext();
sipapp.setContextPath("/");
sipapp.setWar(args[0]);
SipContextHandlerCollection handler = new SipContextHandlerCollection();
handler.addHandler(sipapp);
server.setApplicationRouter(new DefaultApplicationRouter());
server.setHandler(handler);
server.start();
server.join();
}