I was able to register my sip client yesterday just fine, however, remotely i was getting one way audio. I configured my sip_nat.conf file which fixed the audio issue, but now i am unable to register the sip client. when i click on register (in zoiper) all it says is "registering" but never actually does. the port is forwarded on the router and like i said, it worked previously. Any help would be greatly appreciated. thanks.
Unable to register phones
Are you using the Zoiper as a SIP extension or an IAX extension?
If it is SIP, dont forget to configure the extension with nat=yes
sip_nat.conf should have the following entries-
externip=xxx.xxx.xxx.xxx (your public IP address)
localnet=xxx.xxx.xxx.xxx/xxx.xxx.xxx.xxx (local network/subnet address)
You need the correct ports open on your firewall/router at the PBX end-
5060 UDP for SIP
10000-20000 UDP for RTP (this is the default, but it needs to match whatever is in rtp.conf)
4569 UDP for IAX
You may also need a stun setting if you are using Zoiper with SIP and going through a firewall at the client end.
I am using them as SIP extensions and have configured my sip_nat.conf file to read:
nat=yes
externip=mypublicip
localnet=192.168.1.13/255.255.255.0
qualify=yes
and port 5060-5080 UDP is open on my router....like i said before, registering phones was working perfectly fine up until i edited the sip_nat.conf file last night to fix my audio issue...i did not make any changes in terms of ports on my router.
remove nat=yes from the sip_nat.conf file.
localnet should probably be 192.168.1.0/255.255.255.0
There is no "probably" stechnique is correct, the localnet line must match the network that is to excluded from translation.
Digium Asterisk documentation clearly states that the localnet variable must contain the network number and the subnet mask. For a 24 bit network (255 = 2^8 = 8+8+8 = 24) the network address is 192.168.1.0
sorry, i put the wrong information, after taking out nat=yes in my sip_nat.conf file, here is waht i have:
externip=mypublicip
localnet=192.168.1.1/255.255.255.0
qualify=yes
192.168.1.1 would be the IP of my router.
It still needs to be .0 and not .1. The reason I said "probably" is that I suspected that was the problem. I know it in theory the only logical thing to put is .0 if the mask is .0 as well...
Stechnique -
That comment was not directed at you but a general clarification. There seems to be confusion in the forums posts of how this works, I wanted to state it clearly.
great, changing it from a 1 to a 0 fixed it. thanks a lot!
I'm having the same issue again...my sip_nat.conf file has:
externip=my public ip
localnet=192.168.1.0/255.255.255.0
qualify=yes

Member Since:
2008-08-29