agiconf [-a] [-c] [-d] [-h] [-t] [-v]
Agiconf configures namelookup.agi.
It can be used to generate the files agi-namelookup.conf,
numbers.db, areas.db and regions.db.
The software looks for source files in /usr/local/share/phonebook/.
When debug (-d) is used, it looks in the default directory.
An exception is numbers.tsv. The software always looks for this file in
the default directory.
If this fails it will then look in your home directory.
Note: If you want to convert numbers.tsv to numbers.db, start this program
in the directory where numbers.tsv is.
Or put numbers.tsv in your home directory.
Note: When running this program as root, the homedir is of course /root.
Unless you use 'su -p' to become root, in which is case it's your homedir.
If you prefer sudo to su, the sudo '-D' option can be used to set the
directory.
Press 1, 2, 3, etc to select an item and then press the <Enter> key to execute. Press 'Q' or 'q', <Enter> to quit. Press 'W' or 'w', <Enter> to write to a file.
In scroll lists use cursor keys up, down, page-up page-down, home and end to
move up and down.
Use keys like 'q' and 'w' to move to the menu items below.
Keys 'a' to 'z' not listed in the menu below will move to the nearest item
in the scroll list which starts with that letter.
Space and <Enter> toggle selection of an item in the scroll list.
Note: In country selection you can only select ONE country.
Note: In area code list file selection you can only select ONE
list file per country.
The scoll list lists Country, Country code, International call prefix and
Trunk code prefix.
The international code prefix is usually '00'.
The trunk code prefix is usually '0'.
Agiconf uses this information to change numbers into values that are used
in caller-IDs.
E.G.: change 31 to 0031 and 3170 to 003170 or 070.
These come in low, medium or high resolution or granularity.
English or other languages.
Default is English, medium resolution.
If you run the program before, Select-Country, Web-Lookups and Select-Regions
display previous saved settings.
If you save numbers.db or areas.db, the main menu will display 'Done' next to
Convert-Phonebook or Select-Areas:
These display the result of your CURRENT actions, not a previous run.
All file contents are UTF-8. File names are US-ASCII.
The program returns 1 on error, 0 on success.