[SR-Users] switch() - case: with intervals?
Daniel-Constantin Mierla
miconda at gmail.com
Fri Oct 29 11:07:52 CEST 2010
Hello,
one more thing ...
When you start a new topic, please create a new message, do not reply to
an old email received from the list because it will be added to that
discussion thread. For example, your message is part of "Billing party
and radius accounting". Starting a new thread makes easier to follow the
discussion and the mailing list archive is much coherent.
Cheers,
Daniel
On 10/28/10 3:35 PM, "Nicolas Rüger" wrote:
> 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
--
Daniel-Constantin Mierla
http://www.asipto.com
More information about the sr-users
mailing list