Preparing the System¶
Hostname¶
If the hostname was not set during First Boot you can modify /etc/sysconfig/network.
# /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=invttmtjwx03.tmtj.invite-comm.jp
Client Routing¶
Create a routing file in /etc/sysconfig/network-scripts for client facing interfaces. For example eth2 would use /etc/sysconfig/network-scripts/route-eth2 to route to the client network.
# /etc/sysconfig/network-scripts/route-eth2
192.168.0.0/24 via 172.16.0.10
10.0.0.0/24 via 172.16.0.10
Tip
This is the best point to run sys-unconfig and create the clone of the virtual machine. Additional settings are specific* the each virtual machine.
Prepare the Asterisk Template¶
Find a suitable template.¶
Find an MCAT configuration that performs a role similar to the new MCAT server. We’ll use invttmtjtest in the table below, to create invttmtjwx03 and invttmtjwx04.
| invttmtjtest | Example Template |
| invttmtjwx03 | Sample Server |
| invttmtjwx04 | Sample Clone |
cd /home/mcat
svn cp invttmtjtest invttmtjwx03
svn commit -m "Base Config invttmtjwx03" invttmtjwx03
Tip
Create the clone after making basic modifications to the asterisk configuration.
svn cp invttmtjwx03 invttmtjwx04
svn commit -m "Base Config invttmtjwx04" invttmtjwx04
Replace Symlink¶
rm /etc/asterisk
ln -s /home/mcat/invttmtjwx03/etc/asterisk asterisk
ls -la /etc/ | grep ^l | grep asterisk
asterisk -> /home/mcat/invttmtjwx03/etc/asterisk
Modify the SIP Settings¶
# /etc/asterisk/sip.conf
[INVTTMTJWX03]
username=INVTTMTJWX03
host=192.168.32.26 ; Client Host IP
accountcode=INVTTMTJWX03-MCAT ; From WX03 to MCAT
[mcat](!)
accountcode=MCAT-INVTTMTJWX03 ; MCAT to WX03
Modify the Dial Plan¶
# /etc/asterisk/extensions.conf
[INBOUND]
exten => _X.,n,Dial(SIP/INVTTMTJWX03/${EXTEN})