Worklist callback cancel not working.

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
anilta
Posts: 60
Joined: Thu, 2014-04-10, 08:50

Worklist callback cancel not working.

#1 Post by anilta »

I have created a MWL callback function, our own, same like "DcmFindSCUCallback".
We are querying for only 200 MWL entries. There are 2000 .wl lists in Worklist server, we use wlmscpfs.

We maintain a count, and once we receive, we request cancel,

Code: Select all

 
struct ProgressCallbackInfo
{
   T_ASC_Association          *assoc;
   T_ASC_PresentationContextID presId;
   void                       *instance;
};

if (maxResultsExceeded)
   {
        ProgressCallbackInfo *myCallbackData = OFstatic_cast(ProgressCallbackInfo*, pCallbackData);
        if (myCallbackData && pRequest)
       {
         const OFCondition cond = DIMSE_sendCancelRequest(myCallbackData->assoc, myCallbackData->presId, pRequest->MessageID);
         if (cond.bad())
         {
                     // LOG ...
         }
      }
   }
Even though, after 200, we send cancel request, we still receive 2000 callbacks.

Is there any thing missing in my code?

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

Re: Worklist callback cancel not working.

#2 Post by J. Riesmeier »

Did you already check the log output on the SCP side, i.e. whether the C-CANCEL-RQ has been received?

By the way, the "findscu" command line tool also has a --cancel option, which might help for testing purposes:

Code: Select all

  other network options:
          --cancel              [n]umber: integer
                                cancel after n responses (default: never)

anilta
Posts: 60
Joined: Thu, 2014-04-10, 08:50

Re: Worklist callback cancel not working.

#3 Post by anilta »

Yes. I see clearly, our Cancel messages going to the server and displayed in their log windows.
I tested in both JDicom and wlmscpfs servers.

We expect the Service Class Providers should send us the last Worklist with "Success" after we send cancel command.

Or we should close the association forcibly after we send cancel?

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

Re: Worklist callback cancel not working.

#4 Post by J. Riesmeier »

According to the DICOM standard (PS 3.4 Section K.4.1.3), you'll get a DIMSE status of FE00H (cancel) from the SCP.

Post Reply

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest