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 phones
COUNTER=0
while [ $COUNTER -lt 10000 ]; 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, you’ll see:
[code]…
…
…
** reply received after 64.968 ms **
SIP/2.0 200 OK
final received
count is 405
message received:
SIP/2.0 200 OK
Call-ID: 1107796064@127.0.0.1
CSeq: 1 OPTIONS
From: sip:sipsak@127.0.0.1:32933;tag=4207a060
To: sip:test@192.168.5.60;tag=d62e43e378fa843
Via: SIP/2.0/UDP 127.0.0.1:32933;received=192.168.5.10;branch=z9hG4bK.12c43d9e;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 16.491 ms **
SIP/2.0 200 OK
final received
count is 406
message received:
SIP/2.0 200 OK
Call-ID: 1722295724@127.0.0.1
CSeq: 1 OPTIONS
From: sip:sipsak@127.0.0.1:32933;tag=66a825ac
To: sip:test@192.168.5.60;tag=27768c44ea8cacf
Via: SIP/2.0/UDP 127.0.0.1:32933;received=192.168.5.10;branch=z9hG4bK.137079d0;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 62.572 ms **
SIP/2.0 200 OK
final received
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?