I have an Asterisk at Home server on my home network at 192.168.1.59 with a mask of 255.255.255.0 and gateway of 192.168.1.1. I have two windows 2000 machines at 192.168.1.50 and 192.168.1.51 with a SIP softphone that are able to make calls from extensions and receive calls from an FXO card. So everything is working fine on the network of 192.168.1.0/24. I have another wireless network that is at 192.168.2.0 and connected to 192.168.1.0 The Wireless network uses a Linksys router with the WAN side at 192.168.1.56 and the LAN side at 192.168.2.0/24 with a gateway of 192.168.2.1. I have a wireless laptop at 192.168.2.50 that is able to communicate to the home page of the asterisk server at 192.168.1.59, but when I try to log in with the SIP phone on the laptop at 192.168.2.50 it is unable to login and just times out. I have added the info below to the sip.conf file and then did a reload on the server at the command line, but this did not work. I have also tried putting the ip address 192.168.2.50 in a DMZ on the router at 192.168.2.1, but this did not work either. I also tried adding nat=1 to the peer group in the sip.conf file and this did not work either. When I try to ping from 192.168.2.50 I can ping 192.168.1.59 (the Asterisk Server) but when I try to ping from the asterisk server I cannot ping 192.168.2.50. So is my problem a simple routing issue, where I need to add a route to the asterisk server to see the 192.168.2.0/24 network? If so what is the route command to add this route? The route would go from 192.168.1.59 to 192.168.1.56(the WAN side of the linksys router) to 192.168.2.50 the DMZ machine
Sip.conf
[general]
bindaddr = 192.168.1.59 ; Local interface
externip = XX.XXX.XXX.XX ; Public IP address
localnet = 192.168.1.0/255.255.255.0 ; Local LAN, internal clients etc.
localnet = 192.168.2.0/255.255.255.0 ; Local LAN, internal clients etc.