Asterisk won't Register - PAP2 registers fine

Comment on asterisk settings HKBN 2b
chandave
Joined: Sun 05 of Jun, 2005

Re: Asterisk won't Register - PAP2 registers fine

Posted:Wed 16 of Aug, 2006 (16:19 UTC)
Make sure your ATA is not on or not using the same SIP origination port as your Asterisk box.

Also, make sure you have an entry in your /etc/hosts file that properly links s2hkbntel.net to the IP address of your assigned SIP Proxy from HKBN.

How long is the lease lifetime of the public IP address provided by your ISP's DHCP server. So places, (like SBC DSL) likes to have a short least with a maximum of 10 minutes. Since my DHCP clients attempt to re-negotiate a lease half way through the lifetime, my public IP address might change every 5 minutes (and I have had situations like that).

Since you are using DD-WRT, I would suggest you telnet/ssh into your router and check your NAT tables via:
cat /proc/net/ip_conntrack
to verify that everything is NAT'ed properly.

See ya...

d.c.
jyeung
Joined: Sun 25 of Jun, 2006

Asterisk won't Register - PAP2 registers fine

Posted:Wed 16 of Aug, 2006 (15:21 UTC)
Having problems with Asterisk registering with 2B:
server01*CLI> sip show registry
Host                            Username       Refresh State
s2hkbntel.net:5060              3xxxxxx9hk         120 Request Sent
Aug 16 10:24:53 NOTICE[4043]: chan_sip.c:5366 sip_reg_timeout:    -- Registration for '3xxxxxx9hk@s2hkbntel.net' timed out, trying again (Attempt #1)

SIP settings as follows:

[root@server01 asterisk]# vi sip.conf
[general]
port=5060
bindaddr=0.0.0.0
pedantic=no
autocreatepeer=no
disallow=all
allow=ulaw,alaw,gsm
canreinvite=no
nat=no
context=incoming
externip=xxxx.dyndns.org
localnet=192.168.1.0/255.255.255.0
register => 3xxxxxx9hk:xxxxxxxx@s2hkbntel.net:5060

[s2hkbntel.net]
type=peer
username=3xxxxxx9hk
secret=xxxxxxxx
port=5060
host=s2hkbntel.net
fromuser=3xxxxxx9hk
fromdomain=s2hkbntel.net
context=incoming
canreinvite=no
insecure=very
dtmfmode=inband
nat=yes
disallow=all
allow=alaw
allow=gsm


Now, even when it does register (it does occassionally), my calls cut out after 8 or so minutes. Could this be a problem with NAT and the RTP stream? I'm using a Linksys WRT54G with DD-WRT v23 firmware. The following ports are forwarded to the Asterisk box: UDP 5060, UDP 10000-20000, UDP 4569. Any advice would be helpful. Thanks!