404 Not found on INVITE after some time

Okay, I’m setting up Asterisk 1.6.2.5-0ubuntu1.4 with Realtime extensions pointing to an LDAP database, with a preliminary setup of two phones (Linksys SPA922). Users and extensions are stored in the database, and phones successfully register against it. Initially the phones can successfully call each other, and transmit voice data.

After some minutes, however, one phone ceases to accept calls. No admin or user activity seems to trigger this. It throws the dreaded “SIP/user2-0000001b is circuit-busy” message (user1 on 192.168.1.184 calling user2 on 192.168.1.197):

In addition, my log is liberally sprinkled (aka. spammed) with messages such as this:

Now, I don’t know if this is related, but I’m thinking that the latter could be the cause of the former. I notice that the first 404 response doesn’t include the username sip:192.168.1.197:5060, possibly indicating that it searches in vain for a wrong username.

The dialplan for both extensions is extremely simple: 1000,1,Dial(SIP/user1,25,Ttr) and 2000,1,Dial(SIP/user2,25,Ttr)

The mapped properties for the users:

[quote]name = user1
allow = all
callerid = user1 <1000>
canreinvite = yes
context = default
defaultUser = user1
dtmfmode = rfc2833
regseconds = 1338557601
fullcontact = sip:user1@192.168.1.184:5060
host = dynamic
insecure = port,invite
ipaddr = 192.168.1.184
lastms = 0
nat = no
port = 5060
qualify = no
secret =
type = friend
useragent = Linksys/SPA942-4.1.12[/quote]

[quote]allow = all
callerid = user2 <2000>
canreinvite = yes
context = default
defaultuser = user2
dtmfmode = rfc2833
regseconds = 1338557602
fullcontact = sip:user2@192.168.1.197:5060
host = dynamic
insecure = port,invite
ipaddr = 192.168.1.197
lastms = 0
nat = no
port = 5060
qualify = no
secret =
type = friend
useragent = Linksys/SPA922-5.1.5[/quote]

Any and all help will be greatly appreciated. I’ve pulled my hair enough on this one.

Are you aware that all support on 1.6.2.x ceased over a month ago, and that your sub-version is a rather early variant of that branch and will, thus, have lots of bugs.

I was not aware of that. The version is just the latest one for the version of Ubuntu that I’m forced to run it under (it’s complicated). I’ll see about installing a non-repo version that has fewer bugs.

After the upgrade, I see some different issues (asterisk service suddenly dying after the phones have called each other a couple of times). I’ll look further into the issue and post for assistance if needed. Thanks.