1
0
Fork 0

MMSC fix: Do not copy DLRs to VASP who receives copies of local messages

This commit is contained in:
bagyenda 2006-09-02 06:26:13 +00:00
parent 64c2ffe8ed
commit c73765c7a9
1 changed files with 3 additions and 2 deletions

View File

@ -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,