at one point in my script i need to make this kind of domain_lookup:
xlog("L_INFO", "looking for domain $var(from_uri_domain)\n"); lookup_domain("$fd", "$var(from_uri_domain)");
looks like second argument is not understood. because i get into syslog
Jul 4 20:29:41 localhost /usr/sbin/sip-router[26491]: INFO: looking for domain test.fi Jul 4 20:29:41 localhost /usr/sbin/sip-router[26491]: ERROR: domain [domain_mod.c:531]: Cannot get domain name to lookup
the latter line comes, when i changed in lookup_domain this DBG to ERR:
if (get_str_fparam(&domain, msg, (fparam_t*)fp) != 0) { ERR("Cannot get domain name to lookup\n"); return -1; }
i cannot replace $var(from_uri_domain) with a select.
so is this it? should i go back to the original plan and add attribute support to k's domain module?
-- juha