Or using bitwise operations, you dump only the value of a single flag.
regards,
bogdan
Klaus Darilion wrote:
A flag is binary, thus it is set or unset - 0 or 1.
all the flags are stored in a bitfield. You can dump the whole flags
using the pseudo variables:
http://openser.org/dokuwiki/doku.php/pseudovariables:1.2.x
$bf - reference to branch flags of branch 0 (RURI) - decimal output
$bF - reference to branch flags of branch 0 (RURI) - hexa output
$mf - reference to flags set for current SIP request
$mF -reference to flags set for current SIP request in hexa
$sf - reference to script flags - decimal output
$sF - reference to script flags - hexa output
klaus
Daniel Grotti schrieb:
Thank for your answer.
But I'd like to know and read on std output the real value of bflag,
not that it's set.
I don't know if it's possible.
Ex.:
....
....
xlog("L_INFO", "the value of branch flag is [STRING]");
if (method=="INVITE")
{ setbflag(6);
xlog("L_INFO","the value of bflag is now [STRING]");
};
....
..
so, which kind of [STRING] I have to put in?
Bye
daniel
Marcello Lupo wrote:
Hi Daniel,
if(isbflagset(6)) {
xlog("L_NOTICE","BFLAG 6 is SET");
}
Bye,
Marcello
Daniel wrote:
Hi everybody,
I'm using openser 1.2.2 and I'd like to know the result of some
expression used in my main route.
For exemple, How can I read the answer of "isbflagset (6)"
expression and write it on standard output with xlog ?
thanks.
daniel
Daniel
________________________
e-mail : [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
------------------------------------------------------------------------
_______________________________________________
Users mailing list
Users@openser.org
http://openser.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@openser.org
http://openser.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@openser.org
http://openser.org/cgi-bin/mailman/listinfo/users