OK, so I’ve made a deeper digging into this, and realized that you’re probably right, and Media IS going through the server. However, I still can’t get any actual call established. as I’ve mentioned before, the 4G provider is not routing some packets properly, so one side never realizes the call is supposed to be on… Maybe TCP will help this work better? This is where I wonder why TCP is still disabled within asterisk, even if I’ve enabled it in the FreePBX GUI…
The packet capture that lead me to this conclusion (that you’re right):
15:24:31.893052 IP (tos 0x20, ttl 38, id 39342, offset 0, flags [none], proto UDP (17), length 1616)
(Ext A IP).37766 > (Server IP).5060: SIP, length: 1588
INVITE sip:38830001@(Server IP) SIP/2.0
Via: SIP/2.0/UDP (Ext A IP):37766;branch=z9hG4bKPjf9.A8DJu8s6DDgRZheTLNne561oDD86W
Max-Forwards: 70
From: sip:38831001@(Server IP);tag=UDM4MeXwGZrdNSrxOaxD85tnWNAIkaVs
To: sip:38830001@(Server IP)
Contact: <sip:38831001@(Ext A IP):37766;ob>
Call-ID: wu8k7Wpv9H-KBVNLfsIiLZhfRFUQLwRV
CSeq: 22204 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
Content-Type: application/sdp
Content-Length: 953
v=0
o=- 3745841070 3745841070 IN IP4 (Ext A IP)
s=pjmedia
b=AS:352
t=0 0
a=X-nat:0
m=audio 37762 RTP/AVP 98 97 99 104 3 0 8 9 113 114 115 116 117 96
c=IN IP4 (Ext A IP)
b=TIAS:64000
a=rtcp:4001 IN IP4 10.175.22.166
a=sendrecv
a=rtpmap:98 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:99 speex/32000
a=rtpmap:104 iLBC/8000
a=fmtp:104 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:113 G7221/16000
a=fmtp:113 bitrate=24000
a=rtpmap:114 G7221/16000
a=fmtp:114 bitrate=32000
a=rtpmap:115 G7221/32000
a=fmtp:115 bitrate=24000
a=rtpmap:116 G7221/32000
a=fmtp:116 bitrate=32000
a=rtpmap:117 G7221/32000
a=fmtp:117 bitrate=48000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
m=video 37760 RTP/AVP 97
c=IN IP4 (Ext A IP)
b=TIAS:256000
a=rtcp:4003 IN IP4 10.175.22.166
a=sendrecv
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42e01e; packetization-mode=1
15:24:31.893457 IP (tos 0x60, ttl 64, id 62975, offset 0, flags [DF], proto UDP (17), length 619)
(Server IP).5060 > (Ext A IP).37766: SIP, length: 591
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP (Ext A IP):37766;rport=37766;received=(Ext A IP);branch=z9hG4bKPjf9.A8DJu8s6DDgRZheTLNne561oDD86W
Call-ID: wu8k7Wpv9H-KBVNLfsIiLZhfRFUQLwRV
From: <sip:38831001@(Server IP)>;tag=UDM4MeXwGZrdNSrxOaxD85tnWNAIkaVs
To: <sip:38830001@(Server IP)>;tag=z9hG4bKPjf9.A8DJu8s6DDgRZheTLNne561oDD86W
CSeq: 22204 INVITE
WWW-Authenticate: Digest realm=“asterisk”,nonce=“1536852271/a5798ee4699ec52a572bad301142f594”,opaque=“666e812c19faf4c7”,algorithm=md5,qop=“auth”
Server: FPBX-14.0.3.13(14.7.7)
Content-Length: 0
15:24:32.113501 IP (tos 0x20, ttl 39, id 39345, offset 0, flags [DF], proto UDP (17), length 440)
(Ext A IP).37766 > (Server IP).5060: SIP, length: 412
ACK sip:38830001@(Server IP) SIP/2.0
Via: SIP/2.0/UDP (Ext A IP):37766;branch=z9hG4bKPjf9.A8DJu8s6DDgRZheTLNne561oDD86W
Max-Forwards: 70
From: sip:38831001@(Server IP);tag=UDM4MeXwGZrdNSrxOaxD85tnWNAIkaVs
To: sip:38830001@(Server IP);tag=z9hG4bKPjf9.A8DJu8s6DDgRZheTLNne561oDD86W
Call-ID: wu8k7Wpv9H-KBVNLfsIiLZhfRFUQLwRV
CSeq: 22204 ACK
Content-Length: 0
15:24:32.152225 IP (tos 0x20, ttl 38, id 39346, offset 0, flags [none], proto UDP (17), length 1929)
(Ext A IP).37766 > (Server IP).5060: SIP, length: 1901
INVITE sip:38830001@(Server IP) SIP/2.0
Via: SIP/2.0/UDP (Ext A IP):37766;branch=z9hG4bKPj3uNAKAExL3RG3nE8LDJTe5lLBLpzTlow
Max-Forwards: 70
From: sip:38831001@(Server IP);tag=UDM4MeXwGZrdNSrxOaxD85tnWNAIkaVs
To: sip:38830001@(Server IP)
Contact: <sip:38831001@(Ext A IP):37766;ob>
Call-ID: wu8k7Wpv9H-KBVNLfsIiLZhfRFUQLwRV
CSeq: 22205 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
Authorization: Digest username=“38831001”, realm=“asterisk”, nonce=“1536852271/a5798ee4699ec52a572bad301142f594”, uri=“sip:38830001@(Server IP)”, response=“e17a85f90f9cfdf41381d27cecdedb7f”, algorithm=md5, cnonce=“T9NOJHmmC9DpjOO72dS-AR8CYWec08JA”, opaque=“666e812c19faf4c7”, qop=auth, nc=00000001
Content-Type: application/sdp
Content-Length: 953
v=0
o=- 3745841070 3745841070 IN IP4 (Ext A IP)
s=pjmedia
b=AS:352
t=0 0
a=X-nat:0
m=audio 37762 RTP/AVP 98 97 99 104 3 0 8 9 113 114 115 116 117 96
c=IN IP4 (Ext A IP)
b=TIAS:64000
a=rtcp:4001 IN IP4 10.175.22.166
a=sendrecv
a=rtpmap:98 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:99 speex/32000
a=rtpmap:104 iLBC/8000
a=fmtp:104 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:113 G7221/16000
a=fmtp:113 bitrate=24000
a=rtpmap:114 G7221/16000
a=fmtp:114 bitrate=32000
a=rtpmap:115 G7221/32000
a=fmtp:115 bitrate=24000
a=rtpmap:116 G7221/32000
a=fmtp:116 bitrate=32000
a=rtpmap:117 G7221/32000
a=fmtp:117 bitrate=48000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
m=video 37760 RTP/AVP 97
c=IN IP4 (Ext A IP)
b=TIAS:256000
a=rtcp:4003 IN IP4 10.175.22.166
a=sendrecv
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42e01e; packetization-mode=1
15:24:32.153006 IP (tos 0x60, ttl 64, id 63143, offset 0, flags [DF], proto UDP (17), length 420)
(Server IP).5060 > (Ext A IP).37766: SIP, length: 392
SIP/2.0 100 Trying
Via: SIP/2.0/UDP (Ext A IP):37766;rport=37766;received=(Ext A IP);branch=z9hG4bKPj3uNAKAExL3RG3nE8LDJTe5lLBLpzTlow
Call-ID: wu8k7Wpv9H-KBVNLfsIiLZhfRFUQLwRV
From: <sip:38831001@(Server IP)>;tag=UDM4MeXwGZrdNSrxOaxD85tnWNAIkaVs
To: <sip:38830001@(Server IP)>
CSeq: 22205 INVITE
Server: FPBX-14.0.3.13(14.7.7)
Content-Length: 0
15:24:32.191575 IP (tos 0x60, ttl 64, id 63169, offset 0, flags [DF], proto UDP (17), length 691)
(Server IP).5060 > (Ext A IP).37766: SIP, length: 663
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP (Ext A IP):37766;rport=37766;received=(Ext A IP);branch=z9hG4bKPj3uNAKAExL3RG3nE8LDJTe5lLBLpzTlow
Call-ID: wu8k7Wpv9H-KBVNLfsIiLZhfRFUQLwRV
From: <sip:38831001@(Server IP)>;tag=UDM4MeXwGZrdNSrxOaxD85tnWNAIkaVs
To: <sip:38830001@(Server IP)>;tag=3f07172a-138d-4de2-b3da-944b7b8dc4e1
CSeq: 22205 INVITE
Server: FPBX-14.0.3.13(14.7.7)
Contact: <sip:(Server IP):5060>
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
15:24:32.192638 IP (tos 0x60, ttl 64, id 35848, offset 0, flags [DF], proto UDP (17), length 1084)
(Server IP).5060 > (Ext B IP).5060: SIP, length: 1056
INVITE sip:38830001@(Ext B IP):5060 SIP/2.0
Via: SIP/2.0/UDP (Server IP):5060;rport;branch=z9hG4bKPj44d38e36-39b6-435c-973c-94a7de1d71a1
From: “10A” <sip:38831001@(Server IP)>;tag=7201d810-683e-4f01-b262-edc5ea1c2769
To: <sip:38830001@(Ext B IP)>
Contact: <sip:asterisk@(Server IP):5060>
Call-ID: b70e0de5-d284-4ba7-b15c-807043beaf9f
CSeq: 26808 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
P-Asserted-Identity: “10A” <sip:38831001@(Server IP)>
Max-Forwards: 70
User-Agent: FPBX-14.0.3.13(14.7.7)
Content-Type: application/sdp
Content-Length: 335
v=0
o=- 1200674576 1200674576 IN IP4 (Server IP)
s=Asterisk
c=IN IP4 (Server IP)
t=0 0
m=audio 19582 RTP/AVP 0 8 3 111 9 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:111 G726-32/8000
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
15:24:32.359286 IP (tos 0x17,CE, ttl 232, id 22250, offset 0, flags [none], proto UDP (17), length 521)
(Ext B IP).5060 > (Server IP).5060: SIP, length: 493
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP (Server IP):5060;rport;branch=z9hG4bKPj44d38e36-39b6-435c-973c-94a7de1d71a1
Contact: <sip:38830001@(Server IP):5060>
To: <sip:38830001@(Ext B IP):5060>;tag=2830065664
From: “10A” <sip:38831001@(Server IP)>;tag=7201d810-683e-4f01-b262-edc5ea1c2769
Call-ID: b70e0de5-d284-4ba7-b15c-807043beaf9f
CSeq: 26808 INVITE
User-Agent:SURiX iP Entrix V3.5.25 16-M3
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY
Accept: application/sdp
Content-Length: 0
15:24:32.359924 IP (tos 0x60, ttl 64, id 63257, offset 0, flags [DF], proto UDP (17), length 691)
(Server IP).5060 > (Ext A IP).37766: SIP, length: 663
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP (Ext A IP):37766;rport=37766;received=(Ext A IP);branch=z9hG4bKPj3uNAKAExL3RG3nE8LDJTe5lLBLpzTlow
Call-ID: wu8k7Wpv9H-KBVNLfsIiLZhfRFUQLwRV
From: <sip:38831001@(Server IP)>;tag=UDM4MeXwGZrdNSrxOaxD85tnWNAIkaVs
To: <sip:38830001@(Server IP)>;tag=3f07172a-138d-4de2-b3da-944b7b8dc4e1
CSeq: 22205 INVITE
Server: FPBX-14.0.3.13(14.7.7)
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Contact: <sip:(Server IP):5060>
15:24:34.426692 IP (tos 0x17,CE, ttl 232, id 22253, offset 0, flags [none], proto UDP (17), length 820)
(Ext B IP).5060 > (Server IP).5060: SIP, length: 792
SIP/2.0 200 OK
Via: SIP/2.0/UDP (Server IP):5060;rport;branch=z9hG4bKPj44d38e36-39b6-435c-973c-94a7de1d71a1
Contact: <sip:38830001@(Server IP):5060>
To: <sip:38830001@(Ext B IP):5060>;tag=2830065664
From: “10A” <sip:38831001@(Server IP)>;tag=7201d810-683e-4f01-b262-edc5ea1c2769
Call-ID: b70e0de5-d284-4ba7-b15c-807043beaf9f
CSeq: 26808 INVITE
User-Agent:SURiX iP Entrix V3.5.25 16-M3
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, NOTIFY
Accept: application/sdp
Supported: replaces
Content-Type: application/sdp
Content-Length: 250
v=0
o=- 4546474849 5556575859 IN IP4 (Ext B IP)
s=SURiX iP Entrix V3.5.25
c=IN IP4 (Ext B IP)
t=0 0
m=audio 55000 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
15:24:34.427158 IP (tos 0x60, ttl 64, id 36266, offset 0, flags [DF], proto UDP (17), length 435)
(Server IP).5060 > (Ext B IP).5060: SIP, length: 407
ACK sip:38830001@(Ext B IP):5060 SIP/2.0
Via: SIP/2.0/UDP (Server IP):5060;rport;branch=z9hG4bKPje93dac29-5756-4a7f-aed1-05a17f7ab6fc
From: “10A” <sip:38831001@(Server IP)>;tag=7201d810-683e-4f01-b262-edc5ea1c2769
To: <sip:38830001@(Ext B IP)>;tag=2830065664
Call-ID: b70e0de5-d284-4ba7-b15c-807043beaf9f
CSeq: 26808 ACK
Max-Forwards: 70
User-Agent: FPBX-14.0.3.13(14.7.7)
Content-Length: 0
15:24:34.427891 IP (tos 0x60, ttl 64, id 64316, offset 0, flags [DF], proto UDP (17), length 1179)
(Server IP).5060 > (Ext A IP).37766: SIP, length: 1151
SIP/2.0 200 OK
Via: SIP/2.0/UDP (Ext A IP):37766;rport=37766;received=(Ext A IP);branch=z9hG4bKPj3uNAKAExL3RG3nE8LDJTe5lLBLpzTlow
Call-ID: wu8k7Wpv9H-KBVNLfsIiLZhfRFUQLwRV
From: <sip:38831001@(Server IP)>;tag=UDM4MeXwGZrdNSrxOaxD85tnWNAIkaVs
To: <sip:38830001@(Server IP)>;tag=3f07172a-138d-4de2-b3da-944b7b8dc4e1
CSeq: 22205 INVITE
Server: FPBX-14.0.3.13(14.7.7)
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Contact: <sip:(Server IP):5060>
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
15:24:34.928523 IP (tos 0x60, ttl 64, id 64622, offset 0, flags [DF], proto UDP (17), length 1179)
(Server IP).5060 > (Ext A IP).37766: SIP, length: 1151
SIP/2.0 200 OK
Via: SIP/2.0/UDP (Ext A IP):37766;rport=37766;received=(Ext A IP);branch=z9hG4bKPj3uNAKAExL3RG3nE8LDJTe5lLBLpzTlow
Call-ID: wu8k7Wpv9H-KBVNLfsIiLZhfRFUQLwRV
From: <sip:38831001@(Server IP)>;tag=UDM4MeXwGZrdNSrxOaxD85tnWNAIkaVs
To: <sip:38830001@(Server IP)>;tag=3f07172a-138d-4de2-b3da-944b7b8dc4e1
CSeq: 22205 INVITE
Server: FPBX-14.0.3.13(14.7.7)
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Contact: <sip:(Server IP):5060>
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
15:24:35.928918 IP (tos 0x60, ttl 64, id 65182, offset 0, flags [DF], proto UDP (17), length 1179)
(Server IP).5060 > (Ext A IP).37766: SIP, length: 1151
SIP/2.0 200 OK
Via: SIP/2.0/UDP (Ext A IP):37766;rport=37766;received=(Ext A IP);branch=z9hG4bKPj3uNAKAExL3RG3nE8LDJTe5lLBLpzTlow
Call-ID: wu8k7Wpv9H-KBVNLfsIiLZhfRFUQLwRV
From: <sip:38831001@(Server IP)>;tag=UDM4MeXwGZrdNSrxOaxD85tnWNAIkaVs
To: <sip:38830001@(Server IP)>;tag=3f07172a-138d-4de2-b3da-944b7b8dc4e1
CSeq: 22205 INVITE
Server: FPBX-14.0.3.13(14.7.7)
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Contact: <sip:(Server IP):5060>
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
15:24:37.929624 IP (tos 0x60, ttl 64, id 720, offset 0, flags [DF], proto UDP (17), length 1179)
(Server IP).5060 > (Ext A IP).37766: SIP, length: 1151
SIP/2.0 200 OK
Via: SIP/2.0/UDP (Ext A IP):37766;rport=37766;received=(Ext A IP);branch=z9hG4bKPj3uNAKAExL3RG3nE8LDJTe5lLBLpzTlow
Call-ID: wu8k7Wpv9H-KBVNLfsIiLZhfRFUQLwRV
From: <sip:38831001@(Server IP)>;tag=UDM4MeXwGZrdNSrxOaxD85tnWNAIkaVs
To: <sip:38830001@(Server IP)>;tag=3f07172a-138d-4de2-b3da-944b7b8dc4e1
CSeq: 22205 INVITE
Server: FPBX-14.0.3.13(14.7.7)
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Contact: <sip:(Server IP):5060>
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
15:24:41.929268 IP (tos 0x60, ttl 64, id 2810, offset 0, flags [DF], proto UDP (17), length 1179)
(Server IP).5060 > (Ext A IP).37766: SIP, length: 1151
SIP/2.0 200 OK
Via: SIP/2.0/UDP (Ext A IP):37766;rport=37766;received=(Ext A IP);branch=z9hG4bKPj3uNAKAExL3RG3nE8LDJTe5lLBLpzTlow
Call-ID: wu8k7Wpv9H-KBVNLfsIiLZhfRFUQLwRV
From: <sip:38831001@(Server IP)>;tag=UDM4MeXwGZrdNSrxOaxD85tnWNAIkaVs
To: <sip:38830001@(Server IP)>;tag=3f07172a-138d-4de2-b3da-944b7b8dc4e1
CSeq: 22205 INVITE
Server: FPBX-14.0.3.13(14.7.7)
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Contact: <sip:(Server IP):5060>
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
15:24:45.929845 IP (tos 0x60, ttl 64, id 4999, offset 0, flags [DF], proto UDP (17), length 1179)
(Server IP).5060 > (Ext A IP).37766: SIP, length: 1151
SIP/2.0 200 OK
Via: SIP/2.0/UDP (Ext A IP):37766;rport=37766;received=(Ext A IP);branch=z9hG4bKPj3uNAKAExL3RG3nE8LDJTe5lLBLpzTlow
Call-ID: wu8k7Wpv9H-KBVNLfsIiLZhfRFUQLwRV
From: <sip:38831001@(Server IP)>;tag=UDM4MeXwGZrdNSrxOaxD85tnWNAIkaVs
To: <sip:38830001@(Server IP)>;tag=3f07172a-138d-4de2-b3da-944b7b8dc4e1
CSeq: 22205 INVITE
Server: FPBX-14.0.3.13(14.7.7)
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Contact: <sip:(Server IP):5060>
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer