Skip to content

Commit

Permalink
BUG: Fix ctkDICOMApplicationTest1 on Windows configuring hostname in …
Browse files Browse the repository at this point in the history
…dcmqrscp.cfg

This addresses the following error reported by the server ():

  I: Association Received (HOSTNAME:CTK_AE -> CTK_AE)
  I: Refusing Association (BadAEService)

where HOSTNAME corresponds to the actual hostname.
  • Loading branch information
jcfr committed Jan 13, 2024
1 parent 6495da9 commit 6f7d7dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Applications/Testing/Cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ if(CTK_APP_ctkDICOMQuery AND CTK_APP_ctkDICOMRetrieve)
set(DCMQRSCP_STORE_DIR ${CTK_BINARY_DIR}/Testing/Temporary)
set(ctkDICOMRetrieve_STORE_DIR ${CTK_BINARY_DIR}/Testing/Temporary/ctkDICOMRetrieveStorage)
set(DCMQRSCP_CONFIG ${CTK_BINARY_DIR}/Testing/Temporary/dcmqrscp.cfg)
if(UNIX)
set(DCMQRSCP_HOSTNAME "localhost")
else()
cmake_host_system_information(RESULT DCMQRSCP_HOSTNAME QUERY HOSTNAME)
endif()
configure_file( dcmqrscp.cfg.in ${DCMQRSCP_CONFIG} )

set(ctkDICOMQuery_DB_FILE ${CTK_BINARY_DIR}/Testing/Temporary/ctkDICOMApplicationTest1.db)
Expand Down
4 changes: 2 additions & 2 deletions Applications/Testing/Cpp/dcmqrscp.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ HostTable BEGIN
#united2 = (UNITED2, unitedhost2, 104)
#unitedMRcompany = united1, united2
#
commontk = (CTK_AE,localhost,11112)
commontk_client = (CTK_CLIENT_AE, localhost, 11113)
commontk = (CTK_AE,@DCMQRSCP_HOSTNAME@,11112)
commontk_client = (CTK_CLIENT_AE, @DCMQRSCP_HOSTNAME@, 11113)
#
HostTable END

Expand Down

0 comments on commit 6f7d7dc

Please sign in to comment.