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).