Switchvox - Register utility does not display license agreement
PROBLEM:
user cannot register FAX, FFA, G729, DPMA, or S4A license.
register utility flow is something like the following
Your Choice: 5
You selected 5, G.729 Codec
Please enter your Key-ID: G729-################
Product available to be registered.
Do you want to register this key now(y/n) y
Child process did not exit properly
You must accept the licensing agreement to register this software.
Please select a category
1 - Digium Products
2 - Cepstral Products
0 - Quit
CAUSE:
neither the "less" nor the "more" pager programs are in the $PATH.
OR -
$PAGER variable has options register utility does not handle
SOLUTION:
install "less":
apt-get install less # Debian based distributions (including Ubuntu and derivatives)
yum install less # Red Hat based distributions (including Fedora and CentOS)
alternatively, install "util-linux" (contains "more")
apt-get install util-linux
yum install util-linux
On most distributions, these are installed by default. If you find that both "less" (typically in /usr/bin) and "util-linux" ("more" is typically in /bin) are already installed, ensure that both /bin/ and /usr/bin are in root's $PATH variable. Consult your shell documentation for details. In bash, you may set the PATH variable temporarily in the shell like so:
export PATH=$PATH:/bin:/usr/bin
If both "less" and "more" are in nonstandard paths, you'll need to adjust the $PATH variable accordingly. Once this is complete, run the register utility again. If this does not resolve the problem, because the $PAGER variable has extra options the register utility doesn't process, temporarily set the pager to a default value like so:
PAGER='less' ./register # assuming the register utility is in the current directory
This will set the $PAGER value to "less" for just that invocation, keeping the normal variable intact. If this still does not resolve the issue, please contact Digium Technical Support at +1.256.428.6161, or contact us through the web: http://www1.digium.com/en/support/contact