Thanks for the responses. I’m playing the “demo-echotest” sound file first before going to the Echo function, and don’t hear any audio from the sound file or the echo test, so that should be equivalent to your MOH suggestion. I’ve also tried recording the call to try and see if I’m getting anything from that end and the result is an empty file.
As I mentioned, there’s no firewall. Indeed, switching over to chan_sip and the call works fine.
Sorry about not enough detail in the capture. I’ll try to provide more from tcpdump. If there’s some flag that would add needed detail please let me know.
10:45:16.712551 IP (tos 0x68, ttl 255, id 65457, offset 0, flags [none], proto UDP (17), length 971)
10.0.0.201.sip > 10.0.0.202.sip: SIP, length: 943
INVITE sip:971XXXXXXX@10.0.0.202:5060 SIP/2.0
From: "A Person" <sip:301XXXXXXX@10.0.0.202:5060;transport=UDP>;tag=738fa08-7f000001-13c4-1f2961-ef6b4f78-1f2961
To: <sip:971XXXXXXX@10.0.0.202:5060>
Call-ID: 73ea248-7f000001-13c4-1f2961-8433a91c-1f2961@10.0.0.202
CSeq: 1 INVITE
Via: SIP/2.0/UDP 10.0.0.201:5060;branch=z9hG4bK-1f2961-79b9a440-61a2c77c
Max-Forwards: 70
Supported: replaces
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER, REGISTER
User-Agent: ADTRAN_NetVanta_3430/R11.4.3.V (s001992f387ee)
P-Asserted-Identity: "A Person" <sip:301XXXXXXX@10.0.0.202>
Contact: <sip:301XXXXXXX@10.0.0.201:5060;transport=UDP>
Content-Type: application/sdp
Content-Length: 231
v=0
o=Sonus_UAC 514561 607003 IN IP4 10.0.0.201
s=SIP Media Capabilities
c=IN IP4 10.0.0.201
t=0 0
m=audio 10768 RTP/AVP 0 101
a=sendrecv
a=ptime:20
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
10:45:16.712751 IP (tos 0x0, ttl 64, id 37090, offset 0, flags [none], proto UDP (17), length 417, bad cksum 0 (->d2d7)!)
10.0.0.202.sip > 10.0.0.201.sip: SIP, length: 389
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.0.0.201:5060;rport=5060;received=10.0.0.201;branch=z9hG4bK-1f2961-79b9a440-61a2c77c
Call-ID: 73ea248-7f000001-13c4-1f2961-8433a91c-1f2961@10.0.0.202
From: "A Person" <sip:301XXXXXXX@10.0.0.202>;tag=738fa08-7f000001-13c4-1f2961-ef6b4f78-1f2961
To: <sip:971XXXXXXX@10.0.0.202>
CSeq: 1 INVITE
Server: Asterisk PBX 16.2.1
Content-Length: 0
10:45:16.714193 IP (tos 0x0, ttl 64, id 37075, offset 0, flags [none], proto UDP (17), length 904, bad cksum 0 (->d0ff)!)
10.0.0.202.sip > 10.0.0.201.sip: SIP, length: 876
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.201:5060;rport=5060;received=10.0.0.201;branch=z9hG4bK-1f2961-79b9a440-61a2c77c
Call-ID: 73ea248-7f000001-13c4-1f2961-8433a91c-1f2961@10.0.0.202
From: "A Person" <sip:301XXXXXXX@10.0.0.202>;tag=738fa08-7f000001-13c4-1f2961-ef6b4f78-1f2961
To: <sip:971XXXXXXX@10.0.0.202>;tag=482b2b6f-bd2b-44f5-b136-8b1f4aa6beb7
CSeq: 1 INVITE
Server: Asterisk PBX 16.2.1
Contact: <sip:10.0.0.202:5060>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Content-Type: application/sdp
Content-Length: 225
v=0
o=- 514561 607005 IN IP4 10.0.0.202
s=Asterisk
c=IN IP4 10.0.0.202
t=0 0
m=audio 10886 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
10:45:16.805134 IP (tos 0x68, ttl 255, id 65462, offset 0, flags [none], proto UDP (17), length 740)
10.0.0.201.sip > 10.0.0.202.sip: SIP, length: 712
ACK sip:10.0.0.202:5060;transport=UDP SIP/2.0
From: "A Person" <sip:301XXXXXXX@10.0.0.202:5060;transport=UDP>;tag=738fa08-7f000001-13c4-1f2961-ef6b4f78-1f2961
To: <sip:971XXXXXXX@10.0.0.202>;tag=482b2b6f-bd2b-44f5-b136-8b1f4aa6beb7
Call-ID: 73ea248-7f000001-13c4-1f2961-8433a91c-1f2961@10.0.0.202
CSeq: 1 ACK
Via: SIP/2.0/UDP 10.0.0.201:5060;branch=z9hG4bK-1f2961-79b9a49d-58cd0f83
Max-Forwards: 70
Supported: replaces
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER, REGISTER
User-Agent: ADTRAN_NetVanta_3430/R11.4.3.V (s001992f387ee)
P-Asserted-Identity: "A Person" <sip:301XXXXXXX@10.0.0.202>
Contact: <sip:301XXXXXXX@10.0.0.201:5060;transport=UDP>
Content-Length: 0
10:45:16.815031 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10768 > 10.0.0.202.10886: UDP, length 172
10:45:16.815035 IP (tos 0x0, ttl 64, id 50284, offset 0, flags [none], proto ICMP (1), length 228, bad cksum 0 (->a01a)!)
10.0.0.202 > 10.0.0.201: ICMP 10.0.0.202 udp port 10886 unreachable, length 208
IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10768 > 10.0.0.202.10886: UDP, length 172
MPLS extension v15 packet not supported
10:45:16.835163 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10768 > 10.0.0.202.10886: UDP, length 172
10:45:16.835165 IP (tos 0x0, ttl 64, id 50285, offset 0, flags [none], proto ICMP (1), length 228, bad cksum 0 (->a019)!)
10.0.0.202 > 10.0.0.201: ICMP 10.0.0.202 udp port 10886 unreachable, length 208
IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10768 > 10.0.0.202.10886: UDP, length 172
MPLS extension v15 packet not supported
10:45:16.854841 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10768 > 10.0.0.202.10886: UDP, length 172
10:45:16.854843 IP (tos 0x0, ttl 64, id 50286, offset 0, flags [none], proto ICMP (1), length 228, bad cksum 0 (->a018)!)
10.0.0.202 > 10.0.0.201: ICMP 10.0.0.202 udp port 10886 unreachable, length 208
IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10768 > 10.0.0.202.10886: UDP, length 172
MPLS extension v15 packet not supported
10:45:16.874821 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10768 > 10.0.0.202.10886: UDP, length 172
10:45:16.874822 IP (tos 0x0, ttl 64, id 50287, offset 0, flags [none], proto ICMP (1), length 228, bad cksum 0 (->a017)!)
10.0.0.202 > 10.0.0.201: ICMP 10.0.0.202 udp port 10886 unreachable, length 208
IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10768 > 10.0.0.202.10886: UDP, length 172
MPLS extension v15 packet not supported
10:45:16.894800 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10768 > 10.0.0.202.10886: UDP, length 172
10:45:16.894801 IP (tos 0x0, ttl 64, id 50288, offset 0, flags [none], proto ICMP (1), length 228, bad cksum 0 (->a016)!)
10.0.0.202 > 10.0.0.201: ICMP 10.0.0.202 udp port 10886 unreachable, length 208
IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10768 > 10.0.0.202.10886: UDP, length 172
MPLS extension v15 packet not supported
10:45:16.914779 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10768 > 10.0.0.202.10886: UDP, length 172
10:45:16.914780 IP (tos 0x0, ttl 64, id 50289, offset 0, flags [none], proto ICMP (1), length 228, bad cksum 0 (->a015)!)
10.0.0.202 > 10.0.0.201: ICMP 10.0.0.202 udp port 10886 unreachable, length 208
IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10768 > 10.0.0.202.10886: UDP, length 172
MPLS extension v15 packet not supported
10:45:16.934759 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10768 > 10.0.0.202.10886: UDP, length 172
10:45:16.934762 IP (tos 0x0, ttl 64, id 37091, offset 0, flags [none], proto ICMP (1), length 228, bad cksum 0 (->d3a3)!)
10.0.0.202 > 10.0.0.201: ICMP 10.0.0.202 udp port 10886 unreachable, length 208
IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10768 > 10.0.0.202.10886: UDP, length 172
MPLS extension v15 packet not supported
10:45:16.954740 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10768 > 10.0.0.202.10886: UDP, length 172
10:45:16.954741 IP (tos 0x0, ttl 64, id 37092, offset 0, flags [none], proto ICMP (1), length 228, bad cksum 0 (->d3a2)!)
10.0.0.202 > 10.0.0.201: ICMP 10.0.0.202 udp port 10886 unreachable, length 208
IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10768 > 10.0.0.202.10886: UDP, length 172
MPLS extension v15 packet not supported
It really looks like there’s a firewall blocking RTP, but like I said, there is no firewall and the same call works when switching to chan_sip. It feels like pjsip just isn’t open the port for some reason. Maybe something on the transport settings, but I’m just guessing. Below is a working SIP call:
11:00:00.248086 IP (tos 0x68, ttl 255, id 142, offset 0, flags [none], proto UDP (17), length 971)
10.0.0.201.sip > 10.0.0.202.sip: SIP, length: 943
INVITE sip:971XXXXXXX@10.0.0.202:5060 SIP/2.0
From: "A Person" <sip:301XXXXXXX@10.0.0.202:5060;transport=UDP>;tag=73204a0-7f000001-13c4-1f2cd4-aa045d66-1f2cd4
To: <sip:971XXXXXXX@10.0.0.202:5060>
Call-ID: 73eb828-7f000001-13c4-1f2cd4-a9c47ffd-1f2cd4@10.0.0.202
CSeq: 1 INVITE
Via: SIP/2.0/UDP 10.0.0.201:5060;branch=z9hG4bK-1f2cd4-79c71f3c-1b030e25
Max-Forwards: 70
Supported: replaces
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER, REGISTER
User-Agent: ADTRAN_NetVanta_3430/R11.4.3.V (s001992f387ee)
P-Asserted-Identity: "A Person" <sip:301XXXXXXX@10.0.0.202>
Contact: <sip:301XXXXXXX@10.0.0.201:5060;transport=UDP>
Content-Type: application/sdp
Content-Length: 231
v=0
o=Sonus_UAC 517206 565821 IN IP4 10.0.0.201
s=SIP Media Capabilities
c=IN IP4 10.0.0.201
t=0 0
m=audio 10780 RTP/AVP 0 101
a=sendrecv
a=ptime:20
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
11:00:00.250139 IP (tos 0x0, ttl 64, id 37156, offset 0, flags [none], proto UDP (17), length 629, bad cksum 0 (->d1c1)!)
10.0.0.202.sip > 10.0.0.201.sip: SIP, length: 601
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 10.0.0.201:5060;branch=z9hG4bK-1f2cd4-79c71f3c-1b030e25;received=10.0.0.201
From: "A Person" <sip:301XXXXXXX@10.0.0.202:5060;transport=UDP>;tag=73204a0-7f000001-13c4-1f2cd4-aa045d66-1f2cd4
To: <sip:971XXXXXXX@10.0.0.202:5060>
Call-ID: 73eb828-7f000001-13c4-1f2cd4-a9c47ffd-1f2cd4@10.0.0.202
CSeq: 1 INVITE
Server: Asterisk PBX 16.2.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1920;refresher=uas
Contact: <sip:971XXXXXXX@10.0.0.202:5060>
Content-Length: 0
11:00:00.250324 IP (tos 0x0, ttl 64, id 59182, offset 0, flags [none], proto UDP (17), length 908, bad cksum 0 (->7aa0)!)
10.0.0.202.sip > 10.0.0.201.sip: SIP, length: 880
SIP/2.0 200 OK
Via: SIP/2.0/UDP 10.0.0.201:5060;branch=z9hG4bK-1f2cd4-79c71f3c-1b030e25;received=10.0.0.201
From: "A Person" <sip:301XXXXXXX@10.0.0.202:5060;transport=UDP>;tag=73204a0-7f000001-13c4-1f2cd4-aa045d66-1f2cd4
To: <sip:971XXXXXXX@10.0.0.202:5060>;tag=as6b34065b
Call-ID: 73eb828-7f000001-13c4-1f2cd4-a9c47ffd-1f2cd4@10.0.0.202
CSeq: 1 INVITE
Server: Asterisk PBX 16.2.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1920;refresher=uas
Contact: <sip:971XXXXXXX@10.0.0.202:5060>
Content-Type: application/sdp
Content-Length: 235
v=0
o=root 1505109749 1505109749 IN IP4 10.0.0.202
s=Asterisk PBX 16.2.1
c=IN IP4 10.0.0.202
t=0 0
m=audio 12448 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=maxptime:150
a=sendrecv
11:00:00.342760 IP (tos 0x68, ttl 255, id 147, offset 0, flags [none], proto UDP (17), length 730)
10.0.0.201.sip > 10.0.0.202.sip: SIP, length: 702
ACK sip:971XXXXXXX@10.0.0.202:5060;transport=UDP SIP/2.0
From: "A Person" <sip:301XXXXXXX@10.0.0.202:5060;transport=UDP>;tag=73204a0-7f000001-13c4-1f2cd4-aa045d66-1f2cd4
To: <sip:971XXXXXXX@10.0.0.202:5060>;tag=as6b34065b
Call-ID: 73eb828-7f000001-13c4-1f2cd4-a9c47ffd-1f2cd4@10.0.0.202
CSeq: 1 ACK
Via: SIP/2.0/UDP 10.0.0.201:5060;branch=z9hG4bK-1f2cd4-79c71f9a-336c67a0
Max-Forwards: 70
Supported: replaces
Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER, REGISTER
User-Agent: ADTRAN_NetVanta_3430/R11.4.3.V (s001992f387ee)
P-Asserted-Identity: "A Person" <sip:301XXXXXXX@10.0.0.202>
Contact: <sip:301XXXXXXX@10.0.0.201:5060;transport=UDP>
Content-Length: 0
11:00:00.347113 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:00.367215 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:00.386866 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:00.406817 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:00.426918 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:00.446869 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:00.466819 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:00.486921 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:00.506872 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:00.526822 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:00.546769 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:00.566874 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:00.586825 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:00.606777 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:00.626877 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:00.646828 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
...
11:00:01.347895 IP (tos 0x0, ttl 64, id 37157, offset 0, flags [none], proto UDP (17), length 200, bad cksum 0 (->d36d)!)
10.0.0.202.12448 > 10.0.0.201.10780: UDP, length 172
11:00:01.366377 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:01.368854 IP (tos 0x0, ttl 64, id 37158, offset 0, flags [none], proto UDP (17), length 200, bad cksum 0 (->d36c)!)
10.0.0.202.12448 > 10.0.0.201.10780: UDP, length 172
11:00:01.386436 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:01.388851 IP (tos 0x0, ttl 64, id 37159, offset 0, flags [none], proto UDP (17), length 200, bad cksum 0 (->d36b)!)
10.0.0.202.12448 > 10.0.0.201.10780: UDP, length 172
11:00:01.406432 IP (tos 0xb8, ttl 52, id 0, offset 0, flags [DF], proto UDP (17), length 200)
10.0.0.201.10780 > 10.0.0.202.12448: UDP, length 172
11:00:01.408851 IP (tos 0x0, ttl 64, id 37160, offset 0, flags [none], proto UDP (17), length 200, bad cksum 0 (->d36a)!)
10.0.0.202.12448 > 10.0.0.201.10780: UDP, length 172