1
0
Fork 0

minor addition to mmsbox_resolve interface

This commit is contained in:
bagyenda 2007-09-20 13:55:36 +00:00
parent c845a51c10
commit 281b7c220b
3 changed files with 6 additions and 4 deletions

View File

@ -495,7 +495,7 @@ Octstr *get_mmsbox_queue_dir(Octstr *from, List *to, MmscGrp *m,
fto = r ? octstr_duplicate(r) : NULL; fto = r ? octstr_duplicate(r) : NULL;
} }
_mcid = rfs->mmsbox_resolve(from,fto,rfs_data, rfs_settings); _mcid = rfs->mmsbox_resolve(from,fto,octstr_get_cstr(m->id), rfs_data, rfs_settings);
if (_mcid == NULL || octstr_len(_mcid) == 0) { if (_mcid == NULL || octstr_len(_mcid) == 0) {
*mmc_id = NULL; *mmc_id = NULL;

View File

@ -25,7 +25,8 @@ static int _resolvermodule_fini(void *module_data)
return 0; return 0;
} }
static Octstr *_resolve(Octstr * pfrom, Octstr *pto, void *module_data, void *settings_p) static Octstr *_resolve(Octstr * pfrom, Octstr *pto, char *in_mmsc,
void *module_data, void *settings_p)
{ {
/* route normally to mms-service. */ /* route normally to mms-service. */
return NULL; return NULL;

View File

@ -29,10 +29,11 @@ typedef struct MmsBoxResolverFuncStruct {
/* Looks up the sender and receiver msisdns and returns the ID of the MMC connection through which /* Looks up the sender and receiver msisdns and returns the ID of the MMC connection through which
* the received message should be sent. * the received message should be sent.
* * Note: This function may modify sender and/or receive to match prefered usage.
* Return NULL or the empty string to send the message to a service (normal behavior) * Return NULL or the empty string to send the message to a service (normal behavior)
*/ */
Octstr *(*mmsbox_resolve)(Octstr *pfrom, Octstr *pto, void *module_data, void *settings); Octstr *(*mmsbox_resolve)(Octstr *pfrom, Octstr *pto, char *from_mmsc,
void *module_data, void *settings);
int (*mmsbox_resolvermodule_fini)(void *module_data); int (*mmsbox_resolvermodule_fini)(void *module_data);
} MmsBoxResolverFuncStruct; } MmsBoxResolverFuncStruct;