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);
|
requestip_header);
|
||||||
if (xip == NULL)
|
if (xip == NULL)
|
||||||
xip = ip ? octstr_duplicate(ip) : NULL;
|
xip = ip ? octstr_duplicate(ip) : NULL;
|
||||||
if (l && list_len(l) > 1) {
|
if (detokenizerfuncs && ((l && list_len(l) > 1) || xip))
|
||||||
if (detokenizerfuncs)
|
phonenum = detokenizerfuncs->mms_detokenize((l && list_len(l) > 1) ?
|
||||||
phonenum = detokenizerfuncs->mms_detokenize(list_get(l, list_len(l) - 1), xip);
|
list_get(l, list_len(l) - 1) : octstr_imm("x"),
|
||||||
}
|
xip);
|
||||||
if (l)
|
if (l)
|
||||||
list_destroy(l, (list_item_destructor_t *)octstr_destroy);
|
list_destroy(l, (list_item_destructor_t *)octstr_destroy);
|
||||||
if (xip)
|
if (xip)
|
||||||
|
|
Loading…
Reference in New Issue