Re: [SR-Users] Operator !~

2013-04-09 Thread Manwe
El Tue, 9 Apr 2013 18:16:52 +0200 José Luis Millán escribió: > Jon, > > I guess you can find the response in [1] > > ``` > not operator in if() > > if (!$fd=~“regexp”) must now be written as if (!($fd=~“regexp”)) for what > reason ever. > > Notice: the operator !~ seems not to be working for

Re: [SR-Users] Operator !~

2013-04-09 Thread José Luis Millán
Jon, I guess you can find the response in [1] ``` not operator in if() if (!$fd=~“regexp”) must now be written as if (!($fd=~“regexp”)) for what reason ever. Notice: the operator !~ seems not to be working for some reason as well. e.g.: ($fd !~ 'not this') must be replaced with !($fd =~ 'not th

[SR-Users] Operator !~

2013-04-09 Thread Manwe
Hi all I was checking for an operator not matching regular expression. Acording to the doc we have =~ and !~ for matching and not matching. http://www.kamailio.org/wiki/cookbooks/3.3.x/core#script_statements I tried this one: if(!is_domain_local("$rd") && $rd !~ "^.+\.local$") Resulting on th

Re: [SR-Users] [ ... ] operator

2012-09-07 Thread Daniel-Constantin Mierla
Hello, On 9/7/12 10:10 AM, Vitaliy Aleksandrov wrote: Hello, On 9/6/12 6:33 PM, Vitaliy Aleksandrov wrote: "Migrating kamailio v1.5.x to v.3.0.0" says that "test" operator no longer exists. But it is mentioned in Core Cookbook 3.2 (and 3.3) and can confuse someone. Can somebody remove it

Re: [SR-Users] [ ... ] operator

2012-09-07 Thread Vitaliy Aleksandrov
Hello, On 9/6/12 6:33 PM, Vitaliy Aleksandrov wrote: "Migrating kamailio v1.5.x to v.3.0.0" says that "test" operator no longer exists. But it is mentioned in Core Cookbook 3.2 (and 3.3) and can confuse someone. Can somebody remove it from the documentation ? Indeed the operator was removed

Re: [SR-Users] [ ... ] operator

2012-09-07 Thread Daniel-Constantin Mierla
Hello, On 9/6/12 6:33 PM, Vitaliy Aleksandrov wrote: "Migrating kamailio v1.5.x to v.3.0.0" says that "test" operator no longer exists. But it is mentioned in Core Cookbook 3.2 (and 3.3) and can confuse someone. Can somebody remove it from the documentation ? Indeed the operator was removed,

[SR-Users] [ ... ] operator

2012-09-06 Thread Vitaliy Aleksandrov
"Migrating kamailio v1.5.x to v.3.0.0" says that "test" operator no longer exists. But it is mentioned in Core Cookbook 3.2 (and 3.3) and can confuse someone. Can somebody remove it from the documentation ? ___ SIP Express Router (SER) and Kamailio (O

Re: [SR-Users] ~ operator has no effect

2011-05-24 Thread Daniel-Constantin Mierla
Hello, I re-added the operator over the weekend in master branch. It would be great if you can test and report eventual issues. Thanks, Daniel On 5/19/11 9:48 AM, Daniel-Constantin Mierla wrote: On 5/18/11 8:36 AM, Juha Heinanen wrote: Brandon Armstead writes: Quick correction: $var

Re: [SR-Users] ~ operator has no effect

2011-05-19 Thread Daniel-Constantin Mierla
On 5/18/11 8:36 AM, Juha Heinanen wrote: Brandon Armstead writes: Quick correction: $var(test) = $var(test)& ~ 2; that is what i actually tried to do in the first place and it had no effect. luckily m4 exists. Looks like some operators are missing in the new core cfg interpreter, incl

Re: [SR-Users] ~ operator has no effect

2011-05-17 Thread Juha Heinanen
Brandon Armstead writes: >Quick correction: $var(test) = $var(test) & ~ 2; that is what i actually tried to do in the first place and it had no effect. luckily m4 exists. -- juha ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mail

Re: [SR-Users] ~ operator has no effect

2011-05-17 Thread Brandon Armstead
Juha, Quick correction: $var(test) = $var(test) & ~ 2; On Tue, May 17, 2011 at 8:13 AM, Juha Heinanen wrote: > according to core cookbook: > > ~ : bitwise NOT > > however, looks like it has no effect. i have > >$var(test) = ~2; >xlog("L_INFO", "test is <$var(test)>\n"); > >

Re: [SR-Users] ~ operator has no effect

2011-05-17 Thread Brandon Armstead
Juha, Try $var(test) = $var(test) ~ 2; Sincerely, Brandon Armstead On Tue, May 17, 2011 at 8:13 AM, Juha Heinanen wrote: > according to core cookbook: > > ~ : bitwise NOT > > however, looks like it has no effect. i have > >$var(test) = ~2; >xlog("L_INFO", "test is <$var(te

[SR-Users] ~ operator has no effect

2011-05-17 Thread Juha Heinanen
according to core cookbook: ~ : bitwise NOT however, looks like it has no effect. i have $var(test) = ~2; xlog("L_INFO", "test is <$var(test)>\n"); and i get to syslog: May 17 18:10:40 sip /usr/sbin/sip-proxy[29280]: INFO: test is <2> have i misunderstood the operator or is t