minor addition to mmsbox_resolve interface
This commit is contained in:
parent
c845a51c10
commit
281b7c220b
|
@ -495,7 +495,7 @@ Octstr *get_mmsbox_queue_dir(Octstr *from, List *to, MmscGrp *m,
|
|||
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) {
|
||||
*mmc_id = NULL;
|
||||
|
|
|
@ -25,7 +25,8 @@ static int _resolvermodule_fini(void *module_data)
|
|||
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. */
|
||||
return NULL;
|
||||
|
|
|
@ -29,10 +29,11 @@ typedef struct MmsBoxResolverFuncStruct {
|
|||
|
||||
/* Looks up the sender and receiver msisdns and returns the ID of the MMC connection through which
|
||||
* 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)
|
||||
*/
|
||||
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);
|
||||
} MmsBoxResolverFuncStruct;
|
||||
|
|
Loading…
Reference in New Issue