Hello ,
is there a way to pass $avp values to t_relay function. i tried ;

t_relay
t_relay_udp/tcp
t_relay_to
t_relay_avp functions

log
 0(75155) ERROR: tm [tm.c:2456]: fixup_t_relay_to(): fixing ($avp(dd), 1)
 0(75155) ERROR: tm [tm.c:2459]: fixup_t_relay_to():  param  type 8
 0(75155) ERROR: tm [tm.c:2456]: fixup_t_relay_to(): fixing ($avp(flags), 2)
 0(75155) ERROR: tm [tm.c:2459]: fixup_t_relay_to():  param  type 11
 0(75155) CRITICAL: tm [tm.c:2549]: fixup_t_relay_to(): invalid flags <$avp(flags)>
 0(75155) ERROR: <core> [core/route.c:1154]: fix_actions(): fixing failed (code=-1) at cfg:/usr/local/etc/kamailio/kamailio.cfg:489
 0(75155) ERROR: <core> [core/rvalue.c:3860]: fix_rval_expr(): failure in cfg at line: 489 col: 42
 0(75155) ERROR: <core> [core/route.c:1154]: fix_actions(): fixing failed (code=-1) at cfg:/usr/local/etc/kamailio/kamailio.cfg:494
 0(75155) ERROR: <core> [core/route.c:1154]: fix_actions(): fixing failed (code=-1) at cfg:/usr/local/etc/kamailio/kamailio.cfg:495

in addition i have a look code , in fixup functions try to resolve host values so parameteres cannot find $avp . 

in conclusion , does kamailio need new function to pass $avp value? Can i try to code?

Thanks.