When a VoipNow administrator wants to deploy in rapid manner a large num=
ber of extensions or even organizations , it is much faster to use the CLI =
scripts described below than the web interface.
This knowledge base article describes the steps you have to follow when =
using CLI, while also providing an use case for a better understanding of t=
he process.
CLI utilities
In order to create a user from the command line interface, you need to u=
se two scripts located in the /usr/local/voipnow/bin
folder:=
p>
While you can create Service providers, Organizations, Users and extensi=
ons of various kinds, at the moment you cannot set up a charging plan using=
the existing CLI scripts.
For more information on these scripts, please check the VoipNow Command Line Interface=
guide.
Examples
To get help from any of them, run the following command with the -=
h
option:
/usr/lo=
cal/voipnow/bin/account.sh -h
To create a Phone terminal
extension run:
/usr/l=
ocal/voipnow/bin/extension.sh -c 099 --parent_login test --type term --labe=
l "Extension099" --auto
=20
In order to create a Queue
extension run:
/usr/lo=
cal/voipnow/bin/extension.sh -c 098 --parent_login test --type queue --labe=
l "QueueExt" --auto
The above examples creates one extension at a time. In order to create m=
ultiple extensions, just reuse the scripts above and iterate over the name =
and number of the created entities.
To easily manage the created extensions, just make use of the numbering =
conventions:
- 001-099 for
Phone terminal
extensions.
- 101-150 for
Queue
extensions.
- 151-199 for
IVR
extensions.
- etc.