I am attempting to do a dcmecho to various PACS on a network and it appears that the called AET isn't being used in the check.
For instance I want to check that: "Erics-Osirix@localhost:11112" is a real location where I could send data. I get a connection response for any value of "X@localhost:11112" whether or not "X" is a location in my OsiriX.
Is there a flag or option that I am missing which forces the dcmecho to look at the called AET as well?
I've posted some code snippets below.
I've tried multiple ways:
1) DcmEcho newEcho = new DcmEcho("test");
newEcho.setRemoteHost(hostname);
newEcho.setRemotePort(port);
newEcho.setCalledAET(AET, false);
{
newEcho.open();
LOG.info("it worked");
}
catch(Exception e)
{
LOG.info("It didn't work");
}
2)
String[] stringTest = {AET + "@" + hostname + ":" + port};
DcmEcho.main(stringTest);