[PATCH] SQLBOX Delivery Reports Insert

"Mi Reflejo" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
*gw/sqlbox.c
-Removed unnecessary INSERT's into database.
bearerbox_to_smsbox shouldn't INSERT delivery reports as type "MO".
condition added to discard delivery reports.
sqlbox-report_mo.patch (application/octet-stream, 431 B)
--- gw/sqlbox.c.orig    2006-05-13 00:51:32.000000000 -0600
+++ gw/sqlbox.c 2006-05-13 00:49:42.000000000 -0600
@@ -341,7 +341,7 @@
                msg_destroy(msg);
                break;
        }
-       if (msg_type(msg) == sms) {
+       if ((msg_type(msg) == sms) && (msg->sms.sms_type != report_mo)) {
                gw_sql_save_msg(msg, octstr_imm("MO"));
        }
        send_msg(conn->smsbox_connection, conn, 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.