[SR-Users] switch() - case: with intervals?

"Nicolas Rüger" NicolasRueger at gmx.de
Thu Oct 28 15:35:25 CEST 2010


Hello,

I wonder if there's a chance to use SWITCH in kamailio.cfg with intervals or ranges??? 

There's nothing to find in core cookbook about ranges with SWITCH.

something like:

 switch ( $var(i) ){
  
   case 1..10:

       # instructions...
 
   break;

   case [11-20]:

       # instructions...
 
   break;

   default:
      # default instructions
 }


Thank you...

Regards,

Nicolas
-- 
GMX DSL Doppel-Flat ab 19,99 €/mtl.! Jetzt auch mit 
gratis Notebook-Flat! http://portal.gmx.net/de/go/dsl



More information about the sr-users mailing list