mobilemessaging/smsmtm/servermtm/src/SMSSOUTB.CPP
changeset 23 238255e8b033
parent 0 72b543305e3a
child 47 5b14749788d7
child 49 2a272ef608c4
child 53 696bfeff199e
--- a/mobilemessaging/smsmtm/servermtm/src/SMSSOUTB.CPP	Tue Feb 02 00:08:43 2010 +0200
+++ b/mobilemessaging/smsmtm/servermtm/src/SMSSOUTB.CPP	Fri Apr 16 14:56:15 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 1999-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 1999-2010 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of "Eclipse Public License v1.0"
@@ -23,6 +23,7 @@
 #include <logsmspdudata.h>
 #include <smsulog.h>
 #include <logwraplimits.h>
+#include <exterror.h>
 
 #include "SMSSendSession.h"
 #include "SMSSPAN.H"
@@ -210,7 +211,15 @@
 			{
 			if (iCurrentMessage)
 				{
-				ReScheduleFailedMessageL();
+				if( (iProgress.iError == KErrGsmSMSShortMessageTransferRejected) || (iProgress.iError == KErrGsmSMSInvalidMandatoryInformation) || (iProgress.iError == KErrGsmSMSUnidentifiedSubscriber) ||
+					(iProgress.iError == KErrGsmSMSUnknownSubscriber) || (iProgress.iError == KErrGsmSMSNetworkOutOfOrder) )
+				    {
+					DoComplete(iProgress.iError);
+				    }
+				else
+				    {
+					ReScheduleFailedMessageL();
+				    }	
 				}
 			else
 				{