On Thu, Dec 23, 2010 at 04:47:08PM +0100, Piotr Isajew wrote:

> I'm attaching a patch that fixes those problems for me. However
> after applying it I noticed that DLR url isn't called for failed
> messages:

I think I found the solution:

--- mbuni-cvs-orig/mmsbox/bearerbox.c
+++ mbuni-cvs/mmsbox/bearerbox.c
@@ -1563,8 +1563,14 @@
          if (rr_url)
               mms_dlr_url_put(id, "read-report", groupid, rr_url, 
orig_transid);         
          ret = MMS_SEND_OK;
-     } else 
-         ret = retry ? MMS_SEND_ERROR_TRANSIENT : MMS_SEND_ERROR_FATAL; 
+     } else {
+         ret = retry ? MMS_SEND_ERROR_TRANSIENT : MMS_SEND_ERROR_FATAL;
+         if(!retry) {
+           if(dlr_url)
+             mms_dlr_url_put(e->msgId, "delivery-report", groupid, dlr_url, 
orig_transid);
+         }
+     }
      
      *new_msgid = id;

Attachment: pgptaeu1cUCFx.pgp
Description: PGP signature

_______________________________________________
Devel mailing list
Devel@mbuni.org
http://lists.mbuni.org/mailman/listinfo/devel

Reply via email to