- Fix for send local MMS to VASP
This commit is contained in:
parent
0ccc7938d0
commit
feeb8ab13c
|
@ -217,8 +217,23 @@ static int sendMsg(MmsEnvelope *e)
|
||||||
octstr_get_cstr(phonenum), octstr_get_cstr(mmsc));
|
octstr_get_cstr(phonenum), octstr_get_cstr(mmsc));
|
||||||
|
|
||||||
if (octstr_compare(mmsc, settings->hostname) == 0) {
|
if (octstr_compare(mmsc, settings->hostname) == 0) {
|
||||||
res =
|
if (settings->mms2mobile) { /* Send a copy to this VASP. */
|
||||||
mms_sendtomobile(e->from, to->rcpt,
|
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->subject, e->fromproxy,
|
||||||
e->msgId, e->expiryt, msg, e->dlr,
|
e->msgId, e->expiryt, msg, e->dlr,
|
||||||
&err);
|
&err);
|
||||||
|
|
Loading…
Reference in New Issue