multiSwitch – user manual
© TOPEX 2008 35
7.2 “group.cfg” configuration
“
Group.cfg
” configuration file establishes the cards definition for the system. In the
multiSwitch case we do not have a physical card and it is used a virtual VoIP card.
The first line establishes if the multiSwitch equipment is master or slave. Value “1” is for
master and “0” for slave.
m 1
In the case of standalone multiSwitch equipment, it is always set as master. When it is
involved a larger architecture with media or signaling gateways and softswitches, the multiSwitch is set
as master and the gateways are set as slave.
Slave means another main system application that is configured to accept connections from
master. It can run on the same machine or a remote machine.
So if is the same application then you need to have the same directory structure as from app
directory. If is running on the same machine (ex slave RTPproxy) you need to duplicate the app
directory; usualy it is done by making a copy of 'app' to 'apprtpproxy' for example and after that making
changes on cfg directory cards and ports are installed only on master.
The next line includes several parameters related to card group, group number, type, etc.
g 0 2 195.114.116.235 9000 1 0
The significance of each field is described below:
field 1
: g = means group line. For each group must be added in card.cfg at least one or more
cards. For each card you need to install also the ports each group can have up to 16 cards
installed. Cards number will be in range [(gr_nr*16) ... ((gr_nr*16)+16)]. For instance if gr_nr =
3, cards will be in range [3*16 ... 3*16+16] = [48 ... 64]
Note:
if gr_nr > 12 you cannot have voip lines attached to group line; this mean that you need to add
them in slave configuration
field 2
: group number; on versions over 4.1.90 you can see the number of groups with which
the main application was built by running “
centrala –v
” and look for
NRGROUP
value
field 3
: group type: 0=FXS|FXO|GSM|CDMA...; 1=E1; 2=VoIP|RTPproxy
field 4
: connection IP to slave. If IP is different than 0.0.0.0 or 0 means that the master will try
to connect to this IP and port from next field; so in this case you don't need a second line
starting with voip; this line will appear in slave “group.cfg”. Keep in mind that always the
master is trying to connect to slaves defined here in this file
field 5
: connection Port to slave
field 6
: is significant only if it is set to 1 which means that is a Eones group – not used for
multiSwitch
field 7
: reserved for future development
For multiSwitch must be defined the “
rtp_ip
” parameter instead of a physical VoIP card.
rtp_ip 0 192.168.0.0/16 192.168.1.193
rtp_ip 0 0.0.0.0/0 89.38.173.23
The format of rtp_ip field is: “
rtp_ip <group_nr> <ip_class(format: ip/netmask_len)> <rtp ip
used for this class>
”.