[SR-Dev] git:andrei/switch: script parsing: C style switch() & case support
Iñaki Baz Castillo
ibc at aliax.net
Thu Feb 5 20:22:28 CET 2009
El Jueves, 5 de Febrero de 2009, Daniel-Constantin Mierla escribió:
> What if we decide what type of case value is by the first 'case'? If
> first one is integer, then all should be integers and the 'switch' will
> have integer optimizations. If not integer, then expect only strings or
> regular expressions (which will be an useful addition) with the main
> benefit of a nice-looking config file.
What about if the first case value is a pseudo-variable whose value could be
an integer or string dynamically?
(BTW I'm not sure now if Kamailio allows pseudo-variables as case value).
--
Iñaki Baz Castillo
More information about the sr-dev
mailing list