[OpenSER-Users] bflag in perl module

Mik Cheez michael_bulk at wildgate.com
Tue Jun 24 05:55:48 CEST 2008


Julien mangeard wrote:
> Hi,
> 
> Can I get the bflag value in a script loaded with the perl module ?
> It seams to me that the 'isbflagset' function isn't implemented.
> 
> Do you know another manner to obtain this value ?
> 
> Best Regards,
> 
> 
> -- 
> Julien Mangeard
> 
> 

Julien,

It's in a pseudo variable as of 1.2.  You should be able to do something 
straightforward like this in your Perl script:

sub function_name {
         my $m = shift; # headers
         my $bflag;

         $srcip = $m->pseudoVar("\$bf");
	...
	...
}

$bf is the decimal value stored

Here's the documentation relating to the pseudo variables:
http://openser.org/dokuwiki/doku.php/utils:flags




More information about the Users mailing list