Submitted...

"Rene Kluwen" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
.minor patch to smppbox.

 

It now sends a nack to bearerbox upon receiving an invalid MO/DLR, so
messages won't stay in store.

Patch by Victor Luchitz.

 

== Rene
pdu_failed_nack.patch (application/octet-stream, 507 B)
Index: smppbox.c
===================================================================
--- smppbox.c	(revision 47)
+++ smppbox.c	(working copy)
@@ -1913,6 +1913,12 @@
 				octstr_destroy(msgid);
 			gwlist_destroy(pdulist, NULL);
 		}
+		else {
+			/* Send NACK to bearerbox, otherwise message remains in store file. */
+			warning(0, "msg_to_pdu failed, sending negative ack");
+			mack->ack.nack = ack_failed;
+			send_msg(box->bearerbox_connection, box, mack);
+		}		
 	}
         msg_destroy(msg);
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.