I tested xflags by making these calls in a route block:
INFO(********** setting flag 19);
setflag(19);
INFO(********** setting xflag 19);
setxflag(19);
and these calls in onreply_route block:
if (isflagset(19))
INFO(********* flag 19 is set);
else
INFO(********* flag 19 is NOT set);
if (isxflagset(19))
INFO(********* xflag 19 is set);
else
INFO(********* xflag 19 is NOT set);
The result to syslog was:
Mar 25 10:51:50 trout /usr/bin/sip-proxy[17939]: INFO: ********** setting flag 19
Mar 25 10:51:50 trout /usr/bin/sip-proxy[17939]: INFO: ********** setting xflag 19
Mar 25 10:51:50 trout /usr/bin/sip-proxy[17867]: INFO: ********* flag 19 is set
Mar 25 10:51:50 trout /usr/bin/sip-proxy[17867]: INFO: ********* xflag 19 is NOT set
-- Juha