[sr-dev] how to define an infinite while loop?
Daniel-Constantin Mierla
miconda at gmail.com
Wed Apr 7 20:36:54 CEST 2010
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 Heinanen<jh at 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
More information about the sr-dev
mailing list