Hello,
I am trying to connect to a kamailio server using a Cisco SPA504G phone
using TCP instead of TCP. When in UDP, it works fine, but in TCP I get
errors relating to CSEQ.
I included the trace taking with ngrep after the email.
I don't understand the CSeq error. I had a look at RFC3261, it says that
the CSEQ number has to increase and that's what it has done. Can anyone
tell me where the errorlies ?
I tried changeing the check sanity to not check that CSeq is valid, but
it screws up authentication as it mis detects the method type.
Please advise,
David
interface: eth0 (SERVERIP/255.255.255.128)
filter: (ip or ip6) and ( port 5060 and host 206.248.130.233
####
T 206.248.130.233:5075 -> SERVERIP:5060 [AP]
REGISTER sip:SERVERNAME.TLD SIP/2.0.
Via: SIP/2.0/TCP 192.168.1.225:5075;branch=z9hG4bK-b03863b5;rport.
From: "104 Zone T"
<sip:testzone.104@SERVERNAME.TLD>;tag=3fa2fa4d354b4261o0.
To: "104 Zone T" <sip:testzone.104@SERVERNAME.TLD>.
Call-ID: 4c3756fb-9b03d67a(a)192.168.1.225.
CSeq: 50446 REGISTER.
Max-Forwards: 70.
Contact: "104 Zone T"
<sip:testzone.104@192.168.1.225:5075;transport=tcp>;expires=3600.
Warning: 399 spa "STUN Server Not Reachable".
User-Agent: Cisco/SPA504G-7.4.9c.
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER, UPDATE.
Supported: replaces.
.
##
T SERVERIP:5060 -> 206.248.130.233:5075 [AP]
SIP/2.0 401 Unauthorized.
Via: SIP/2.0/TCP
192.168.1.225:5075;received=206.248.130.233;branch=z9hG4bK-b03863b5;rport=5075.
From: "104 Zone T"
<sip:testzone.104@SERVERNAME.TLD>;tag=3fa2fa4d354b4261o0.
To: "104 Zone T"
<sip:testzone.104@SERVERNAME.TLD>;tag=a889ade7c63805944f01d11bb71a916b.6a29.
Call-ID: 4c3756fb-9b03d67a(a)192.168.1.225.
CSeq: 50446 REGISTER.
WWW-Authenticate: Digest realm="SERVERNAME.TLD",
nonce="4f4b87c31ea308c5fdf54c90cf2b30a400fa97a7".
Server: OmniVigil 5.0a.
Content-Length: 0.
.
##
T 206.248.130.233:5075 -> SERVERIP:5060 [AP]
REGISTER sip:SERVERNAME.TLD SIP/2.0.
Via: SIP/2.0/TCP 192.168.1.225:5075;branch=z9hG4bK-dcfc09e;rport.
From: "104 Zone T"
<sip:testzone.104@SERVERNAME.TLD>;tag=3fa2fa4d354b4261o0.
To: "104 Zone T" <sip:testzone.104@SERVERNAME.TLD>.
Call-ID: 4c3756fb-9b03d67a(a)192.168.1.225.
CSeq: 50447 REGISTER.
Max-Forwards: 70.
Authorization: Digest
username="testzone.104",realm="SERVERNAME.TLD",nonce="4f4b87c31ea308c5fdf54c90cf2b30a400fa97a7",uri="sip:SERVERNAME.TLD",algorithm=MD5,response="77ddf2a1baafd33ed0c675fdc074bc03".
Contact: "104 Zone T"
<sip:testzone.104@206.248.130.233:5075;transport=tcp>;expires=3600.
Warning: 399 spa "STUN Server Not Reachable".
User-Agent: Cisco/SPA504G-7.4.9c.
Content-Length: 0.
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER, UPDATE.
Supported: replaces.
.
##
T SERVERIP:5060 -> 206.248.130.233:5075 [AP]
SIP/2.0 400 CSeq method does not match request method.
Via: SIP/2.0/TCP
192.168.1.225:5075;branch=z9hG4bK-dcfc09e;rport=5075;received=206.248.130.233.
From: "104 Zone T"
<sip:testzone.104@SERVERNAME.TLD>;tag=3fa2fa4d354b4261o0.
To: "104 Zone T"
<sip:testzone.104@SERVERNAME.TLD>;tag=1feca66ab82b1f32a901c4cd8a4b7a05.e8e6.
Call-ID: 4c3756fb-9b03d67a(a)192.168.1.225.
CSeq: 50447 REGISTER.
Server: kamailio (3.1.5 (x86_64/linux)).
Content-Length: 0.
.