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);
}