There are three different ways in which a test program may let you specify a Prosody processor module:
Some test programs require you to specify a single Prosody processor. They
use the -x
option to specify a card and the
-m
option to specify a Prosody processor
module on that card. The name of the card has this format:
s3
for Prosody S (v3)
x
for Prosody X
:
)
For example, module 1 on the Prosody X
card voipgw.example.com which has security key '2AGgcFm5' would be
specified as -x x:voipgw.example.com/2AGgcFm5 -m 1
.
Some test programs allow you to specify a list of Prosody processor
modules. These programs use the -x
option to specify the
list of module specifications separated by commas.
Each module specification consists of the name of a card (as would be
used to specify
A single module on the command line) followed by
a list of numbers in square brackets,
[]
, separated by comma. This list is a list of modules on that
card. It may be omitted, in which case all modules on the card are used.
For example, the specification:
-x x:10.202.163.63/mykey,x:1.2.3.4/hello[3]
assuming card 10.202.163.63 has four Prosody processor modules, specifies that these modules should be used:
For test programs that implement a command to select a Prosody module,
the method uses the m
command as follows.
Initially, a module is specified with a full description like this:
m+x:prosgw.example.com/2AGgcFm5[1]
The description is the same as would be used to specify a list of modules on the command line. When you specify a module like this, it is opened, subsequent commands refer to it until you select a different module, and it can later be referred to by number in a simpler way:
m2
If your specification refers to more than one module, then all are
opened, and the first one is selected. You can use the command
m?
to see the list of modules you have opened.
For example,
m+x:prosgw.example.com/2AGgcFm5[3] selects module 3 on Prosody X card prosgw.example.com which has security key '2AGgcFm5'