Re: [SR-Users] correct way to define flags in Kamailio 3.0.3

2010-10-04 Thread Daniel-Constantin Mierla
Hello Andrew, On 10/4/10 11:03 AM, Andrew Pogrebennyk wrote: What is the correct way to write flags in Kamailio 3.0.3? I've tried both enum-like way: "flags a, b;" and the macro way: "#!define a 1", but neither has worked. I'm getting a syntax error trying to used defined flag, e.g.: modpar

Re: [SR-Users] correct way to define flags in Kamailio 3.0.3

2010-10-04 Thread Andrew Pogrebennyk
Daniel, On 04.10.2010 12:30, Daniel-Constantin Mierla wrote: unfortunately in version 3.0.x there were no defines with values and the enum-like support is only for SIP message/transaction flags. Branch flags and script flags were inherited from kamailio 1.5 which had no enum-like support. SIP

[SR-Users] correct way to define flags in Kamailio 3.0.3

2010-10-04 Thread Andrew Pogrebennyk
What is the correct way to write flags in Kamailio 3.0.3? I've tried both enum-like way: "flags a, b;" and the macro way: "#!define a 1", but neither has worked. I'm getting a syntax error trying to used defined flag, e.g.: modparam("usrloc", "nat_bflag", FLB_NATB) In 3.1 though the macro wor