modules_s/domain domain_lookup() function can be used to assign domain
attributes to avps.
for example, lookup_domain("$fd", "foo.bar"), assigns attributes of
domain foo.bar to avps $fd.x, where x is name of attribute.
my question is, how can i index these avps if there is more than one
with the same name?
statement
$var(attr) = $fd.attr[];
does not give syntax errors, but
$var(attr) = $fd.attr[$var(i)];
produces
0(7368) : <core> [cfg.y:3379]: parse error in config file
/etc/sip-proxy/sip-proxy.cfg, line 3174, column 24-30: syntax error
0(7368) : <core> [cfg.y:3379]: parse error in config file
/etc/sip-proxy/sip-proxy.cfg, line 3174, column 24-30: bad command
0(7368) : <core> [cfg.y:3382]: parse error in config file
/etc/sip-proxy/sip-proxy.cfg, line 3174, column 31: bad command
0(7368) : <core> [cfg.y:3382]: parse error in config file
/etc/sip-proxy/sip-proxy.cfg, line 3174, column 31: bad command
-- juha