[Devel] [ openser-Bugs-1631420 ] another CANCEL bug

SourceForge.net noreply at sourceforge.net
Wed Jan 17 16:29:24 CET 2007


Bugs item #1631420, was opened at 2007-01-09 13:41
Message generated for change (Comment added) made by bogdan_iancu
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1631420&group_id=139143

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: modules
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Klaus Darilion (klaus_darilion)
Assigned to: Bogdan (bogdan_iancu)
Summary: another CANCEL bug

Initial Comment:
Hi!

I have found another CANCEL bug.

$ /usr/sbin/openser -V
version: openser 1.2.0-dev12-tls (i386/linux)

I think the problem occours when one branch answers 200 OK before the other branches send a provisional response. Then, this other branches do not get canceled. See dump below:

U 2007/01/09 12:36:11.348005 213.192.59.75:5060 -> 213.239.207.29:6060
INVITE sip:klaus at pernau.at SIP/2.0.
Record-Route: <sip:213.192.59.75;lr=on>.
Record-Route: <sip:213.192.59.76:5070;avp=PhwBAwBuYXQBAAAA;lr=on>.
Record-Route: <sip:213.192.59.75;lr=on>.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 213.192.59.76:5070;rport=5070;branch=z9hG4bK1b7f.256b8641.0.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 10.10.0.50:58068;received=83.136.33.3;branch=z9hG4bK-d87543-2a3bbe3f525b8210-1--d87543-;rport=58068.
Max-Forwards: 14.
Contact: <sip:klaus3000 at 83.136.33.3:58068;transport=udp>.
To: "klaus at pernau.at"<sip:klaus at pernau.at>.
From: "klausiptel"<sip:klaus3000 at iptel.org>;tag=cc1f8216.
Call-ID: ZDdlYjJhYTIyNmQ4MmY0MGFlNTk1ODc4ZmJiNjk2MDY..
CSeq: 2 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.
Content-Type: application/sdp.
User-Agent: eyeBeam release 1008m stamp 36652.
Content-Length: 429.
.
v=0.
o=- 7 2 IN IP4 10.10.0.50.
s=CounterPath eyeBeam 1.5.
c=IN IP4 213.192.59.66.
t=0 0.
m=audio 2690 RTP/AVP 100 106 0 97 105 8 18 3 101.
a=fmtp:18 annexb=yes.
a=fmtp:101 0-15.
a=rtpmap:100 SPEEX/16000.
a=rtpmap:106 SPEEX-FEC/16000.
a=rtpmap:97 SPEEX/8000.
a=rtpmap:105 SPEEX-FEC/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.
a=sendrecv.
a=x-rtp-session-id:ECAE6ED4B9A24447B1F8F9714510CF24.
a=nortpproxy:yes.

#
U 2007/01/09 12:36:11.354098 213.239.207.29:6060 -> 213.192.59.75:5060
SIP/2.0 100 Giving a try.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 213.192.59.76:5070;rport=5070;branch=z9hG4bK1b7f.256b8641.0.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 10.10.0.50:58068;received=83.136.33.3;branch=z9hG4bK-d87543-2a3bbe3f525b8210-1--d87543-;rport=58068.
To: "klaus at pernau.at"<sip:klaus at pernau.at>.
From: "klausiptel"<sip:klaus3000 at iptel.org>;tag=cc1f8216.
Call-ID: ZDdlYjJhYTIyNmQ4MmY0MGFlNTk1ODc4ZmJiNjk2MDY..
CSeq: 2 INVITE.
Server: OpenSer (1.2.0-dev12-tls (i386/linux)).
Content-Length: 0.
Warning: 392 213.239.207.29:6060 "Noisy feedback tells:  pid=3281 req_src_ip=213.192.59.75 req_src_port=5060 in_uri=sip:klaus at pernau.at out_uri=sip:enum-test at sip.nemox.net via_cnt==4".
.

#
U 2007/01/09 12:36:11.358378 213.239.207.29:6060 -> 83.137.41.34:5060 14978 at 0:1480
.......`INVITE sip:enum-test at sip.nemox.net SIP/2.0.
Record-Route: <sip:213.239.207.29:6060;lr=on;ftag=cc1f8216>.
Record-Route: <sip:213.192.59.75;lr=on>.
Record-Route: <sip:213.192.59.76:5070;avp=PhwBAwBuYXQBAAAA;lr=on>.
Record-Route: <sip:213.192.59.75;lr=on>.
Via: SIP/2.0/UDP 213.239.207.29:6060;branch=z9hG4bK1b7f.85598c83.0.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 213.192.59.76:5070;rport=5070;branch=z9hG4bK1b7f.256b8641.0.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 10.10.0.50:58068;received=83.136.33.3;branch=z9hG4bK-d87543-2a3bbe3f525b8210-1--d87543-;rport=58068.
Max-Forwards: 13.
Contact: <sip:klaus3000 at 83.136.33.3:58068;transport=udp>.
To: "klaus at pernau.at"<sip:klaus at pernau.at>.
From: "klausiptel"<sip:klaus3000 at iptel.org>;tag=cc1f8216.
Call-ID: ZDdlYjJhYTIyNmQ4MmY0MGFlNTk1ODc4ZmJiNjk2MDY..
CSeq: 2 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.
Content-Type: application/sdp.
User-Agent: eyeBeam release 1008m stamp 36652.
Content-Length: 429.
P-hint: usrloc applied.
.
v=0.
o=- 7 2 IN IP4 10.10.0.50.
s=CounterPath eyeBeam 1.5.
c=IN IP4 213.192.59.66.
t=0 0.
m=audio 2690 RTP/AVP 100 106 0 97 105 8 18 3 101.
a=fmtp:18 annexb=yes.
a=fmtp:101 0-15.
a=rtpmap:100 SPEEX/16000.
a=rtpmap:106 SPEEX-FEC/16000.
a=rtpmap:97 SPEEX/8000.
a=rtpmap:105 SPEEX-FEC/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.
a=sendrecv.
a=x-rtp-session-id:ECAE6ED4B9A24447B1F8F9714510CF24.
a=no
#
T 2007/01/09 12:36:11.359519 213.239.207.29:6060 -> 83.136.33.3:2742 [A]
INVITE sip:klaus at 83.136.33.3:2742;rinstance=1a34f5b1c0af5aa2;transport=TCP SIP/2.0.
Record-Route: <sip:213.239.207.29:6060;transport=tcp;r2=on;lr=on;ftag=cc1f8216>.
Record-Route: <sip:213.239.207.29:6060;r2=on;lr=on;ftag=cc1f8216>.
Record-Route: <sip:213.192.59.75;lr=on>.
Record-Route: <sip:213.192.59.76:5070;avp=PhwBAwBuYXQBAAAA;lr=on>.
Record-Route: <sip:213.192.59.75;lr=on>.
Via: SIP/2.0/TCP 213.239.207.29:6060;branch=z9hG4bK1b7f.85598c83.1.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 213.192.59.76:5070;rport=5070;branch=z9hG4bK1b7f.256b8641.0.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 10.10.0.50:58068;received=83.136.33.3;branch=z9hG4bK-d87543-2a3bbe3f525b8210-1--d87543-;rport=58068.
Max-Forwards: 13.
Contact: <sip:klaus3000 at 83.136.33.3:58068;transport=udp>.
To: "klaus at pernau.at"<sip:klaus at pernau.at>.
From: "klausiptel"<sip:klaus3000 at iptel.org>;tag=cc1f8216.
Call-ID: ZDdlYjJhYTIyNmQ4MmY0MGFlNTk1ODc4ZmJiNjk2MDY..
CSeq: 2 INVITE.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.
Content-Type: application/sdp.
User-Agent: eyeBeam release 1008m stamp 36652.
Content-Length: 429.
P-hint: usrloc applied.
.
v=0.
o=- 7 2 IN IP4 10.10.0.50.
s=CounterPath eyeBeam 1.5.
c=IN IP4 213.192.59.66.
t=0 0.
m=audio 2690 RTP/AVP 100 106 0 97 105 8 18 3 101.
a=fmtp:18 annexb=yes.
a=fmtp:101 0-15.
a=rtpmap:100 SPEEX/16000.
a=rtpmap:106 SPEEX-FEC/16000.
a=rtpmap:97 SPEEX/8000.
a=rtpmap:105 SPEE
#
T 2007/01/09 12:36:11.359877 213.239.207.29:6060 -> 83.136.33.3:2742 [AP]
X-FEC/8000.
a=rtpmap:18 G729/8000.
a=rtpmap:101 telephone-event/8000.
a=sendrecv.
a=x-rtp-session-id:ECAE6ED4B9A24447B1F8F9714510CF24.
a=nortpproxy:yes.

#
U 2007/01/09 12:36:11.383583 83.137.41.34:5060 -> 213.239.207.29:6060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP 213.239.207.29:6060;branch=z9hG4bK1b7f.85598c83.0.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 213.192.59.76:5070;branch=z9hG4bK1b7f.256b8641.0.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 10.10.0.50:58068;received=83.136.33.3;branch=z9hG4bK-d87543-2a3bbe3f525b8210-1--d87543-.
From: "klausiptel"<sip:klaus3000 at iptel.org>;tag=cc1f8216.
To: "klaus at pernau.at"<sip:klaus at pernau.at>.
Call-ID: ZDdlYjJhYTIyNmQ4MmY0MGFlNTk1ODc4ZmJiNjk2MDY..
CSeq: 2 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER.
Contact: <sip:enum-test at 83.137.41.34>.
Content-Length: 0.
.

###
U 2007/01/09 12:36:11.386178 83.137.41.34:5060 -> 213.239.207.29:6060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 213.239.207.29:6060;branch=z9hG4bK1b7f.85598c83.0.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 213.192.59.76:5070;branch=z9hG4bK1b7f.256b8641.0.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 10.10.0.50:58068;received=83.136.33.3;branch=z9hG4bK-d87543-2a3bbe3f525b8210-1--d87543-.
Record-Route: <sip:213.239.207.29:6060;lr=on;ftag=cc1f8216>.
Record-Route: <sip:213.192.59.75;lr=on>.
Record-Route: <sip:213.192.59.76:5070;avp=PhwBAwBuYXQBAAAA;lr=on>.
Record-Route: <sip:213.192.59.75;lr=on>.
From: "klausiptel"<sip:klaus3000 at iptel.org>;tag=cc1f8216.
To: "klaus at pernau.at"<sip:klaus at pernau.at>;tag=as4ab14588.
Call-ID: ZDdlYjJhYTIyNmQ4MmY0MGFlNTk1ODc4ZmJiNjk2MDY..
CSeq: 2 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER.
Contact: <sip:enum-test at 83.137.41.34>.
Content-Type: application/sdp.
Content-Length: 263.
.
v=0.
o=root 25262 25262 IN IP4 83.137.41.34.
s=session.
c=IN IP4 83.137.41.34.
t=0 0.
m=audio 19942 RTP/AVP 3 0 8 101.
a=rtpmap:3 GSM/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.

#
U 2007/01/09 12:36:11.388082 213.239.207.29:6060 -> 213.192.59.75:5060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 213.192.59.76:5070;branch=z9hG4bK1b7f.256b8641.0.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 10.10.0.50:58068;received=83.136.33.3;branch=z9hG4bK-d87543-2a3bbe3f525b8210-1--d87543-.
Record-Route: <sip:213.239.207.29:6060;lr=on;ftag=cc1f8216>.
Record-Route: <sip:213.192.59.75;lr=on>.
Record-Route: <sip:213.192.59.76:5070;avp=PhwBAwBuYXQBAAAA;lr=on>.
Record-Route: <sip:213.192.59.75;lr=on>.
From: "klausiptel"<sip:klaus3000 at iptel.org>;tag=cc1f8216.
To: "klaus at pernau.at"<sip:klaus at pernau.at>;tag=as4ab14588.
Call-ID: ZDdlYjJhYTIyNmQ4MmY0MGFlNTk1ODc4ZmJiNjk2MDY..
CSeq: 2 INVITE.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER.
Contact: <sip:enum-test at 83.137.41.34>.
Content-Type: application/sdp.
Content-Length: 263.
.
v=0.
o=root 25262 25262 IN IP4 83.137.41.34.
s=session.
c=IN IP4 83.137.41.34.
t=0 0.
m=audio 19942 RTP/AVP 3 0 8 101.
a=rtpmap:3 GSM/8000.
a=rtpmap:0 PCMU/8000.
a=rtpmap:8 PCMA/8000.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=silenceSupp:off - - - -.

#
U 2007/01/09 12:36:11.543223 213.192.59.75:5060 -> 213.239.207.29:6060
ACK sip:enum-test at 83.137.41.34 SIP/2.0.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 213.192.59.76:5070;rport=5070;branch=0.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 10.10.0.50:58068;received=83.136.33.3;branch=z9hG4bK-d87543-7d095776aa35ec05-1--d87543-;rport=58068.
Max-Forwards: 14.
Route: <sip:213.239.207.29:6060;lr=on;ftag=cc1f8216>.
Contact: <sip:klaus3000 at 83.136.33.3:58068;transport=udp>.
To: "klaus at pernau.at"<sip:klaus at pernau.at>;tag=as4ab14588.
From: "klausiptel"<sip:klaus3000 at iptel.org>;tag=cc1f8216.
Call-ID: ZDdlYjJhYTIyNmQ4MmY0MGFlNTk1ODc4ZmJiNjk2MDY..
CSeq: 2 ACK.
Proxy-Authorization: Digest username="klaus3000",realm="iptel.org",nonce="45a37e49824d313c68699ebfe8033102dd205ad7",uri="sip:klaus at pernau.at",response="94dbbf98d13e92b47693b560dbe9900f",algorithm=MD5.
User-Agent: eyeBeam release 1008m stamp 36652.
Content-Length: 0.
P-hint: rr-enforced.
.

#
U 2007/01/09 12:36:11.546710 213.239.207.29:6060 -> 83.137.41.34:5060
ACK sip:enum-test at 83.137.41.34 SIP/2.0.
Record-Route: <sip:213.239.207.29:6060;lr=on;ftag=cc1f8216>.
Via: SIP/2.0/UDP 213.239.207.29:6060;branch=z9hG4bK1b7f.85598c83.3.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 213.192.59.76:5070;rport=5070;branch=0.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 10.10.0.50:58068;received=83.136.33.3;branch=z9hG4bK-d87543-7d095776aa35ec05-1--d87543-;rport=58068.
Max-Forwards: 13.
Contact: <sip:klaus3000 at 83.136.33.3:58068;transport=udp>.
To: "klaus at pernau.at"<sip:klaus at pernau.at>;tag=as4ab14588.
From: "klausiptel"<sip:klaus3000 at iptel.org>;tag=cc1f8216.
Call-ID: ZDdlYjJhYTIyNmQ4MmY0MGFlNTk1ODc4ZmJiNjk2MDY..
CSeq: 2 ACK.
Proxy-Authorization: Digest username="klaus3000",realm="iptel.org",nonce="45a37e49824d313c68699ebfe8033102dd205ad7",uri="sip:klaus at pernau.at",response="94dbbf98d13e92b47693b560dbe9900f",algorithm=MD5.
User-Agent: eyeBeam release 1008m stamp 36652.
Content-Length: 0.
P-hint: rr-enforced.
Pern-hint: rr-enforced.
.

#
T 2007/01/09 12:36:12.358966 83.136.33.3:2742 -> 213.239.207.29:6060 [AP]
SIP/2.0 180 Ringing.
Via: SIP/2.0/TCP 213.239.207.29:6060;branch=z9hG4bK1b7f.85598c83.1.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 213.192.59.76:5070;rport=5070;branch=z9hG4bK1b7f.256b8641.0.
Via: SIP/2.0/UDP 213.192.59.75;branch=0.
Via: SIP/2.0/UDP 10.10.0.50:58068;received=83.136.33.3;branch=z9hG4bK-d87543-2a3bbe3f525b8210-1--d87543-;rport=58068.
Record-Route: <sip:213.239.207.29:6060;transport=tcp;r2=on;lr=on;ftag=cc1f8216>.
Record-Route: <sip:213.239.207.29:6060;r2=on;lr=on;ftag=cc1f8216>.
Record-Route: <sip:213.192.59.75;lr=on>.
Record-Route: <sip:213.192.59.76:5070;avp=PhwBAwBuYXQBAAAA;lr=on>.
Record-Route: <sip:213.192.59.75;lr>.
Contact: <sip:klaus at 83.136.33.3:2742;rinstance=1a34f5b1c0af5aa2;transport=TCP>.
To: "klaus at pernau.at"<sip:klaus at pernau.at>;tag=ca5e2509.
From: "klausiptel"<sip:klaus3000 at iptel.org>;tag=cc1f8216.
Call-ID: ZDdlYjJhYTIyNmQ4MmY0MGFlNTk1ODc4ZmJiNjk2MDY..
CSeq: 2 INVITE.
User-Agent: X-Lite release 1006e stamp 34025.
Content-Length: 0.
.

##
T 2007/01/09 12:36:23.235114 83.136.33.3:2742 -> 213.239.207.29:6060 [AP]
.
.



----------------------------------------------------------------------

>Comment By: Bogdan (bogdan_iancu)
Date: 2007-01-17 17:29

Message:
Logged In: YES 
user_id=1275325
Originator: NO

the fix is on CVS head. after some more testing, a backport to stable
version will be done.

regards,
bogdan

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2007-01-10 18:29

Message:
Logged In: NO 

keep the finished transaction im memory and send CANCEL after receiving
provisional reponses should do the trick


----------------------------------------------------------------------

Comment By: Bogdan (bogdan_iancu)
Date: 2007-01-10 18:19

Message:
Logged In: YES 
user_id=1275325
Originator: NO

Hi Klaus,

If I recall correctly, theis problem was debated several times ago. It is
more a logical issues than a bug and was labeled as "delayed CANCEL" - as
the trace shows, it is about a transaction with a non-responsive branch,
transaction wthat gets completed. After that a reply from the
non-responsive branch arrives. The questions is what should you do?? If the
transaction is still in memory, you can generate a delayed
CANCEL.....otherwise the reply will not match any transaction and it will
be stateless fwd....Any thoughts???

regards,
bogdan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743020&aid=1631420&group_id=139143



More information about the Devel mailing list