On 12/16/10 12:55 PM, Juha Heinanen wrote:
is there a means to test method of sip request against
a pseudo
variable, which would contain an integer bitmap of methods corresponding
to enum request_method values?
I remember some similar topic in the past, so for
easiness, I just
committed a new PV $rmid that returns the integer id of request method type.
For released 3.x, try to see if next piece of cfg works:
$var(m) = 0 + $rm;
if($var(m) & $var(yourmethodbitmask)) {
...
}
$rm stores internally the integer id, but its definition sets its type
to string which returns the string representation.
Cheers,
Daniel
--
Daniel-Constantin Mierla
Kamailio (OpenSER) Advanced Training
Jan 24-26, 2011, Irvine, CA, USA
http://www.asipto.com