calling between subnets

squeezixmud
Joined: Wed 06 of Aug, 2008

calling between subnets

Posted:Wed 06 of Aug, 2008 (20:53 UTC)
Hello, has anyone set up a simple asterisk system with 2 asterisks servers on 2 different subnets? My goal is to call an extension (2000) on 192.168.0.1 from extension (3000) in subnet 192.168.1.1. I would like to use sip. all I want to accomplish is calling between subnets in both directions. I do not have nat nor do I require an ISP. I am on an internal network with subnets. Anyone have sample sip.conf and extensions.conf files? Really simple ones, or files I can use parts that are needed.
I would like these to work:
(sip.conf on serverb;servera would have swapped a to b)
[servera]
type=peer
host=192.168.0.1
secret=servera
context=users

[serverb]
type=friend
host=192.168.1.1
secret=severb
context=users

(extensions.conf)
[users]
exten=2000,1,Dial(SIP/servera,20)
exten=3000,1,Dial(SIP/serverb,20)


Any advice / samples will be greatly appreciated.
Thanks