[Serusers] how do I route to ranges?
Atle Samuelsen
clona at camaro.no
Thu Aug 25 21:55:59 CEST 2005
Hi dana,
if(uri=~"^[0-(94)]"){
do_stuff;
}else if ( uri=~"[(95)-(120)]"){
do_other_stuff;
};
I dont know if this would work, but try it out.. my regexp skills are'nt
very high ;-)
--Atle
* Dana Olson <rickaster at gmail.com> [050825 21:50]:
> I am not sure how to approach this, or even if it's possible.
>
> I want to have this kind of thing (pseudocode):
>
> if sipuri >0 & sipuri <96 { do stuff }
> if sipuri >95 & sipuri < 120 { do stuff }
>
> And so on. Assuming that the sipuri is a number, and anything outside
> of the ranges, or letters is ignored (and handled elsewhere).
>
> I could build individual routes for each number, but I am hoping there
> is an easier way to do it.
>
> If anyone could help me out, that'd be really awesome.
> --
> Dana
>
> _______________________________________________
> Serusers mailing list
> serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
More information about the sr-users
mailing list