1
0
Fork 0

further improvements to detokenizer module usage - send request IP only to module if token missing

This commit is contained in:
bagyenda 2006-05-08 13:25:02 +00:00
parent 11574bb88e
commit 3e6f552a5f
1 changed files with 4 additions and 4 deletions

View File

@ -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)