dcmecho only checking hostname and port?

25 views
Skip to first unread message

Eric Leboffe

unread,
Aug 17, 2015, 5:09:43 PM8/17/15
to dcm4che
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);  

                               

try

                {

                    newEcho.open();

                    LOG.info("it worked");

                }


                catch(Exception e)

                {

                LOG.info("It didn't work");

                 }


2) 


                     String[] stringTest = {AET + "@" + hostname + ":" + port};

                     DcmEcho.main(stringTest);

Reply all
Reply to author
Forward
0 new messages