[Kamailio-Devel] Cseq: 1 INVITE for a 200 canceling ?

Daniel-Constantin Mierla miconda at gmail.com
Fri Jan 9 12:30:25 CET 2009


*But the CANCEL comes with the wrong CSeq:

12:03:49.581162 IP 127.0.0.1.5064 > 127.0.0.1.5060: SIP, length: 427
E..... at .@.;$................CANCEL sip:simul at agent SIP/2.0
Via: SIP/2.0/UDP 192.168.160.141:5064;branch=z9hG4bk27-1
From: sipp 
<sip:27-2905-192.168.160.141 at 192.168.160.141:5064>;tag=2905SIPpTag0927
To: sut <sip:simul at agent>;tag=29892SIPpTag01991
Route: <sip:127.0.0.1;lr=on;ftag=2905SIPpTag0927;did=ef8.d115a076>
Call-ID: 27-2905-192.168.160.141
CSeq: 1 INVITE
Contact: sip:sipp at 192.168.160.141:5064
Max-Forwards: 70
Subject: Performance Test*

Probabky this kind of message has to be replied with 404 Bad message.

I tested the usual case of INVITE+CANCEL using phones and all looked fine.

Cheers,
Daniel



On 01/09/2009 01:13 PM, Aurelien Grimaud wrote:
> Sorry, I should have done it in the first place.
>
> kamailio runs on port 5060
> UAC : 5064
> UAS : 5062
>
> Having a better look, CANCEL request CSeq is set (wrongly) to 1 INVITE....
> kamailio uses this for reply right ?
> Note that CANCEL is relayed to UAS with CSeq 1 CANCEL.
>
> 12:03:48.874973 IP 127.0.0.1.5064 > 127.0.0.1.5060: SIP, length: 605
> E..y.. at .@.:r.............e.yINVITE sip:simul at agent SIP/2.0
> Via: SIP/2.0/UDP 192.168.160.141:5064;branch=z9hG4bk27-1
> From: sipp 
> <sip:27-2905-192.168.160.141 at 192.168.160.141:5064>;tag=2905SIPpTag0927
> To: sut <sip:simul at agent>
> Call-ID: 27-2905-192.168.160.141
> CSeq: 1 INVITE
> Contact: sip:sipp at 192.168.160.141:5064
> Max-Forwards: 70
> Expires: 180
> Subject: Performance Test
> Content-Type: application/sdp
> Content-Length:   200
>
> v=0
> o=user1 53655765 2353687637 IN IP4 192.168.160.141
> s=-
> c=IN IP4 192.168.160.141
> t=0 0
> m=audio 6109 RTP/AVP 8 101
> a=rtpmap:8 PCMA/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-11,16
>
> 12:03:48.876993 IP 127.0.0.1.5060 > 127.0.0.1.5064: SIP, length: 329
> E..e.. at .@.;~.............Q.dSIP/2.0 100 Giving a try
> Via: SIP/2.0/UDP 
> 192.168.160.141:5064;branch=z9hG4bk27-1;received=127.0.0.1
> From: sipp 
> <sip:27-2905-192.168.160.141 at 192.168.160.141:5064>;tag=2905SIPpTag0927
> To: sut <sip:simul at agent>
> Call-ID: 27-2905-192.168.160.141
> CSeq: 1 INVITE
> Server: Kamailio (1.4.3-notls (i386/linux))
> Content-Length: 0
>
>
> 12:03:48.877115 IP 127.0.0.1.5060 > 127.0.0.1.5062: SIP, length: 757
> E..... at .@.9.................INVITE sip:simul at agent SIP/2.0
> Record-Route: <sip:127.0.0.1;lr=on;ftag=2905SIPpTag0927;did=ef8.d115a076>
> Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK5d8d.942b65d7.0
> Via: SIP/2.0/UDP 
> 192.168.160.141:5064;received=127.0.0.1;branch=z9hG4bk27-1
> From: sipp 
> <sip:27-2905-192.168.160.141 at 192.168.160.141:5064>;tag=2905SIPpTag0927
> To: sut <sip:simul at agent>
> Call-ID: 27-2905-192.168.160.141
> CSeq: 1 INVITE
> Contact: sip:sipp at 192.168.160.141:5064
> Max-Forwards: 69
> Expires: 180
> Subject: Performance Test
> Content-Type: application/sdp
> Content-Length:   200
>
> v=0
> o=user1 53655765 2353687637 IN IP4 192.168.160.141
> s=-
> c=IN IP4 192.168.160.141
> t=0 0
> m=audio 6109 RTP/AVP 8 101
> a=rtpmap:8 PCMA/8000
> a=rtpmap:101 telephone-event/8000
> a=fmtp:101 0-11,16
>
> 12:03:48.982957 IP 127.0.0.1.5062 > 127.0.0.1.5060: SIP, length: 443
> E..... at .@.;.................SIP/2.0 100 Trying
> Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK5d8d.942b65d7.0, SIP/2.0/UDP 
> 192.168.160.141:5064;received=127.0.0.1;branch=z9hG4bk27-1
> From: sipp 
> <sip:27-2905-192.168.160.141 at 192.168.160.141:5064>;tag=2905SIPpTag0927
> To: sut <sip:simul at agent>
> Call-ID: 27-2905-192.168.160.141
> CSeq: 1 INVITE
> Record-Route: <sip:127.0.0.1;lr=on;ftag=2905SIPpTag0927;did=ef8.d115a076>
> Contact: <sip:192.168.160.141:5062>
> Content-Length: 0
>
>
> 12:03:49.024667 IP 127.0.0.1.5062 > 127.0.0.1.5060: SIP, length: 466
> E..... at .@.:.................SIP/2.0 180 Ringing
> Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK5d8d.942b65d7.0, SIP/2.0/UDP 
> 192.168.160.141:5064;received=127.0.0.1;branch=z9hG4bk27-1
> From: sipp 
> <sip:27-2905-192.168.160.141 at 192.168.160.141:5064>;tag=2905SIPpTag0927
> To: sut <sip:simul at agent>;tag=29892SIPpTag01991
> Call-ID: 27-2905-192.168.160.141
> CSeq: 1 INVITE
> Record-Route: <sip:127.0.0.1;lr=on;ftag=2905SIPpTag0927;did=ef8.d115a076>
> Contact: <sip:192.168.160.141:5062>
> Content-Length: 0
>
>
> 12:03:49.025871 IP 127.0.0.1.5060 > 127.0.0.1.5064: SIP, length: 413
> E..... at .@.;*................SIP/2.0 180 Ringing
> Via: SIP/2.0/UDP 
> 192.168.160.141:5064;received=127.0.0.1;branch=z9hG4bk27-1
> From: sipp 
> <sip:27-2905-192.168.160.141 at 192.168.160.141:5064>;tag=2905SIPpTag0927
> To: sut <sip:simul at agent>;tag=29892SIPpTag01991
> Call-ID: 27-2905-192.168.160.141
> CSeq: 1 INVITE
> Record-Route: <sip:127.0.0.1;lr=on;ftag=2905SIPpTag0927;did=ef8.d115a076>
> Contact: <sip:192.168.160.141:5062>
> Content-Length: 0
>
>
> *12:03:49.581162 IP 127.0.0.1.5064 > 127.0.0.1.5060: SIP, length: 427
> E..... at .@.;$................CANCEL sip:simul at agent SIP/2.0
> Via: SIP/2.0/UDP 192.168.160.141:5064;branch=z9hG4bk27-1
> From: sipp 
> <sip:27-2905-192.168.160.141 at 192.168.160.141:5064>;tag=2905SIPpTag0927
> To: sut <sip:simul at agent>;tag=29892SIPpTag01991
>
> Route: <sip:127.0.0.1;lr=on;ftag=2905SIPpTag0927;did=ef8.d115a076>
> Call-ID: 27-2905-192.168.160.141
> CSeq: 1 INVITE
> Contact: sip:sipp at 192.168.160.141:5064
> Max-Forwards: 70
> Subject: Performance Test*
>
>
> *12:03:49.631009 IP 127.0.0.1.5060 > 127.0.0.1.5064: SIP, length: 348
> E..x.. at .@.;k.............d.wSIP/2.0 200 canceling
> Via: SIP/2.0/UDP 
> 192.168.160.141:5064;branch=z9hG4bk27-1;received=127.0.0.1
> From: sipp 
> <sip:27-2905-192.168.160.141 at 192.168.160.141:5064>;tag=2905SIPpTag0927
> To: sut <sip:simul at agent>;tag=29892SIPpTag01991
> Call-ID: 27-2905-192.168.160.141
> CSeq: 1 INVITE
> Server: Kamailio (1.4.3-notls (i386/linux))
> Content-Length: 0*
>
>
> *12:03:49.631337 IP 127.0.0.1.5060 > 127.0.0.1.5062: SIP, length: 338
> E..n.. at .@.;u.............Z.mCANCEL sip:simul at agent SIP/2.0
> Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK5d8d.942b65d7.0
> From: sipp 
> <sip:27-2905-192.168.160.141 at 192.168.160.141:5064>;tag=2905SIPpTag0927
> Call-ID: 27-2905-192.168.160.141
> To: sut <sip:simul at agent>
> CSeq: 1 CANCEL
> Max-Forwards: 70
> User-Agent: Kamailio (1.4.3-notls (i386/linux))
> Content-Length: 0*
>
>
> 12:03:49.642256 IP 127.0.0.1.5062 > 127.0.0.1.5060: SIP, length: 292
> E.. at ..@. at .;..............,.?SIP/2.0 200 OK
> Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK5d8d.942b65d7.0
> From: sipp 
> <sip:27-2905-192.168.160.141 at 192.168.160.141:5064>;tag=2905SIPpTag0927
> To: sut <sip:simul at agent>
> Call-ID: 27-2905-192.168.160.141
> CSeq: 1 CANCEL
> Contact: <sip:192.168.160.141:5062>
> Content-Length: 0
>
>
> 12:03:49.653951 IP 127.0.0.1.5062 > 127.0.0.1.5060: SIP, length: 308
> E..P.. at .@.;..............<.OSIP/2.0 487 Request Terminated
> Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK5d8d.942b65d7.0
> From: sipp 
> <sip:27-2905-192.168.160.141 at 192.168.160.141:5064>;tag=2905SIPpTag0927
> To: sut <sip:simul at agent>
> Call-ID: 27-2905-192.168.160.141
> CSeq: 1 INVITE
> Contact: <sip:192.168.160.141:5062>
> Content-Length: 0
>
>
> 12:03:49.675936 IP 127.0.0.1.5060 > 127.0.0.1.5062: SIP, length: 332
> E..h.. at .@.;{.............T.gACK sip:simul at agent SIP/2.0
> Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bK5d8d.942b65d7.0
> From: sipp 
> <sip:27-2905-192.168.160.141 at 192.168.160.141:5064>;tag=2905SIPpTag0927
> Call-ID: 27-2905-192.168.160.141
> To: sut <sip:simul at agent>
> CSeq: 1 ACK
> Max-Forwards: 70
> User-Agent: Kamailio (1.4.3-notls (i386/linux))
> Content-Length: 0
>
>
> 12:03:49.676670 IP 127.0.0.1.5060 > 127.0.0.1.5064: SIP, length: 250
> E..... at .@.;.................SIP/2.0 487 Request Terminated
> From: sipp 
> <sip:27-2905-192.168.160.141 at 192.168.160.141:5064>;tag=2905SIPpTag0927
> To: sut <sip:simul at agent>
> Call-ID: 27-2905-192.168.160.141
> CSeq: 1 INVITE
> Contact: <sip:192.168.160.141:5062>
> Content-Length: 0
>
>
> 12:03:49.677965 IP 127.0.0.1.5064 > 127.0.0.1.5060: SIP, length: 418
> E..... at .@.;-................ACK sip:simul at agent SIP/2.0
> Via: SIP/2.0/UDP 192.168.160.141:5064;branch=z9hG4bk27-1
> From: sipp 
> <sip:27-2905-192.168.160.141 at 192.168.160.141:5064>;tag=2905SIPpTag0927
> To: sut <sip:simul at agent>
> Route: <sip:127.0.0.1;lr=on;ftag=2905SIPpTag0927;did=ef8.d115a076>
> Call-ID: 27-2905-192.168.160.141
> CSeq: 1 ACK
> Contact: sip:sipp at 192.168.160.141:5064
> Max-Forwards: 70
> Subject: Performance Test
> Content-Length: 0
>
>
>
> Daniel-Constantin Mierla a écrit :
>>
>>
>> On 01/09/2009 12:44 PM, Aurelien Grimaud wrote:
>>> When an INVITE is being Canceled, I receive a 200 canceling from 
>>> kamailio 1.4.3.
>>> But the CSeq is set to the initial INVITE CSeq.
>>>
>>> Should not it be CSeq:1 CANCEL ?
>>>   
>> please paste the sip trace.
>>
>> Daniel
>>
>

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the Devel mailing list