[OpenSIPS-Users] Problem proxying a SIP connection with t_relay

Thomas Pircher thp.opensips at p5r.uk
Thu Oct 13 08:57:18 UTC 2022


Bogdan-Andrei Iancu wrote:
>Sorry, my wireshark is not able to open that pcap :(, complains on a 
>unknown command or so :(. Try exportting the pcap as SIP text only.

HI Bogdam-Andrei,

I think newer versions of libpcap appear to use some
backwards-incompatible fields. The trace was captured with tcpdump
version 4.99.0, using libpcap version 1.10.0.

I have attached the same trace with only the UDP payload exported as
text, using:
tshark -r opensips-any.pcap -T fields -e udp.payload | while read payload; do echo $payload | xxd -r -p; echo ===; done

John in the other sub-thread seems to be onto something: the SIPp UAS
does not appear to send RR headers with its responses, which might be
the cause of these problems.

Thanks,
Thomas
-------------- next part --------------
INVITE sip:5678 at 10.30.8.201:5060 SIP/2.0
Via: SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: sip:sipp at 10.30.8.204:5060
Max-Forwards: 70
Subject: Performance Test
Content-Type: application/sdp
Content-Length:   188

v=0
o=user1 53655765 2353687637 IN IP4 10.30.8.204
s=-
c=IN IP4 10.30.8.204
t=0 0
m=audio 6000 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11,16
===
SIP/2.0 100 Giving it a try
Via: SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
To: sut <sip:5678 at 10.30.8.201:5060>
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Server: OpenSIPS (3.3.1 (x86_64/linux))
Content-Length: 0

===
INVITE sip:5678 at 10.30.8.201:5060 SIP/2.0
Record-Route: <sip:10.30.9.10;r2=on;lr;did=f19.916ac055>
Record-Route: <sip:10.30.8.201;r2=on;lr;did=f19.916ac055>
Via: SIP/2.0/UDP 10.30.9.10:5060;branch=z9hG4bK659a.b3ed2224.0
Via: SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: sip:sipp at 10.30.8.204:5060
Max-Forwards: 69
Subject: Performance Test
Content-Type: application/sdp
Content-Length: 205

v=0
o=user1 53655765 2353687637 IN IP4 10.30.9.10
s=-
c=IN IP4 10.30.9.10
t=0 0
m=audio 42160 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-11,16
a=nortpproxy:yes
===
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.30.9.10:5060;branch=z9hG4bK659a.b3ed2224.0, SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: <sip:10.30.9.11:5060;transport=UDP>
Content-Length: 0

===
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: <sip:10.30.9.11:5060;transport=UDP>
Content-Length: 0

===
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.30.9.10:5060;branch=z9hG4bK659a.b3ed2224.0, SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: <sip:10.30.9.11:5060;transport=UDP>
Content-Type: application/sdp
Content-Length:   170

v=0
o=user1 53655765 2353687637 IN IP4 10.30.9.11
s=-
c=IN IP4 10.30.9.11
t=0 0
m=audio 1222 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
===
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: <sip:10.30.9.11:5060;transport=UDP>
Content-Type: application/sdp
Content-Length: 191

v=0
o=user1 53655765 2353687637 IN IP4 10.30.8.201
s=-
c=IN IP4 10.30.8.201
t=0 0
m=audio 42464 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=nortpproxy:yes
===
ACK sip:5678 at 10.30.8.201:5060 SIP/2.0
Via: SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-4
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 ACK
Contact: sip:sipp at 10.30.8.204:5060
Max-Forwards: 70
Subject: Performance Test
Content-Length: 0

===
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.30.9.10:5060;branch=z9hG4bK659a.b3ed2224.0, SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: <sip:10.30.9.11:5060;transport=UDP>
Content-Type: application/sdp
Content-Length:   170

v=0
o=user1 53655765 2353687637 IN IP4 10.30.9.11
s=-
c=IN IP4 10.30.9.11
t=0 0
m=audio 1222 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
===
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: <sip:10.30.9.11:5060;transport=UDP>
Content-Type: application/sdp
Content-Length: 191

v=0
o=user1 53655765 2353687637 IN IP4 10.30.8.201
s=-
c=IN IP4 10.30.8.201
t=0 0
m=audio 42464 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=nortpproxy:yes
===
ACK sip:5678 at 10.30.8.201:5060 SIP/2.0
Via: SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-4
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 ACK
Contact: sip:sipp at 10.30.8.204:5060
Max-Forwards: 70
Subject: Performance Test
Content-Length: 0

===
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.30.9.10:5060;branch=z9hG4bK659a.b3ed2224.0, SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: <sip:10.30.9.11:5060;transport=UDP>
Content-Type: application/sdp
Content-Length:   170

v=0
o=user1 53655765 2353687637 IN IP4 10.30.9.11
s=-
c=IN IP4 10.30.9.11
t=0 0
m=audio 1222 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
===
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: <sip:10.30.9.11:5060;transport=UDP>
Content-Type: application/sdp
Content-Length: 191

v=0
o=user1 53655765 2353687637 IN IP4 10.30.8.201
s=-
c=IN IP4 10.30.8.201
t=0 0
m=audio 42464 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=nortpproxy:yes
===
ACK sip:5678 at 10.30.8.201:5060 SIP/2.0
Via: SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-4
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 ACK
Contact: sip:sipp at 10.30.8.204:5060
Max-Forwards: 70
Subject: Performance Test
Content-Length: 0

===
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.30.9.10:5060;branch=z9hG4bK659a.b3ed2224.0, SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: <sip:10.30.9.11:5060;transport=UDP>
Content-Type: application/sdp
Content-Length:   170

v=0
o=user1 53655765 2353687637 IN IP4 10.30.9.11
s=-
c=IN IP4 10.30.9.11
t=0 0
m=audio 1222 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
===
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: <sip:10.30.9.11:5060;transport=UDP>
Content-Type: application/sdp
Content-Length: 191

v=0
o=user1 53655765 2353687637 IN IP4 10.30.8.201
s=-
c=IN IP4 10.30.8.201
t=0 0
m=audio 42464 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=nortpproxy:yes
===
ACK sip:5678 at 10.30.8.201:5060 SIP/2.0
Via: SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-4
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 ACK
Contact: sip:sipp at 10.30.8.204:5060
Max-Forwards: 70
Subject: Performance Test
Content-Length: 0

===
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.30.9.10:5060;branch=z9hG4bK659a.b3ed2224.0, SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: <sip:10.30.9.11:5060;transport=UDP>
Content-Type: application/sdp
Content-Length:   170

v=0
o=user1 53655765 2353687637 IN IP4 10.30.9.11
s=-
c=IN IP4 10.30.9.11
t=0 0
m=audio 1222 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
===
BYE sip:5678 at 10.30.8.201:5060 SIP/2.0
Via: SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-9
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 2 BYE
Contact: sip:sipp at 10.30.8.204:5060
Max-Forwards: 70
Subject: Performance Test
Content-Length: 0

===
SIP/2.0 404 Not here
Via: SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-9
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
Call-ID: 1-8000 at 10.30.8.204
CSeq: 2 BYE
Server: OpenSIPS (3.3.1 (x86_64/linux))
Content-Length: 0

===
BYE sip:5678 at 10.30.8.201:5060 SIP/2.0
Via: SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1--1
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 3 BYE
Max-Forwards: 70
Contact: <sip:sipp at 10.30.8.204:5060;transport=UDP>
Content-Length: 0

===
SIP/2.0 404 Not here
Via: SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1--1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
Call-ID: 1-8000 at 10.30.8.204
CSeq: 3 BYE
Server: OpenSIPS (3.3.1 (x86_64/linux))
Content-Length: 0

===
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.30.9.10:5060;branch=z9hG4bK659a.b3ed2224.0, SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: <sip:10.30.9.11:5060;transport=UDP>
Content-Type: application/sdp
Content-Length:   170

v=0
o=user1 53655765 2353687637 IN IP4 10.30.9.11
s=-
c=IN IP4 10.30.9.11
t=0 0
m=audio 1222 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
===
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.30.9.10:5060;branch=z9hG4bK659a.b3ed2224.0, SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: <sip:10.30.9.11:5060;transport=UDP>
Content-Type: application/sdp
Content-Length:   170

v=0
o=user1 53655765 2353687637 IN IP4 10.30.9.11
s=-
c=IN IP4 10.30.9.11
t=0 0
m=audio 1222 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
===
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.30.9.10:5060;branch=z9hG4bK659a.b3ed2224.0, SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: <sip:10.30.9.11:5060;transport=UDP>
Content-Type: application/sdp
Content-Length:   170

v=0
o=user1 53655765 2353687637 IN IP4 10.30.9.11
s=-
c=IN IP4 10.30.9.11
t=0 0
m=audio 1222 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
===
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.30.9.10:5060;branch=z9hG4bK659a.b3ed2224.0, SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: <sip:10.30.9.11:5060;transport=UDP>
Content-Type: application/sdp
Content-Length:   170

v=0
o=user1 53655765 2353687637 IN IP4 10.30.9.11
s=-
c=IN IP4 10.30.9.11
t=0 0
m=audio 1222 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
===
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.30.9.10:5060;branch=z9hG4bK659a.b3ed2224.0, SIP/2.0/UDP 10.30.8.204:5060;branch=z9hG4bK-8000-1-0
From: sipp <sip:sipp at 10.30.8.204:5060>;tag=1
To: sut <sip:5678 at 10.30.8.201:5060>;tag=5014SIPpTag0111
Call-ID: 1-8000 at 10.30.8.204
CSeq: 1 INVITE
Contact: <sip:10.30.9.11:5060;transport=UDP>
Content-Type: application/sdp
Content-Length:   170

v=0
o=user1 53655765 2353687637 IN IP4 10.30.9.11
s=-
c=IN IP4 10.30.9.11
t=0 0
m=audio 1222 RTP/AVP 8 101
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
===


More information about the Users mailing list