[Serusers] AVP/SELECT type / length in ser.cfg?
Michal Matyska
michal at iptel.org
Fri Feb 29 19:37:27 CET 2008
Well,
you can use eval module for that (until the function will be in the
core).
eval_push("$avp"); or eval_push("@select");
eval_oper("strlen");
eval_pop("$result"); or $result=@eval.pop[-1]
Beware UNTESTED :-D
Michal
Bogdan Pintea píše v Pá 29. 02. 2008 v 18:42 +0100:
> Neither is supported, afaik. I've coded a function to return the length
> of string AVPs, but this kind of basic functionality should probably go
> into core, along with the AVP overhaul.
>
> Regards,
> Bogdan.
>
> Mike Trest - Personal wrote:
> > Hi,
> > How can I reference the type and length attributes of a variable (
> > @set or $avp) ? ? ?
> > ..mike..
> >
> > _______________________________________________
> > Serusers mailing list
> > Serusers at lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
> >
> >
>
>
More information about the sr-users
mailing list