If we will add the $true to the pv module, then we should leave the warning as is. We have a workaround for 3.0.x and we will have $true in >= 3.1.x.
Thanks, Ovidiu
On Wed, Apr 7, 2010 at 2:36 PM, Daniel-Constantin Mierla miconda@gmail.com wrote:
On 4/7/10 8:18 PM, Ovidiu Sas wrote:
Yes, $var(true) works. I was asking for a new PV: '$true' to be implemented in the core and be visible for all flavors.
$true as PV will be added to pv module and will be visible to all flavours.
I was refering to #!KAMAILIO as an option to disable the warning which happens now for 'while (true)' case.
I would like to be able to do 'while ( $true ) {}' instead of 'while ( $var(true) ) {}'. And I would like to do this regardless of flavor.
And speaking of flavors, we should have a page on the wiki describing all the subtle differences between flavors (maybe there is one, but I couldn't find it).
Not a wiki, but there are some pages describing what is Kamailio 3.0 in the context of SIP Router project: http://sip-router.org/kamailio-release/ http://www.kamailio.org/w/kamailio-sip-router-releases/
A wiki page would be easier to maintain by community.
Cheers, Daniel
Thanks, Ovidiu
On Wed, Apr 7, 2010 at 2:07 PM, Juha Heinanenjh@tutpro.com wrote:
Ovidiu Sas writes:
> Ohh ... it is $var(true) and not $true .... > I think having a $true pvar would be nice. > But I would like to have the $true pvar for all flavors, not only for > KAMAILIO flavor.
ovidiu,
i have not defined
#!KAMAILIO
and $var(true) works. i don't know what the default flavor is.
-- juha
-- Daniel-Constantin Mierla * http://www.asipto.com/ * http://twitter.com/miconda * http://www.linkedin.com/in/danielconstantinmierla