[Date Prev][Date Next] [Chronological] [Thread] [Top]

valsort and telephone numbers



Hi,

Does anybody use the valsort overlay and its "weighted" method with telephone numbers ?

Telephone numbers don't accept braces {} in their syntax, but the braces are used by valsort to define the attribute's weight.

What's the best way around this ?

An easy way would be to create a custom myMobile attribute, with syntax IA5 string (1.3.6.1.4.1.1466.115.121.1.26) instead of the telephone number syntax (1.3.6.1.4.1.1466.115.121.1.50). IA5 strings accept braces {}. But the tradeoff is that any string can be put in the myMobile attribute.

The best way would be to enforce myMobile to accept only telephone numbers (syntax 1.3.6.1.4.1.1466.115.121.1.50), PLUS braces {}

Can this be done ? any other idea ?