Phones can't register after restart

Whenever we restart asterisk many of our phones can’t register anymore.
If I sniff the interface on the asterisk box I see this with ngrep.

U 10.10.180.133:5060 -> 10.10.180.2:5060
REGISTER sip:10.10.180.2:5060 SIP/2.0.
Via: SIP/2.0/UDP 10.10.180.133:5060;branch=z9hG4bKe2159c024c309805f.
Max-Forwards: 70.
From: <sip:126@10.10.180.2:5060>;tag=efab51048d.
To: <sip:126@10.10.180.2:5060>.
Call-ID: 37f2ba051f7311c5.
CSeq: 7872 REGISTER.
Allow:  INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, OPTIONS, UPDATE, PRACK, SUBSCRIBE, INFO.
Allow-Events: talk, hold, conference.
Contact: 126 <sip:126@10.10.180.133:5060;transport=udp>;expires=120.
User-Agent: Aastra 55i/2.2.1.25.
Content-Length: 0.

Nothing shows up w/ “sip debug”. There is no response from asterisk either. I can ping the phone from the asterisk box just fine. Asterisk box is on the same subnet.
Running 1.4.21.
This is my sip.conf:
[126]
type=friend
secret=xxxxxxxxx
record_out=On-Demand
record_in=On-Demand
qualify=yes
port=5060
pickupgroup=
nat=yes
mailbox=126@device
host=dynamic
dtmfmode=auto
dial=SIP/126
context=from-internal
canreinvite=no
callgroup=
callerid=Jo Bob <126>
accountcode=
call-limit=50

Any ideas?

I have never seen this before. It seems the server its self is getting it but it’s not making its way to asterisk. If you reboot the server what happens ? Can you make calls out from asterisk after a restart ?

If I reboot some but not all phones are able to register… same thing happens if i just restart the asterisk process.

Since then I’ve downgrade to 1.4.20.1 as we were hitting some bug with 1.4.21.

802.1q have any affect on asterisk/sip/udp? Or port-channeling/lcap/etherchannel?

Not sure. If you think it’s a bug you may want to put in a ticket at bugs.digium.com

by sip debug, can you find the register message send from your ip phone? it is the only reason that weather your ip phone send the register to asterisk or not.

if you reboot your ip phone, and wait some time, such as 1 minute? can it registered? try to change the register period to have a try.

Luis

http://www.telecomchinasourcing.com

I moved from using the window’s dhcpd to ISC dhcpd on a linux box. That solved everything. I was able to restart all the phones and they all registered fine after that. Some phones got new IPs, others kept the same IP that was issued to them from the window’s dhcpd originally (ISC dhcpd is set to use the same range). I’m able to restart asterisk and all the phone come back now.

I had 5 polycom SoundStation IP 4000 phones that had the same problem but had to remove the dhcp lease so they would get new IPs before being able to register.

I’m now able to shutdown asterisk for a few minutes and have all the phones reregister.

Back again. Same thing happens. I submitted a bug.

bugs.digium.com/view.php?id=13245