Failed to authenticate on REGISTER

Hi,

I’m a new Asterisk 1.2.0 user. Setup has gone very well and everything is working at about 95%. The one problem I have is every few hours I received the following messages:

Nov 23 10:18:32 NOTICE[18896]: chan_sip.c:9564 handle_response_register: Failed to authenticate on REGISTER to ‘<account_hidden>@’ (Tries 3)
Nov 23 10:18:32 NOTICE[18896]: chan_sip.c:9564 handle_response_register: Failed to authenticate on REGISTER to ‘<account_hidden>@’ (Tries 3)
Nov 23 10:18:32 NOTICE[18896]: chan_sip.c:9564 handle_response_register: Failed to authenticate on REGISTER to ‘<account_hidden>@’ (Tries 3)
Nov 23 10:18:46 NOTICE[18896]: chan_sip.c:5267 sip_reg_timeout: – Registration for ‘<account_hidden>@’ timed out, trying again (Attempt #4)

When this happens incoming calls can’t connect for a little while. Then things magically work again.

Any hints where to start looking for a solution.

Rob

Use Ethereal to get a better look at what is happening at the SIP level.

Thanks,

Used tethereal.

What I am noticing is that when we send a REGISTER to our provider, it always seems to respond with 100 Trying, which is immedately followed by a 401 Unauthorized. We then send another REGISTER, the response this time is a 100 Trying, followed by a 200 OK.

We have two registered channels to our provider, I have removed one for this debugging session so I don’t have intermixed messages. I am still waiting for * to get me another “Failed to authenticate” message. (I do get these messages for both registrations.)

I should also provide parts of my sip.conf file.

[code][general]
context=incoming
bindport=5060
bindaddr=0.0.0.0
srvlookup=yes
register => XUserNameX:XsecretX@voip.digitalvoice.ca/3640
externip = 24.108.192.214
localnet = 192.168.205.0/24
registerattempts=0 ; An attempt to make sure registration works

[DV4833640]
type=peer
username=XUserNameX
secret=XsecretX
fromuser=XUserNameX
host=voip.digitalvoice.ca
context=incoming
nat=no
dtmf=rfc2833
insecure=very
canreinvite=no

[DV4833640_IN]
type=user
user=XUserNameX
secret=XsecretX
context=incoming
nat=no
dtmf=rfc2833
insecure=very
canreinvite=no[/code]