String destinationHost = "192.168.2.10";
while (!peer.isOpen())
Thread.sleep(100);
DiameterRequest request = new DiameterRequest(node, Sh.UDR, sh.getId(), "123456789");
request.getAVPs().add(Common.DESTINATION_REALM, destinationRealm);
if (destinationHost != null)
request.getAVPs().add(Common.DESTINATION_HOST, destinationHost);
request.getAVPs().add(sh.getAVP());
request.getAVPs().add(Common.AUTH_SESSION_STATE, AuthSessionState.NO_STATE_MAINTAINED);
AVP<AVPList> userIdentity = new AVP<AVPList>(Sh.USER_IDENTITY, new AVPList());
userIdentity.getValue().add(Cx.PUBLIC_IDENTITY, "sip:thomas@cipango.org");
request.getAVPs().add(userIdentity);
request.getAVPs().add(Sh.DATA_REFERENCE, Sh.DataReference.IMSUserState);
request.send();
}