Update the MakeLDIF tool so that the random:telephone tag will generate
telephone numbers that include the country code so that they are more
compliant with the ITU-T E.123 specification.
OpenDS Issue Number: 1911
| | |
| | | break; |
| | | |
| | | case RANDOM_TYPE_TELEPHONE: |
| | | buffer.append("+1 "); |
| | | for (int i=0; i < 3; i++) |
| | | { |
| | | buffer.append(NUMERIC_CHARS[random.nextInt(NUMERIC_CHARS.length)]); |
| | | } |
| | | buffer.append('-'); |
| | | buffer.append(' '); |
| | | for (int i=0; i < 3; i++) |
| | | { |
| | | buffer.append(NUMERIC_CHARS[random.nextInt(NUMERIC_CHARS.length)]); |
| | | } |
| | | buffer.append('-'); |
| | | buffer.append(' '); |
| | | for (int i=0; i < 4; i++) |
| | | { |
| | | buffer.append(NUMERIC_CHARS[random.nextInt(NUMERIC_CHARS.length)]); |