vacant_number
Vacant number data print
Format
- vacant_number [--number-type] [--number-range] [--output-format] [--list] [--customer]
Function
Command to retrieve data about vacant numbers. Vacant numbers are unused numbers assigned in number analysis. Works for extension numbers, operator numbers, abbreviated numbers, external destination numbers and DNIS numbers.
Parameters
- --customer
Customer number for an extension (or other resource). Customer 0 is the default customer of the exchange. Argument must be an integer in the range 0 to 50000.
For print operations, the default is function dependent, for all other operations the default is 0 (zero).
The switch requires an argument. The argument is single-valued.
- --list
Present the result as a list of single numbers instead of ranges.
The switch takes no argument.
- --number-range
Specifies a range to search for vacant numbers. If omitted it will be ‘all’.
The switch requires an argument. The argument can be a range (first..last).
- --number-type
Specifies type of vacant number.
The following types are permitted:
AC - Abbreviated common numbers
DN - DNIS numbers
EC - External coordinated numbers
ED - External destination numbers
EX - Extension numbers
OC - Operator common numbers
OD - Operator DID numbers
OI - Operator individual numbers
PG - Paging group numbers
PD - Public destination numbers
The switch requires an argument. The argument is single-valued.
- --output-format
Specifies output format. Allowed values:
- text - output format is text (default)
- xml - output format is xml
The xml format is described in the IWD System Resource Data Collection Interface.
The switch requires an argument. The argument is single-valued.
Examples
- Print all vacant extension numbers in text format.
vacant_number --number-type EX
- Print all vacant extension numbers in xml format.
vacant_number --number-type --output-format xml