Hi,
I have
-- flags BLAH : 1, DUMMY : 12
onsend_route_reply=yes
route { ...
setflag(BLAH);
if(!t_relay()) sl_reply_error(); }
onsend_route { if(is_reply() && isflagset(BLAH)) do_things(); } --
My discovery has been that isflagset(BLAH) always == FALSE _unless_ an onreply_route has been armed for the request, regardless of whether it is necessary.
In other words, the following causes isflagset(BLAH) to == TRUE (if set, when appropriate) in the onsend_route for the reply:
-- flags BLAH : 1, DUMMY : 12
onsend_route_reply=yes
onreply_route[BOGUS] { exit; }
route { ...
setflag(BLAH);
t_on_reply("BOGUS");
if(!t_relay()) sl_reply_error(); }
onsend_route { if(is_reply() && isflagset(BLAH)) do_things(); } --
But without the onreply_route, it doesn't work.