Index: gw/wap_push_ppg.c
===================================================================
RCS file: /home/cvs/gateway/gw/wap_push_ppg.c,v
retrieving revision 1.76
diff -a -u -r1.76 wap_push_ppg.c
--- gw/wap_push_ppg.c	12 Jan 2009 16:46:56 -0000	1.76
+++ gw/wap_push_ppg.c	13 Nov 2009 05:41:55 -0000
@@ -3319,10 +3319,6 @@
     long dlr_mask;
     long masklen;    
 
-    if (dlr_url == NULL) {
-        return 0; 
-    }
-
     dlrmaskos = http_header_value(headers, octstr_imm("X-Kannel-DLR-Mask"));
     if (dlrmaskos == NULL) { 
         return 0;
Index: gw/bb_smscconn.c
===================================================================
RCS file: /home/cvs/gateway/gw/bb_smscconn.c,v
retrieving revision 1.105
diff -a -u -r1.105 bb_smscconn.c
--- gw/bb_smscconn.c	31 Aug 2009 10:54:07 -0000	1.105
+++ gw/bb_smscconn.c	13 Nov 2009 05:41:55 -0000
@@ -471,7 +471,12 @@
          * the registered receiver numbers for specific smsbox'es.
          * Scope: external routing (to smsbox connections)
          */
-        rc = route_incoming_to_boxc(copy);
+        if (sms->sms.sms_type != report_mo || sms->sms.dlr_url)
+            rc = route_incoming_to_boxc(copy);
+        else {
+            msg_destroy(copy);
+            rc = 1;
+        }
     }
     
     if (rc == -1 || (rc != SMSCCONN_SUCCESS && rc != SMSCCONN_QUEUED)) {
