|
I have identical set up as you. My outgoing (using SIP provider) and incoming DID is working but pstn in and out remains a mystery (misery).
These are the relevant lines I have:
sip.conf
externip=xxx.xxx.xxx.xxx
localnet=192.168.0.0/255.255.255.0
assuming your Asterisk box has ip like 192.168.0.15. if you have 192.168.2.10, then localnet=192.168.2.0
these 2 lines are also in my sip_nat.conf. I'm not sure if they are needed or not.
In your router, forward whatever ports you use for Asterisk:
SIP (default 5060 UDP)
RTP - also UDP, check in rtp.conf, you need to forward whatever is rtpstart to rtpend to Asterisk |