MMSC fix: Do not copy DLRs to VASP who receives copies of local messages
This commit is contained in:
parent
64c2ffe8ed
commit
c73765c7a9
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue