Log.getLog().setDebugEnabled(true);
ApplicationId sh = Sh.SH_APPLICATION_ID;
Node node = new Node();
node.setIdentity("avalon.nexcom.bzh");
node.setHandler(new ShClient());
DiameterSocketConnector connector = new DiameterSocketConnector();
connector.setHost(InetAddress.getLocalHost().getHostAddress());
connector.setPort(3868);
connector.setMessageListener(new BasicMessageLog());
node.addConnector(connector);
Peer peer = new Peer("192.168.2.10");
peer.setAddress(InetAddress.getByName("192.168.2.10"));
peer.setPort(3869);
node.addPeer(peer);
node.start();
String destinationRealm = "open-ims.net";
String destinationHost = "192.168.2.10";
while (!peer.isOpen())