- Fix for send local MMS to VASP
This commit is contained in:
parent
0ccc7938d0
commit
feeb8ab13c
|
@ -217,11 +217,26 @@ static int sendMsg(MmsEnvelope *e)
|
|||
octstr_get_cstr(phonenum), octstr_get_cstr(mmsc));
|
||||
|
||||
if (octstr_compare(mmsc, settings->hostname) == 0) {
|
||||
res =
|
||||
mms_sendtomobile(e->from, to->rcpt,
|
||||
e->subject, e->fromproxy,
|
||||
e->msgId, e->expiryt, msg, e->dlr,
|
||||
&err);
|
||||
if (settings->mms2mobile) { /* Send a copy to this VASP. */
|
||||
Octstr *xerr = NULL;
|
||||
int res = mms_sendtovasp(settings->mms2mobile,
|
||||
e->from, to->rcpt,
|
||||
e->msgId,
|
||||
msg, &err);
|
||||
info(0, "%s Global Queue MMS Send: Local Msg copy to VASP (%s) - "
|
||||
"From %s, to %s, msgsize=%ld: err=%s",
|
||||
SEND_ERROR_STR(res),
|
||||
octstr_get_cstr(settings->mms2mobile->id),
|
||||
octstr_get_cstr(e->from), octstr_get_cstr(to->rcpt), e->msize,
|
||||
xerr ? octstr_get_cstr(xerr) : "(null)");
|
||||
if (xerr)
|
||||
octstr_destroy(xerr);
|
||||
}
|
||||
|
||||
res = mms_sendtomobile(e->from, to->rcpt,
|
||||
e->subject, e->fromproxy,
|
||||
e->msgId, e->expiryt, msg, e->dlr,
|
||||
&err);
|
||||
sent = 1;
|
||||
} else if (proxyrelays && list_len(proxyrelays) > 0) /* Step through proxies. */
|
||||
for (j = 0, m = list_len(proxyrelays); j<m; j++) {
|
||||
|
|
Loading…
Reference in New Issue