Hello,


can you provide a sample how you use it for one or two of those functions? Parameters within quotes or not?


Cheers,
Daniel


On 18.12.18 09:30, YAS0 CANER wrote:
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.



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- www.asipto.com