before route[relay] i set $avp(x)="test" on the managed onreply_route i can use $avp(x). on the default onreply_route it is not available. meaning <null>.
is that how it suppose to work?
it makes it difficult to block a certain 200ok, like i meant to, on the issue - "how to drop 200ok and survive?"
thanks, uri
Uri,
AVPs are associated with particular transactions, and that context is visible only in an onreply_route that is specifically armed when that transaction is created (i.e. via t_relay()):
t_on_reply("MY_REPLY_ROUTE");
The default onreply_route processes replies statelessly -- that's why it's the default onreply_route, when no other will do. It doesn't have access to any of the attributes of any given TM transaction, including AVPs.
-- Alex
Suggestions for how to solve your problem:
- Create your own associations via 'htable':
http://kamailio.org/docs/modules/4.3.x/modules/htable.html
- Use a Record-Route parameter of some description:
http://kamailio.org/docs/modules/4.3.x/modules/rr.html#add-rr-param-id