*** empty log message ***
This commit is contained in:
parent
8ba2b9b126
commit
41fba4873d
|
@ -161,7 +161,10 @@ Octstr *mmsbox_get_report_info(MmsMsg *m, MmscGrp *mmsc, Octstr *out_mmc_id, cha
|
||||||
Octstr *msgid)
|
Octstr *msgid)
|
||||||
{
|
{
|
||||||
Octstr *res;
|
Octstr *res;
|
||||||
if (out_mmc_id != NULL) { /* internal routing. */
|
|
||||||
|
if (mmsc == NULL)
|
||||||
|
res = NULL;
|
||||||
|
else if (out_mmc_id != NULL) { /* internal routing. */
|
||||||
if (m)
|
if (m)
|
||||||
fixup_relayed_report(m, mmsc, report_type, octstr_imm(""));
|
fixup_relayed_report(m, mmsc, report_type, octstr_imm(""));
|
||||||
res = NULL;
|
res = NULL;
|
||||||
|
@ -430,7 +433,7 @@ static int queue_dlr(MmscGrp *mmc, Octstr *from, Octstr *to, Octstr *msgid, Octs
|
||||||
rr_uri = mmsbox_get_report_info(m, mmc, mmc_id, "delivery-report", status, rqh, NULL, 0, msgid);
|
rr_uri = mmsbox_get_report_info(m, mmc, mmc_id, "delivery-report", status, rqh, NULL, 0, msgid);
|
||||||
|
|
||||||
qf = qfs->mms_queue_add(from, lto, NULL,
|
qf = qfs->mms_queue_add(from, lto, NULL,
|
||||||
mmc->id, mmc_id,
|
mmc ? mmc->id : NULL, mmc_id,
|
||||||
0, time(NULL) + default_msgexpiry, m, NULL,
|
0, time(NULL) + default_msgexpiry, m, NULL,
|
||||||
NULL, NULL,
|
NULL, NULL,
|
||||||
rr_uri, NULL,
|
rr_uri, NULL,
|
||||||
|
@ -441,7 +444,7 @@ static int queue_dlr(MmscGrp *mmc, Octstr *from, Octstr *to, Octstr *msgid, Octs
|
||||||
NULL);
|
NULL);
|
||||||
if (qf) {
|
if (qf) {
|
||||||
/* Log to access log */
|
/* Log to access log */
|
||||||
mms_log("Received DLR", from, lto, -1, msgid, status, mmc->id, "MMSBox", NULL, NULL);
|
mms_log("Received DLR", from, lto, -1, msgid, status, mmc ? mmc->id : NULL, "MMSBox", NULL, NULL);
|
||||||
ret = 0;
|
ret = 0;
|
||||||
} else
|
} else
|
||||||
ret = -1;
|
ret = -1;
|
||||||
|
|
Loading…
Reference in New Issue