Problem on dcmqrscp.cfg setting

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
zagwin
Posts: 22
Joined: Wed, 2011-03-09, 03:13

Problem on dcmqrscp.cfg setting

#1 Post by zagwin »

Dear dcmtkers,

I am trying to use dcmqrscp as a server, and I set the dcmqrscp.cfg file as following:
---------------------------------------------------------------------------------------
NetworkTCPPort = 5678
MaxPDUSize = 16384
MaxAssociations = 16

HostTable BEGIN
query = (FINDSCU, localhost, 5678)
acmes = query
HostTable END

VendorTable BEGIN
"BCompany" = acmes
VendorTable END

AETable BEGIN
COMMON D:\dcmtk\common RW (200, 1024mb) ANY
AETable END

-----------------------------------------------------------------------------------
and then I run dcmqrscp as
[localhost %]$ ./dcmqrscp -v -c D:\dcmtk_bin\dcmqrscp.cfg +xs

and run query as
[localhost %]$ ./findscu -v -P 127.0.0.1 5678 -aec COMMON -k 0008,0052=SERIES qry_all.dcm

it works and returns all of the series. HOWEVER, when I change the last line of dcmqrscp.cfg file as
AETable BEGIN
COMMON D:\dcmtk\common RW (200, 1024mb) acmes
AETable END

"ANY"->"acmes" it does not work, and returns
Association Received<asctivate:FINDSCU->COMMON>
Refusing Association <BadAEService>

Does anyone know why this happens?

Thanks a lot!
Best,
Matt

zagwin
Posts: 22
Joined: Wed, 2011-03-09, 03:13

Problem on dcmqrscp.cfg setting

#2 Post by zagwin »

anybody know why? thanks a lot!
Matt

J. Riesmeier
DCMTK Developer
Posts: 2505
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

#3 Post by J. Riesmeier »

According to the output ...

Code: Select all

Association Received<asctivate:FINDSCU->COMMON>
... the hostname of the peer is "asctivate" and not "localhost". So, there's no exact match with the HostTable definition.

zagwin
Posts: 22
Joined: Wed, 2011-03-09, 03:13

#4 Post by zagwin »

I did this as you said, and it works
J. Riesmeier wrote:... the hostname of the peer is "asctivate" and not "localhost". So, there's no exact match with the HostTable definition.
First, I am sorry that it was "activate" not "asctivate", I wrote it wrong in my first post.
Second, I don't know why the hostname is "activate"? My computer name is "Mattisme" and I start the dcmqrscp and findscu on the same computer, so I think whether the name is "Mattisme" OR "localhost", why "activate"?

how and where can I find the name of the peer name?
Thanks a lot for your help!

Best
Matt

zagwin
Posts: 22
Joined: Wed, 2011-03-09, 03:13

#5 Post by zagwin »

I am sorry for bothering you guys, but I can not figure out how to set the hostname. I am still working on it. How to set the hostname in HostTable?

As I said in my last post, my run server and findscu on the same machine, and my computer name is "Mattisme" why the findscu hostname is "activate"?

How to find the hostname for each peer?

Thanks a lot!
Matt

J. Riesmeier
DCMTK Developer
Posts: 2505
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

#6 Post by J. Riesmeier »

How to find the hostname for each peer?
What about using DNS lookup utilities like host or dig?

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest