Installation guide

9
iptables --table nat --append POSTROUTING --out-interface eth0 -j
MASQUERADE
iptables --append FORWARD --in-interface wlan0 -j ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
Now start the visualisation server. Initially, it is worth doing this in a separate
terminal window so that you can monitor the server. Substitute your wireless
device if not wlan0.
/usr/local/sbin/vis-i386-lucid -d1 -j wlan0
Finally start the batman server. Once again, substitute your wireless device if
not wlan0.
batmand -d1 -s 10.130.1.1 -g 100mbit a 192.168.1.0/24 wlan0
You're now ready to use Afrimesh. Launch Firefox and point your browser
at http://localhost/afrimesh, you will see the Afrimesh page as below:
Note: Before plugging in any MP01s, don't forget to go to the settings page and
set the longitude and latitude for your location.
Now you can plug in your MP01 and wait for the bouncing blue ball to appear and
the MP01's phone to ring.
If you want to clear Afrimesh's database and start again, execute the following:
redis-cli flushdb
After finishing these, you should be able to manage the mesh network on
Afrimesh Dashboard.
2.2.4 Configure the MP01 to make international calls
Before configuring the MP01, make sure that you can use IP phone which is
registered to the IP08 to make international calls.
Assume that you have assigned a SIP account 6015 for MP01.
1) On MP01, edit /etc/asterisk/sip.conf and add some lines as below: