further improvements to detokenizer module usage - send request IP only to module if token missing
This commit is contained in:
parent
11574bb88e
commit
3e6f552a5f
|
@ -405,10 +405,10 @@ Octstr *mms_find_sender_msisdn(Octstr *send_url,
|
|||
requestip_header);
|
||||
if (xip == NULL)
|
||||
xip = ip ? octstr_duplicate(ip) : NULL;
|
||||
if (l && list_len(l) > 1) {
|
||||
if (detokenizerfuncs)
|
||||
phonenum = detokenizerfuncs->mms_detokenize(list_get(l, list_len(l) - 1), xip);
|
||||
}
|
||||
if (detokenizerfuncs && ((l && list_len(l) > 1) || xip))
|
||||
phonenum = detokenizerfuncs->mms_detokenize((l && list_len(l) > 1) ?
|
||||
list_get(l, list_len(l) - 1) : octstr_imm("x"),
|
||||
xip);
|
||||
if (l)
|
||||
list_destroy(l, (list_item_destructor_t *)octstr_destroy);
|
||||
if (xip)
|
||||
|
|
Loading…
Reference in New Issue