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(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, 
including this one.


The workaround that I can suggest right now, for those needing it at 
runtime, use Lua or other embedded scripting options. I will put it 
anyhow with high priority in my to-do list.


Cheers,
Daniel




--
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


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, 
including this one.


The workaround that I can suggest right now, for those needing it at 
runtime, use Lua or other embedded scripting options. I will put it 
anyhow with high priority in my to-do list.


Cheers,
Daniel

--
Daniel-Constantin Mierla
http://www.asipto.com
http://linkedin.com/in/miconda
http://twitter.com/miconda


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


[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 there a bug?

-- juha

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


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 j...@tutpro.com 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);

 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 there a bug?

 -- juha

 ___
 SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
 sr-users@lists.sip-router.org
 http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users