A way to duplicate the firmware lockup on Aastra phones

I think Aastra’s firmware has a memory leak within code that processes SIP envelopes. I can get my phones to hang like clockwork with the following test…

Download and compile sipsak. Register your Aastra phone with Asterisk. Make sure it’s working okay. Then, create this script:

#!/bin/bash #replace IP address with that of one of your phone COUNTER=0 while [ $COUNTER -lt 100000 ]; do echo count is $COUNTER sipsak -s sip:test@192.168.5.60 -vv -r 5060 let COUNTER=COUNTER+1 done

Run the script. At somewhere between 400 and 600 calls to a 480i or at about 28000 calls to a 9133i, you’ll see:

[code]…


count is 407

message received:
SIP/2.0 200 OK
Call-ID: 1424949142@127.0.0.1
CSeq: 1 OPTIONS
From: sip:sipsak@127.0.0.1:32933;tag=54eeff96
To: sip:test@192.168.5.60;tag=790656ba7105ed4
Via: SIP/2.0/UDP 127.0.0.1:32933;received=192.168.5.10;branch=z9hG4bK.7a84f7d3;r
port;alias
Content-Length: 0
Allow:NOTIFY,REFER,OPTIONS,INVITE,ACK,CANCEL,BYE,INFO
Contact: sip:test@192.168.5.60
Supported: replaces
User-Agent: Aastra 480i Cordless/1.4.0.1048 Brcm Callctrl/1.5 MxSF/v3.2.6.26

** reply received after 64.684 ms **
SIP/2.0 200 OK
final received
count is 408
** timeout after 500 ms**
** timeout after 1000 ms**
** timeout after 2000 ms**
** timeout after 4000 ms**
** timeout after 4000 ms**
** timeout after 4000 ms**
** timeout after 4000 ms**
[/code]

When you see sipsak timing out, pick up the phone and attempt to dial any extension. Does your phone hang, too?

If you have a 480i that’s still running 1.3.0, I’m especially interested in your results. I’ve tried downgrading my 480i to 1.3.0, but the phone keeps refusing.

I’m curious as to whether 1.3.0 had the problem because our 480is locked up prior to the 1.4.0 upgrade. I’m guessing this has been a bug for a while.