1
0
Fork 0

fixed dlr-url call when message not delivered

This commit is contained in:
bagyenda 2011-01-03 06:57:50 +00:00
parent cdabed7443
commit eba4e9e09d
3 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,5 @@
2011-01-03 P. A. Bagyenda <bagyenda@dsmagic.com>
* Don't forget to call dlr URL even for failed transmit (with no retry). Thanks to Piotr Isajew (pki at ex.com.pl)
2010-12-09 P. A. Bagyenda <bagyenda@dsmagic.com> 2010-12-09 P. A. Bagyenda <bagyenda@dsmagic.com>
* Changes to mmsbox to allow it send multiple recipients per MM7 transaction * Changes to mmsbox to allow it send multiple recipients per MM7 transaction
2010-11-30 P. A. Bagyenda <bagyenda@dsmagic.com> 2010-11-30 P. A. Bagyenda <bagyenda@dsmagic.com>

View File

@ -1,6 +1,6 @@
dnl Mbuni - Open Source MMS Gateway dnl Mbuni - Open Source MMS Gateway
dnl dnl
dnl Copyright (C) 2003 - 2008, Digital Solutions Ltd. - http://www.dsmagic.com dnl Copyright (C) 2003 - 2011, Digital Solutions Ltd. - http://www.dsmagic.com
dnl dnl
dnl Paul Bagyenda <bagyenda@dsmagic.com> dnl Paul Bagyenda <bagyenda@dsmagic.com>
dnl dnl
@ -368,7 +368,7 @@ cat<<X
License: License:
Mbuni (version $M_VERSION) - Open Source MMS Gateway - http://www.mbuni.org/ Mbuni (version $M_VERSION) - Open Source MMS Gateway - http://www.mbuni.org/
Copyright (C) 2003 - 2008, Digital Solutions Ltd. - http://www.dsmagic.com Copyright (C) 2003 - 2011, Digital Solutions Ltd. - http://www.dsmagic.com
This program is free software, distributed under the terms of This program is free software, distributed under the terms of
the GNU General Public License, with a few exceptions granted (see LICENSE) the GNU General Public License, with a few exceptions granted (see LICENSE)

View File

@ -1563,9 +1563,11 @@ static int mms_sendtommsc(MmscGrp *mmc, MmsEnvelope *e,
if (rr_url) if (rr_url)
mms_dlr_url_put(id, "read-report", groupid, rr_url, orig_transid); mms_dlr_url_put(id, "read-report", groupid, rr_url, orig_transid);
ret = MMS_SEND_OK; ret = MMS_SEND_OK;
} else } else {
ret = retry ? MMS_SEND_ERROR_TRANSIENT : MMS_SEND_ERROR_FATAL; ret = retry ? MMS_SEND_ERROR_TRANSIENT : MMS_SEND_ERROR_FATAL;
if (!retry && dlr_url)
mms_dlr_url_put(e->msgId, "delivery-report", groupid, dlr_url, orig_transid);
}
*new_msgid = id; *new_msgid = id;
octstr_destroy(groupid); octstr_destroy(groupid);