@@ -148,6 +148,7 @@ public async Task OnReceiveAssociationRequestAsync(DicomAssociation association)
148
148
149
149
if ( _associationDataProvider is null )
150
150
{
151
+ _associationInfo . Errors = $ "Internal error: association data provider not found.";
151
152
throw new ServiceException ( $ "{ nameof ( UserState ) } must be an instance of IAssociationDataProvider") ;
152
153
}
153
154
@@ -165,7 +166,7 @@ public async Task OnReceiveAssociationRequestAsync(DicomAssociation association)
165
166
166
167
if ( ! await IsValidSourceAeAsync ( association . CallingAE , association . RemoteHost ) . ConfigureAwait ( false ) )
167
168
{
168
- _associationInfo . Errors = "Invalid source" ;
169
+ _associationInfo . Errors = $ "Invalid source. Called AE: { association . CalledAE } . Calling AE: { association . CallingAE } . IP: { association . RemoteHost } . ";
169
170
170
171
await SendAssociationRejectAsync (
171
172
DicomRejectResult . Permanent ,
@@ -175,7 +176,7 @@ await SendAssociationRejectAsync(
175
176
176
177
if ( ! await IsValidCalledAeAsync ( association . CalledAE ) . ConfigureAwait ( false ) )
177
178
{
178
- _associationInfo . Errors = "Invalid MONAI AE Title" ;
179
+ _associationInfo . Errors = "Invalid MONAI AE Title. Called AE: {association.CalledAE}. Calling AE: {association.CallingAE}. IP: {association.RemoteHost}. " ;
179
180
180
181
await SendAssociationRejectAsync (
181
182
DicomRejectResult . Permanent ,
@@ -189,6 +190,7 @@ await SendAssociationRejectAsync(
189
190
{
190
191
if ( ! _associationDataProvider . Configuration . Value . Dicom . Scp . EnableVerification )
191
192
{
193
+ _associationInfo . Errors = "Verification service disabled. Called AE: {association.CalledAE}. Calling AE: {association.CallingAE}. IP: {association.RemoteHost}." ;
192
194
_logger ? . VerificationServiceDisabled ( ) ;
193
195
await SendAssociationRejectAsync (
194
196
DicomRejectResult . Permanent ,
@@ -202,6 +204,7 @@ await SendAssociationRejectAsync(
202
204
{
203
205
if ( ! _associationDataProvider . CanStore )
204
206
{
207
+ _associationInfo . Errors = "Disk pressure. Called AE: {association.CalledAE}. Calling AE: {association.CallingAE}. IP: {association.RemoteHost}." ;
205
208
await SendAssociationRejectAsync (
206
209
DicomRejectResult . Permanent ,
207
210
DicomRejectSource . ServiceUser ,
0 commit comments