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,