dbroeglin/sipatra — Issue #1: Forgotten calls after 12min
Author: adrien-martin
Created: 2012-03-02 11:13:44+00:00
State: open

Hello,

For a call longer than 12min, when one side send a BYE it get a '481 Call/Transaction Does Not Exist'.
Our application.rb, built over sipatra, do not receive any BYE or other message.

Here is a ngrep trace (a sipp client with ip 127.0.0.1, a sipatra application with ip 127.1.1 and a sipp server with ip 127.0.1.2) :

#
U 127.0.0.1:5060 -> 127.0.1.1:5060
INVITE sip:33000000000@127.0.1.2 SIP/2.0..Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK-2020-1-0..From:
Anonymous ;tag=1..To: 33000000000 ..Call
-ID: 1-2020@127.0.0.1..CSeq: 1 INVITE..Contact: sip:somewhere@127.0.0.1:5060..Privacy: user,id..Max-Forwa
rds: 70..Subject: Test Call..Content-Type: application/sdp..Content-Length: 129....v=0..o=user1 5365576
5 2353687637 IN IP4 127.0.0.1..s=-..c=IN IP4 127.0.0.1..t=0 0..m=audio 6000 RTP/AVP 0..a=rtpmap:0 PCMA/80
00..
#
U 127.0.1.1:5060 -> 127.0.0.1:5060
SIP/2.0 100 Trying..Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK-2020-1-0..From: Anonymous ;tag=1..To: 33000000000 ..Call-ID: 1-2020@127.0.0.1.
.CSeq: 1 INVITE..Content-Length: 0....
#
U 127.0.1.1:5060 -> 127.0.1.2:5060
INVITE sip:33000000000@127.0.1.2 SIP/2.0..From: Anonymous ;tag=1..To: 33
000000000 ..Via: SIP/2.0/UDP 127.0.1.1:5060;branch=z9hG4bK5ce1193669bc..V
ia: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK-2020-1-0..Subject: Test Call..Call-ID: 1-2020@127.0.0.1..CS
eq: 1 INVITE..Content-Length: 129..Contact: ..Content-Type: application/sdp
..Max-Forwards: 69..X-Routag: true..Record-Route: ..Privac
y: user,id....v=0..o=user1 53655765 2353687637 IN IP4 127.0.0.1..s=-..c=IN IP4 127.0.0.1..t=0 0..m=audio
6000 RTP/AVP 0..a=rtpmap:0 PCMA/8000..
#
U 127.0.1.2:5060 -> 127.0.1.1:5060
SIP/2.0 180 Ringing..Via: SIP/2.0/UDP 127.0.1.1:5060;branch=z9hG4bK5ce1193669bc, SIP/2.0/UDP 127.0.0.1:50
60;branch=z9hG4bK-2020-1-0..From: Anonymous ;tag=1..To: 33000000000 ;tag=2019SIPpTag011..Call-ID: 1-2020@127.0.0.1..CSeq: 1 INVITE..Contact: ..Content-Length: 0....
#
U 127.0.1.2:5060 -> 127.0.1.1:5060
SIP/2.0 200 OK..Via: SIP/2.0/UDP 127.0.1.1:5060;branch=z9hG4bK5ce1193669bc, SIP/2.0/UDP 127.0.0.1:5060;br
anch=z9hG4bK-2020-1-0..From: Anonymous ;tag=1..To: 33000000000 ;tag=2019SIPpTag011..Call-ID: 1-2020@127.0.0.1..CSeq: 1 INVITE..Contact: ..Content-Type: application/sdp..Content-Length: 129....v=0..o=user1 53655765
2353687637 IN IP4 127.0.1.2..s=-..c=IN IP4 127.0.1.2..t=0 0..m=audio 6000 RTP/AVP 0..a=rtpmap:0 PCMU/8000
..
#
U 127.0.1.1:5060 -> 127.0.0.1:5060
SIP/2.0 180 Ringing..Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK-2020-1-0..From: Anonymous ;tag=1..To: 33000000000 ;tag=2019SIPpTag011..Call-I
D: 1-2020@127.0.0.1..CSeq: 1 INVITE..Contact: ..Content-Length: 0....
#
U 127.0.1.1:5060 -> 127.0.0.1:5060
SIP/2.0 200 OK..Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK-2020-1-0..From: Anonymous ;tag=1..To: 33000000000 ;tag=2019SIPpTag011..Call-ID: 1-
2020@127.0.0.1..CSeq: 1 INVITE..Contact: ..Content-Type: application/sd
p..Content-Length: 129....v=0..o=user1 53655765 2353687637 IN IP4 127.0.1.2..s=-..c=IN IP4 127.0.1.2..t=0
0..m=audio 6000 RTP/AVP 0..a=rtpmap:0 PCMU/8000..
#
U 127.0.0.1:5060 -> 127.0.1.1:5060
ACK sip:33000000000@127.0.1.2 SIP/2.0..Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK-2020-1-10..From: An
onymous ;tag=1..To: 33000000000 ;tag=201
9SIPpTag011..Call-ID: 1-2020@127.0.0.1..CSeq: 1 ACK..Contact: sip:somewhere@127.0.0.1:5060..Max-Forwards:
70..Subject: Test Call..Content-Length: 0....
#
U 127.0.1.1:5060 -> 127.0.1.2:5060
ACK sip:33000000000@127.0.1.2 SIP/2.0..CSeq: 1 ACK..Content-Length: 0..Contact: ..From: Anonymous ;tag=1..X-Routag: true..Max-Forwards: 69..To: 330
00000000 ;tag=2019SIPpTag011..Subject: Test Call..Via: SIP/2.0/UDP 127.0.
1.1:5060;branch=z9hG4bK1cfaed8e97f4..Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK-2020-1-10..Call-ID: 1
-2020@127.0.0.1....
#
U 127.0.0.1:5060 -> 127.0.1.1:5060
BYE sip:33000000000@127.0.1.2 SIP/2.0..Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK-2020-1-12..From: An
onymous ;tag=1..To: 33000000000 ;tag=201
9SIPpTag011..Call-ID: 1-2020@127.0.0.1..CSeq: 2 BYE..Contact: sip:somewhere@127.0.0.1:5060..Max-Forwards:
70..Subject: Test Call..Content-Length: 0....
#
U 127.0.1.1:5060 -> 127.0.0.1:5060
SIP/2.0 481 Call/Transaction Does Not Exist..Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK-2020-1-12..Fr
om: Anonymous ;tag=1..To: 33000000000 ;t
ag=2019SIPpTag011..Call-ID: 1-2020@127.0.0.1..CSeq: 2 BYE..Content-Length: 0....
#
U 127.0.0.1:5060 -> 127.0.1.1:5060
BYE sip:33000000000@127.0.1.2:5060 SIP/2.0..Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK-2020-1--1..Fro
m: Anonymous ;tag=1..To: 33000000000 ;ta
g=2019SIPpTag011..Call-ID: 1-2020@127.0.0.1..CSeq: 3 BYE..Max-Forwards: 70..Contact: ..Content-Length: 0....
#
U 127.0.1.1:5060 -> 127.0.0.1:5060
SIP/2.0 481 Call/Transaction Does Not Exist..Via: SIP/2.0/UDP 127.0.0.1:5060;branch=z9hG4bK-2020-1--1..Fr
om: Anonymous ;tag=1..To: 33000000000 ;t
ag=2019SIPpTag011..Call-ID: 1-2020@127.0.0.1..CSeq: 3 BYE..Content-Length: 0....