I am trying to configure SIP on asterisk server. My SIP server is behing the Router. The IP address of SIP server is 172.31.255.5. I have forwardered UDP port 5060 from the router onto 172.31.255.5. I can call and listen to the other people using xten soft phone when I am in the internal LAN i.e. 172.31.255.0.
My Problem in this case is if someone else calls me from the outside/internet, then the xten phone rings. I can call outside and anyone can call me inside. But, I cannot hear the voice. There is no voice at all.
I have forwarded RTP ports to the asterisk server as well. I belive RTP port that asterisk by default uses are 10000-20000 and its mentinoed in rtp.conf.
In sip.conf I have put the following NAT related entries.
externip = mypublicip
localnet = 172.31.255.0/255.255.255.0
nat = yes
Can anyone please guide me in this record what I am doing wrong here.
Thanks in Advance.