From c73765c7a95fe2a30a7255dd4353130163496f8d Mon Sep 17 00:00:00 2001 From: bagyenda <> Date: Sat, 2 Sep 2006 06:26:13 +0000 Subject: [PATCH] MMSC fix: Do not copy DLRs to VASP who receives copies of local messages --- mbuni/mmsc/mmsglobalsender.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mbuni/mmsc/mmsglobalsender.c b/mbuni/mmsc/mmsglobalsender.c index 3b9cd29..bca87d3 100644 --- a/mbuni/mmsc/mmsglobalsender.c +++ b/mbuni/mmsc/mmsglobalsender.c @@ -179,7 +179,7 @@ static int sendMsg(MmsEnvelope *e) if (j > 0 && j - 1 + sizeof "/TYPE=PLMN" == len) phonenum = octstr_copy(to->rcpt, 0, j); else if (k > 0 && k + sizeof "/TYPE=IPv" == len) { - if (settings->mms2mobile) { /* Send a copy to this VASP. */ + if (settings->mms2mobile && e->msgtype == MMS_MSGTYPE_SEND_REQ) { /* Send a copy to this VASP. */ Octstr *xerr = NULL; int res = mms_sendtovasp(settings->mms2mobile, e->from, to->rcpt, @@ -229,7 +229,8 @@ static int sendMsg(MmsEnvelope *e) octstr_get_cstr(phonenum), octstr_get_cstr(mmsc)); if (octstr_compare(mmsc, settings->hostname) == 0) { - if (settings->mms2mobile) { /* Send a copy to this VASP. */ + if (settings->mms2mobile && + e->msgtype == MMS_MSGTYPE_SEND_REQ) { /* Send a copy to this VASP. */ Octstr *xerr = NULL; int res = mms_sendtovasp(settings->mms2mobile, e->from, to->rcpt,