CallWeaver Multihomed
Back in time (1 more)
CallWeaver in a multihomed environment
CallWeaver will work in a multihomed environment given that your routing is correct. The following examples are for Debian Linux.
My setup:- My CallWeaver server is behind NAT – it has the public IP 7.7.7.7 which is forwarded to 10.100.3.100
- External clients are registering to the IP 7.7.7.7 (through eth0)
- Clients in the 10.100.3.0 network are registering to IP 10.100.3.100 (through eth0)
- Clients in the 10.52.0.0 network are registering to IP 10.100.4.190 (through eth1)
/etc/network/interfaces:
auto eth0
iface eth0 inet static
address 10.100.3.100
netmask 255.255.255.0
gateway 10.100.3.1
auto eth1
iface eth1 inet static
address 10.100.4.190
netmask 255.0.0.0
gateway 10.100.4.200
post-up "route del -net 0.0.0.0 gw 10.100.4.200 netmask 0.0.0.0 dev eth1"
The post-up is to fix a routing issue. Otherwise the machine will not be able to connect to external hosts nor receive registrations from them.
/opt/callweaver/etc/sip.conf:
externip=7.7.7.7 ; Put 7.7.7.7 in the SIP messages when a client is registering to our external IP
localnet=10.0.0.0/255.0.0.0 ; Don't put 7.7.7.7 in the SIP messages if a client is connecting from this network
![Home wiki [home]](../../images/logo__q__1180520111.png)