pynetdicom on_association_requested() get request type (C_FIND, C_ECHO etc)

120 views Asked by At

I'm not able to find the variable that holds the Message Type in event name, "on_association_requested" and "on_association_released" methods. If we give event.event.name it results in "EVT_REQUESTED" or "EVT_RELEASED".

INCOMING DIMSE MESSAGE

D: Message Type : C-ECHO RQ

D: Presentation Context ID : 1

D: Message ID : 1

D: Data Set : None

END OF DIMSE MESSAGE

I tried to get the Message Type, I was not able to find how.

1

There are 1 answers

4
scaramallion On

There is no DIMSE message type during association request. Only after an association has already been through request and acceptance are DIMSE messages allowed to be sent.