Asterisk 1.4.3 x-lite/pap2 fails to re-register

I have an Asterisk 1.4.3 installation on a FreeBSD 6.2 server.

I’m having a rather strange problem which does not produce any real errors but once a device registers to asterisk (I have pap2, billion 7402vgpm and x-lite devices) After a period of time these devices loose registration and do not regain it. The following is relevant [general] and client sip configuration:

[code][general]
srvlookup=yes
context=default
host=office.imagineiftoys.com.au
bindport=5060
rtpstart=9999
rtpend=20001
dtmfmode=rfc2833
bindaddr=192.168.1.1
maxexpirey=3600
defaultexpirey=240
registerattempts=0
disallow=all
allow=ulaw ;g711u
allow=alaw ;g711a
allow=ilbc

[1000]
type=friend
nat=no
host=dynamic
username=1000
secret=*****
dtmfmode=rfc2833 ; Choices are inband, rfc2833, or info
mailbox=43774 ; Mailbox for message waiting indicator
disallow=all
allow=g729
allow=alaw
allow=ulaw
context=outgoing
canreinvite=no [/code]

Apon registration all devices are able to receive calls for a period of a few minutes (possibly the default expiry time).

Thanks in advanced for any help you can provide.

check ‘sip show settings’ and post
Reg. min duration
Reg. max duration
Reg. default duration

Check and post Register Expires value on PAP2.

Generally there are 2 options:

  1. your SIP phone is not making an attempt to re-register and it has no relation to Asterisk
  2. your SIP phone is making an attempt to re-register but Asterisk refuses it.

You may check your Asterisk’s debug (for a specific peer) and find the answer.

Reg. min duration 60 secs
Reg. max duration: 3600 secs
Reg. default duration: 240 secs
Outbound reg. timeout: 20 secs
Outbound reg. attempts: 0

Thanks for your help.

and Reg expire is set at 240 on pap2

that’s strange…

Please enable debug for PAP2 extension:
sip set debug peer {name of the peer}

and keep it runnig for a few minutes, more then 240 secs