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
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
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
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
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
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,
"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
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
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
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
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");
>
>
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
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
13 matches
Mail list logo