Summary:ASTERISK-17942: Missing session-expires from Asterisk to the phone. Asterisk not working according to RFC
Reporter:Adriana Sill (meinasterisk)Labels:
Date Opened:2011-05-31 02:30:26Date Closed:2012-02-09 13:48:13.000-0600
Versions:1.8.4 Frequency of
is related toASTERISK-18996 Faulty SIP session timer handling
Environment:Attachments:( 0) capture.txt
( 1) cli-capture.txt.tar.gz
( 2) Tracedata_1.tar.gz
( 3) WireShark_760-761_-_Case_1_-_System_other.zip
Description:There is no Session-Expires header present in the 200OK response sent by asterisk to the ReINVITE/SessionRefresh from the phone.            
Because of this the SessionRefresh is considered as failed as marked within the Warning header in the ACK request.

According to RFC4028 (chap.9 UAS behavior ):
"If the UAS wishes to accept the request, it copies the value of the Session-Expires header field from the request into the 2xx response.
The UAS MUST set the value of the refresher parameter in the Session-Expires header field in the 2xx response."

Asterisk configuartion :sip.conf:

session-timers=accept (Asterisk default)
session-minse=90 (Asterisk default)

760: IP-Addr =, SIP-Session-Timer=true, SIP-Session-Duration: 120 sec
761: IP-Addr =, SIP-Session-Timer=true, SIP-Session-Duration: 150 sec

760 calls 761 which accepts the call.
>>>ERROR<<<:Connection is broken after 60 sec.

Phone type used:
Both 760 and 761 are OpenStage 40.


Asterisk version used: 1.8.4-rc2
Comments:By: Adriana Sill (meinasterisk) 2011-05-31 03:25:11

TCPdump is also available but too big to be downloaded. How an I provide this file to be analysed?

By: David Woolley (davidw) 2011-06-01 04:58:46

You should attach "sip set debug on" output, unarchived and uncompressed (so that it can be viewed directly from the web browser).  Both versbosity and debug levels should be reasonably high.

By: Adriana Sill (meinasterisk) 2011-06-08 07:54:44.370-0500

This is the requested document with error scenario and 'sip set debug on'.