1
0
Fork 0

*** empty log message ***

This commit is contained in:
bagyenda 2007-12-18 07:12:12 +00:00
parent 6cad727c78
commit d06fa69106
1 changed files with 8 additions and 5 deletions

View File

@ -31,7 +31,7 @@ Octstr *incoming_qdir, *outgoing_qdir, *dlr_dir;
long mmsbox_maxsendattempts, mmsbox_send_back_off, default_msgexpiry;
long maxthreads = 0;
double queue_interval = -1;
Octstr *unified_prefix;
Octstr *unified_prefix = NULL;
int mt_multipart = 0;
MmsQueueHandlerFuncs *qfs; /* queue functions. */
MmsBoxResolverFuncStruct *rfs; /* resolver functions. */
@ -125,7 +125,7 @@ int mms_load_mmsbox_settings(mCfg *cfg, gwthread_func_t *mmsc_handler_func)
// unified_prefix = _mms_cfg_getx(grp, octstr_imm("unified-prefix"));
unified_prefix = _mms_cfg_getx(grp, octstr_imm("unified-prefix"));
mms_cfg_get_int(grp, octstr_imm("sendmms-port"), &sendmms_port.port);
#ifdef HAVE_LIBSSL
@ -514,12 +514,15 @@ Octstr *get_mmsbox_queue_dir(Octstr *from, List *to, MmscGrp *m,
Octstr *fto = gwlist_extract_first(to);
Octstr *xfrom = octstr_duplicate(from);
_mms_fixup_address(&xfrom, octstr_get_cstr(unified_prefix), 0);
_mms_fixup_address(&fto, octstr_get_cstr(unified_prefix), 0);
if (unified_prefix)
_mms_fixup_address(&xfrom, octstr_get_cstr(unified_prefix), 0);
if (unified_prefix)
_mms_fixup_address(&fto, octstr_get_cstr(unified_prefix), 0);
_mcid = rfs->mmsbox_resolve(xfrom,fto,octstr_get_cstr(m->id), rfs_data, rfs_settings);
_mms_fixup_address(&fto, octstr_get_cstr(unified_prefix), 1);
if (unified_prefix)
_mms_fixup_address(&fto, octstr_get_cstr(unified_prefix), 1);
if (fto)
gwlist_insert(to, 0, fto); /* put it back, after modification. */
if (xfrom) {