[OpenSIPS-Users] avps in onreply_route

Fabian Gast fgast+opensips at only640k.net
Wed Feb 3 09:09:25 EST 2021


Hello @all,
maybe you could help me to understand the behaviour of avps in 
onreply_routes.

I have to configs:
a)
modparam("tm", "onreply_avp_mode", 1)
route {
         $avp(aa) = 1;
         t_relay();
}

onreply_route {
         xlog("$avp(aa)\n");  # avp NOT set!
}

b)
modparam("tm", "onreply_avp_mode", 1)
route {
         t_on_reply("1");
         $avp(aa) = 1;
         t_relay()
}

onreply_route[1] {
         xlog("$avp(aa)\n"); # avp set!
}

The second one works, but not the first one, which should be the same 
and i don't get why.

( Talking about Opensips 2.4.x )

Thanks!

Fabian



More information about the Users mailing list