Unable to register phones

d1msumboi
Posts: 8
Member Since:
2008-08-29

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.



onecomms
Posts: 289
Member Since:
2006-10-26
Are you using the Zoiper as

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.

--

_________________________________
Andy Thompson
1comms
http://www.1comms.co.uk
sales@1comms.co.uk



d1msumboi
Posts: 8
Member Since:
2008-08-29
I am using them as SIP

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.



stechnique
Posts: 733
Member Since:
2008-02-21
remove nat=yes from the

remove nat=yes from the sip_nat.conf file.
localnet should probably be 192.168.1.0/255.255.255.0



SkykingOH
Posts: 9541
Member Since:
2007-12-17
There is no "probably"

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

--

Scott

aka "Skyking"



d1msumboi
Posts: 8
Member Since:
2008-08-29
sorry, i put the wrong

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.



stechnique
Posts: 733
Member Since:
2008-02-21
It still needs to be .0 and

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...



SkykingOH
Posts: 9541
Member Since:
2007-12-17
Stechnique - That comment

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.

--

Scott

aka "Skyking"



d1msumboi
Posts: 8
Member Since:
2008-08-29
great, changing it from a 1

great, changing it from a 1 to a 0 fixed it. thanks a lot!



d1msumboi
Posts: 8
Member Since:
2008-08-29
I'm having the same issue

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



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.