Calls, including to echo, drop in 30s

Hopefully this is just something I’ve missed. I stood up a new freepbx image to do some Asterisk dev, but I wanted to get calls working between extensions first. I created two extensions, and tried to get a call between them. Signalling went through, and the receiver had two way audio, but the initiator of the call had no received audio. Call dropped after 30s. Then I found the echo (*43) application. Calling this gave me a similar result-the call dropped in 30s, but I could hear audio coming back from the app. Here’s a wireshark trace from the client side:

INVITE sip:*[email protected];transport=tcp SIP/2.0
Via: SIP/2.0/TCP 10.0.130.200:26813;rport;branch=z9hG4bKPj2530863ae5764701b38e992e0ee99b8c;alias
Max-Forwards: 70
From: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
To: <sip:*[email protected]>
Contact: <sip:[email protected]:26813;transport=TCP;ob>;+sip.ice
Call-ID: 0b25476c751544b78a3316367362400d
CSeq: 20326 INVITE
Route: <sip:10.0.150.195;transport=tcp;lr>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
User-Agent: MicroSIP/3.20.7
Content-Type: application/sdp
Content-Length:  1516

v=0
o=- 3849072936 3849072936 IN IP4 192.168.1.114
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4019 RTP/AVP 8 0 96 9 97 101 102 103
c=IN IP4 192.168.1.114
b=TIAS:64000
a=rtcp:4037 IN IP4 192.168.1.114
a=sendrecv
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:96 opus/48000/2
a=fmtp:96 maxplaybackrate=24000;sprop-maxcapturerate=24000;maxaveragebitrate=64000;useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:97 SILK/16000
a=fmtp:97 useinbandfec=0
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:102 telephone-event/48000
a=fmtp:102 0-16
a=rtpmap:103 telephone-event/16000
a=fmtp:103 0-16
a=ssrc:1562994355 cname:2db216da3cce085c
a=ice-ufrag:2cd672ae
a=ice-pwd:69525f9016496df15af141bb
a=candidate:Hc0a80172 1 UDP 2130706431 192.168.1.114 4019 typ host
a=candidate:Ha0082c8 1 UDP 2130706431 10.0.130.200 4019 typ host
a=candidate:Hac199001 1 UDP 2130706431 172.25.144.1 4019 typ host
a=candidate:Hac182001 1 UDP 2130706431 172.24.32.1 4019 typ host
a=candidate:Hac1a0001 1 UDP 2130706431 172.26.0.1 4019 typ host
a=candidate:Hac1b6001 1 UDP 2130706431 172.27.96.1 4019 typ host
a=candidate:Hc0a80172 2 UDP 2130706430 192.168.1.114 4037 typ host
a=candidate:Ha0082c8 2 UDP 2130706430 10.0.130.200 4037 typ host
a=candidate:Hac199001 2 UDP 2130706430 172.25.144.1 4037 typ host
a=candidate:Hac182001 2 UDP 2130706430 172.24.32.1 4037 typ host
a=candidate:Hac1a0001 2 UDP 2130706430 172.26.0.1 4037 typ host
a=candidate:Hac1b6001 2 UDP 2130706430 172.27.96.1 4037 typ host
SIP/2.0 401 Unauthorized
Via: SIP/2.0/TCP 10.0.130.200:26813;rport=26813;received=10.0.130.200;branch=z9hG4bKPj2530863ae5764701b38e992e0ee99b8c;alias
Call-ID: 0b25476c751544b78a3316367362400d
From: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
To: <sip:*[email protected]>;tag=z9hG4bKPj2530863ae5764701b38e992e0ee99b8c
CSeq: 20326 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1640102137/5af8cea6c60170fd10ee1cb0b2bf05de",opaque="6475c831648290da",algorithm=md5,qop="auth"
Server: FPBX-15.0.17.64(18.3.0)
Content-Length:  0

ACK sip:*[email protected];transport=tcp SIP/2.0
Via: SIP/2.0/TCP 10.0.130.200:26813;rport;branch=z9hG4bKPj2530863ae5764701b38e992e0ee99b8c;alias
Max-Forwards: 70
From: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
To: <sip:*[email protected]>;tag=z9hG4bKPj2530863ae5764701b38e992e0ee99b8c
Call-ID: 0b25476c751544b78a3316367362400d
CSeq: 20326 ACK
Route: <sip:10.0.150.195;transport=tcp;lr>
Content-Length:  0

INVITE sip:*[email protected];transport=tcp SIP/2.0
Via: SIP/2.0/TCP 10.0.130.200:26813;rport;branch=z9hG4bKPje843e7b801a44941b291cc8d61a0a52e;alias
Max-Forwards: 70
From: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
To: <sip:*[email protected]>
Contact: <sip:[email protected]:26813;transport=TCP;ob>;+sip.ice
Call-ID: 0b25476c751544b78a3316367362400d
CSeq: 20327 INVITE
Route: <sip:10.0.150.195;transport=tcp;lr>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
User-Agent: MicroSIP/3.20.7
Authorization: Digest username="1000", realm="asterisk", nonce="1640102137/5af8cea6c60170fd10ee1cb0b2bf05de", uri="sip:*[email protected];transport=tcp", response="6d1e8097e1a7045d22a5eefc19f36805", algorithm=md5, cnonce="c60166be3e514a13aa0fffabbbca998f", opaque="6475c831648290da", qop=auth, nc=00000001
Content-Type: application/sdp
Content-Length:  1516

v=0
o=- 3849072936 3849072936 IN IP4 192.168.1.114
s=pjmedia
b=AS:84
t=0 0
a=X-nat:0
m=audio 4019 RTP/AVP 8 0 96 9 97 101 102 103
c=IN IP4 192.168.1.114
b=TIAS:64000
a=rtcp:4037 IN IP4 192.168.1.114
a=sendrecv
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:96 opus/48000/2
a=fmtp:96 maxplaybackrate=24000;sprop-maxcapturerate=24000;maxaveragebitrate=64000;useinbandfec=1
a=rtpmap:9 G722/8000
a=rtpmap:97 SILK/16000
a=fmtp:97 useinbandfec=0
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:102 telephone-event/48000
a=fmtp:102 0-16
a=rtpmap:103 telephone-event/16000
a=fmtp:103 0-16
a=ssrc:1562994355 cname:2db216da3cce085c
a=ice-ufrag:2cd672ae
a=ice-pwd:69525f9016496df15af141bb
a=candidate:Hc0a80172 1 UDP 2130706431 192.168.1.114 4019 typ host
a=candidate:Ha0082c8 1 UDP 2130706431 10.0.130.200 4019 typ host
a=candidate:Hac199001 1 UDP 2130706431 172.25.144.1 4019 typ host
a=candidate:Hac182001 1 UDP 2130706431 172.24.32.1 4019 typ host
a=candidate:Hac1a0001 1 UDP 2130706431 172.26.0.1 4019 typ host
a=candidate:Hac1b6001 1 UDP 2130706431 172.27.96.1 4019 typ host
a=candidate:Hc0a80172 2 UDP 2130706430 192.168.1.114 4037 typ host
a=candidate:Ha0082c8 2 UDP 2130706430 10.0.130.200 4037 typ host
a=candidate:Hac199001 2 UDP 2130706430 172.25.144.1 4037 typ host
a=candidate:Hac182001 2 UDP 2130706430 172.24.32.1 4037 typ host
a=candidate:Hac1a0001 2 UDP 2130706430 172.26.0.1 4037 typ host
a=candidate:Hac1b6001 2 UDP 2130706430 172.27.96.1 4037 typ host
SIP/2.0 100 Trying
Via: SIP/2.0/TCP 10.0.130.200:26813;rport=26813;received=10.0.130.200;branch=z9hG4bKPje843e7b801a44941b291cc8d61a0a52e;alias
Call-ID: 0b25476c751544b78a3316367362400d
From: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
To: <sip:*[email protected]>
CSeq: 20327 INVITE
Server: FPBX-15.0.17.64(18.3.0)
Content-Length:  0

SIP/2.0 200 OK
Via: SIP/2.0/TCP 10.0.130.200:26813;rport=26813;received=10.0.130.200;branch=z9hG4bKPje843e7b801a44941b291cc8d61a0a52e;alias
Call-ID: 0b25476c751544b78a3316367362400d
From: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
To: <sip:*[email protected]>;tag=b4cbe749-d1b1-4a2d-82cb-46ee237c4521
CSeq: 20327 INVITE
Server: FPBX-15.0.17.64(18.3.0)
Contact: <sip:204.16.47.12:5060;transport=TCP>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
P-Asserted-Identity: "Echo Test" <sip:*[email protected]>
Content-Type: application/sdp
Content-Length:   636

v=0
o=- 3849072936 3849072938 IN IP4 204.16.47.12
s=Asterisk
c=IN IP4 204.16.47.12
t=0 0
m=audio 16160 RTP/AVP 0 8 9 96 101
a=ice-ufrag:4ae02f585b006fc91c1d8e4c1da43bb1
a=ice-pwd:7e6ed9c576cc992a27dddf0d71693b2d
a=candidate:Ha0096c3 1 UDP 2130706431 10.0.150.195 16160 typ host
a=candidate:Ha0096c3 2 UDP 2130706430 10.0.150.195 16161 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:96 opus/48000/2
a=fmtp:96 maxplaybackrate=24000;sprop-maxcapturerate=24000;maxaveragebitrate=64000;useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
SIP/2.0 200 OK
Via: SIP/2.0/TCP 10.0.130.200:26813;rport=26813;received=10.0.130.200;branch=z9hG4bKPje843e7b801a44941b291cc8d61a0a52e;alias
Call-ID: 0b25476c751544b78a3316367362400d
From: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
To: <sip:*[email protected]>;tag=b4cbe749-d1b1-4a2d-82cb-46ee237c4521
CSeq: 20327 INVITE
Server: FPBX-15.0.17.64(18.3.0)
Contact: <sip:204.16.47.12:5060;transport=TCP>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
P-Asserted-Identity: "Echo Test" <sip:*[email protected]>
Content-Type: application/sdp
Content-Length:   636

v=0
o=- 3849072936 3849072938 IN IP4 204.16.47.12
s=Asterisk
c=IN IP4 204.16.47.12
t=0 0
m=audio 16160 RTP/AVP 0 8 9 96 101
a=ice-ufrag:4ae02f585b006fc91c1d8e4c1da43bb1
a=ice-pwd:7e6ed9c576cc992a27dddf0d71693b2d
a=candidate:Ha0096c3 1 UDP 2130706431 10.0.150.195 16160 typ host
a=candidate:Ha0096c3 2 UDP 2130706430 10.0.150.195 16161 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:96 opus/48000/2
a=fmtp:96 maxplaybackrate=24000;sprop-maxcapturerate=24000;maxaveragebitrate=64000;useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
SIP/2.0 200 OK
Via: SIP/2.0/TCP 10.0.130.200:26813;rport=26813;received=10.0.130.200;branch=z9hG4bKPje843e7b801a44941b291cc8d61a0a52e;alias
Call-ID: 0b25476c751544b78a3316367362400d
From: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
To: <sip:*[email protected]>;tag=b4cbe749-d1b1-4a2d-82cb-46ee237c4521
CSeq: 20327 INVITE
Server: FPBX-15.0.17.64(18.3.0)
Contact: <sip:204.16.47.12:5060;transport=TCP>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
P-Asserted-Identity: "Echo Test" <sip:*[email protected]>
Content-Type: application/sdp
Content-Length:   636

v=0
o=- 3849072936 3849072938 IN IP4 204.16.47.12
s=Asterisk
c=IN IP4 204.16.47.12
t=0 0
m=audio 16160 RTP/AVP 0 8 9 96 101
a=ice-ufrag:4ae02f585b006fc91c1d8e4c1da43bb1
a=ice-pwd:7e6ed9c576cc992a27dddf0d71693b2d
a=candidate:Ha0096c3 1 UDP 2130706431 10.0.150.195 16160 typ host
a=candidate:Ha0096c3 2 UDP 2130706430 10.0.150.195 16161 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:96 opus/48000/2
a=fmtp:96 maxplaybackrate=24000;sprop-maxcapturerate=24000;maxaveragebitrate=64000;useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
SIP/2.0 200 OK
Via: SIP/2.0/TCP 10.0.130.200:26813;rport=26813;received=10.0.130.200;branch=z9hG4bKPje843e7b801a44941b291cc8d61a0a52e;alias
Call-ID: 0b25476c751544b78a3316367362400d
From: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
To: <sip:*[email protected]>;tag=b4cbe749-d1b1-4a2d-82cb-46ee237c4521
CSeq: 20327 INVITE
Server: FPBX-15.0.17.64(18.3.0)
Contact: <sip:204.16.47.12:5060;transport=TCP>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
P-Asserted-Identity: "Echo Test" <sip:*[email protected]>
Content-Type: application/sdp
Content-Length:   636

v=0
o=- 3849072936 3849072938 IN IP4 204.16.47.12
s=Asterisk
c=IN IP4 204.16.47.12
t=0 0
m=audio 16160 RTP/AVP 0 8 9 96 101
a=ice-ufrag:4ae02f585b006fc91c1d8e4c1da43bb1
a=ice-pwd:7e6ed9c576cc992a27dddf0d71693b2d
a=candidate:Ha0096c3 1 UDP 2130706431 10.0.150.195 16160 typ host
a=candidate:Ha0096c3 2 UDP 2130706430 10.0.150.195 16161 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:96 opus/48000/2
a=fmtp:96 maxplaybackrate=24000;sprop-maxcapturerate=24000;maxaveragebitrate=64000;useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
SIP/2.0 200 OK
Via: SIP/2.0/TCP 10.0.130.200:26813;rport=26813;received=10.0.130.200;branch=z9hG4bKPje843e7b801a44941b291cc8d61a0a52e;alias
Call-ID: 0b25476c751544b78a3316367362400d
From: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
To: <sip:*[email protected]>;tag=b4cbe749-d1b1-4a2d-82cb-46ee237c4521
CSeq: 20327 INVITE
Server: FPBX-15.0.17.64(18.3.0)
Contact: <sip:204.16.47.12:5060;transport=TCP>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
P-Asserted-Identity: "Echo Test" <sip:*[email protected]>
Content-Type: application/sdp
Content-Length:   636

v=0
o=- 3849072936 3849072938 IN IP4 204.16.47.12
s=Asterisk
c=IN IP4 204.16.47.12
t=0 0
m=audio 16160 RTP/AVP 0 8 9 96 101
a=ice-ufrag:4ae02f585b006fc91c1d8e4c1da43bb1
a=ice-pwd:7e6ed9c576cc992a27dddf0d71693b2d
a=candidate:Ha0096c3 1 UDP 2130706431 10.0.150.195 16160 typ host
a=candidate:Ha0096c3 2 UDP 2130706430 10.0.150.195 16161 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:96 opus/48000/2
a=fmtp:96 maxplaybackrate=24000;sprop-maxcapturerate=24000;maxaveragebitrate=64000;useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
SIP/2.0 200 OK
Via: SIP/2.0/TCP 10.0.130.200:26813;rport=26813;received=10.0.130.200;branch=z9hG4bKPje843e7b801a44941b291cc8d61a0a52e;alias
Call-ID: 0b25476c751544b78a3316367362400d
From: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
To: <sip:*[email protected]>;tag=b4cbe749-d1b1-4a2d-82cb-46ee237c4521
CSeq: 20327 INVITE
Server: FPBX-15.0.17.64(18.3.0)
Contact: <sip:204.16.47.12:5060;transport=TCP>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
P-Asserted-Identity: "Echo Test" <sip:*[email protected]>
Content-Type: application/sdp
Content-Length:   636

v=0
o=- 3849072936 3849072938 IN IP4 204.16.47.12
s=Asterisk
c=IN IP4 204.16.47.12
t=0 0
m=audio 16160 RTP/AVP 0 8 9 96 101
a=ice-ufrag:4ae02f585b006fc91c1d8e4c1da43bb1
a=ice-pwd:7e6ed9c576cc992a27dddf0d71693b2d
a=candidate:Ha0096c3 1 UDP 2130706431 10.0.150.195 16160 typ host
a=candidate:Ha0096c3 2 UDP 2130706430 10.0.150.195 16161 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:96 opus/48000/2
a=fmtp:96 maxplaybackrate=24000;sprop-maxcapturerate=24000;maxaveragebitrate=64000;useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
SIP/2.0 200 OK
Via: SIP/2.0/TCP 10.0.130.200:26813;rport=26813;received=10.0.130.200;branch=z9hG4bKPje843e7b801a44941b291cc8d61a0a52e;alias
Call-ID: 0b25476c751544b78a3316367362400d
From: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
To: <sip:*[email protected]>;tag=b4cbe749-d1b1-4a2d-82cb-46ee237c4521
CSeq: 20327 INVITE
Server: FPBX-15.0.17.64(18.3.0)
Contact: <sip:204.16.47.12:5060;transport=TCP>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
P-Asserted-Identity: "Echo Test" <sip:*[email protected]>
Content-Type: application/sdp
Content-Length:   636

v=0
o=- 3849072936 3849072938 IN IP4 204.16.47.12
s=Asterisk
c=IN IP4 204.16.47.12
t=0 0
m=audio 16160 RTP/AVP 0 8 9 96 101
a=ice-ufrag:4ae02f585b006fc91c1d8e4c1da43bb1
a=ice-pwd:7e6ed9c576cc992a27dddf0d71693b2d
a=candidate:Ha0096c3 1 UDP 2130706431 10.0.150.195 16160 typ host
a=candidate:Ha0096c3 2 UDP 2130706430 10.0.150.195 16161 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:96 opus/48000/2
a=fmtp:96 maxplaybackrate=24000;sprop-maxcapturerate=24000;maxaveragebitrate=64000;useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
SIP/2.0 200 OK
Via: SIP/2.0/TCP 10.0.130.200:26813;rport=26813;received=10.0.130.200;branch=z9hG4bKPje843e7b801a44941b291cc8d61a0a52e;alias
Call-ID: 0b25476c751544b78a3316367362400d
From: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
To: <sip:*[email protected]>;tag=b4cbe749-d1b1-4a2d-82cb-46ee237c4521
CSeq: 20327 INVITE
Server: FPBX-15.0.17.64(18.3.0)
Contact: <sip:204.16.47.12:5060;transport=TCP>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
P-Asserted-Identity: "Echo Test" <sip:*[email protected]>
Content-Type: application/sdp
Content-Length:   636

v=0
o=- 3849072936 3849072938 IN IP4 204.16.47.12
s=Asterisk
c=IN IP4 204.16.47.12
t=0 0
m=audio 16160 RTP/AVP 0 8 9 96 101
a=ice-ufrag:4ae02f585b006fc91c1d8e4c1da43bb1
a=ice-pwd:7e6ed9c576cc992a27dddf0d71693b2d
a=candidate:Ha0096c3 1 UDP 2130706431 10.0.150.195 16160 typ host
a=candidate:Ha0096c3 2 UDP 2130706430 10.0.150.195 16161 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:96 opus/48000/2
a=fmtp:96 maxplaybackrate=24000;sprop-maxcapturerate=24000;maxaveragebitrate=64000;useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
SIP/2.0 200 OK
Via: SIP/2.0/TCP 10.0.130.200:26813;rport=26813;received=10.0.130.200;branch=z9hG4bKPje843e7b801a44941b291cc8d61a0a52e;alias
Call-ID: 0b25476c751544b78a3316367362400d
From: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
To: <sip:*[email protected]>;tag=b4cbe749-d1b1-4a2d-82cb-46ee237c4521
CSeq: 20327 INVITE
Server: FPBX-15.0.17.64(18.3.0)
Contact: <sip:204.16.47.12:5060;transport=TCP>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
P-Asserted-Identity: "Echo Test" <sip:*[email protected]>
Content-Type: application/sdp
Content-Length:   636

v=0
o=- 3849072936 3849072938 IN IP4 204.16.47.12
s=Asterisk
c=IN IP4 204.16.47.12
t=0 0
m=audio 16160 RTP/AVP 0 8 9 96 101
a=ice-ufrag:4ae02f585b006fc91c1d8e4c1da43bb1
a=ice-pwd:7e6ed9c576cc992a27dddf0d71693b2d
a=candidate:Ha0096c3 1 UDP 2130706431 10.0.150.195 16160 typ host
a=candidate:Ha0096c3 2 UDP 2130706430 10.0.150.195 16161 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:96 opus/48000/2
a=fmtp:96 maxplaybackrate=24000;sprop-maxcapturerate=24000;maxaveragebitrate=64000;useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
SIP/2.0 200 OK
Via: SIP/2.0/TCP 10.0.130.200:26813;rport=26813;received=10.0.130.200;branch=z9hG4bKPje843e7b801a44941b291cc8d61a0a52e;alias
Call-ID: 0b25476c751544b78a3316367362400d
From: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
To: <sip:*[email protected]>;tag=b4cbe749-d1b1-4a2d-82cb-46ee237c4521
CSeq: 20327 INVITE
Server: FPBX-15.0.17.64(18.3.0)
Contact: <sip:204.16.47.12:5060;transport=TCP>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
P-Asserted-Identity: "Echo Test" <sip:*[email protected]>
Content-Type: application/sdp
Content-Length:   636

v=0
o=- 3849072936 3849072938 IN IP4 204.16.47.12
s=Asterisk
c=IN IP4 204.16.47.12
t=0 0
m=audio 16160 RTP/AVP 0 8 9 96 101
a=ice-ufrag:4ae02f585b006fc91c1d8e4c1da43bb1
a=ice-pwd:7e6ed9c576cc992a27dddf0d71693b2d
a=candidate:Ha0096c3 1 UDP 2130706431 10.0.150.195 16160 typ host
a=candidate:Ha0096c3 2 UDP 2130706430 10.0.150.195 16161 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:96 opus/48000/2
a=fmtp:96 maxplaybackrate=24000;sprop-maxcapturerate=24000;maxaveragebitrate=64000;useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
SIP/2.0 200 OK
Via: SIP/2.0/TCP 10.0.130.200:26813;rport=26813;received=10.0.130.200;branch=z9hG4bKPje843e7b801a44941b291cc8d61a0a52e;alias
Call-ID: 0b25476c751544b78a3316367362400d
From: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
To: <sip:*[email protected]>;tag=b4cbe749-d1b1-4a2d-82cb-46ee237c4521
CSeq: 20327 INVITE
Server: FPBX-15.0.17.64(18.3.0)
Contact: <sip:204.16.47.12:5060;transport=TCP>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
P-Asserted-Identity: "Echo Test" <sip:*[email protected]>
Content-Type: application/sdp
Content-Length:   636

v=0
o=- 3849072936 3849072938 IN IP4 204.16.47.12
s=Asterisk
c=IN IP4 204.16.47.12
t=0 0
m=audio 16160 RTP/AVP 0 8 9 96 101
a=ice-ufrag:4ae02f585b006fc91c1d8e4c1da43bb1
a=ice-pwd:7e6ed9c576cc992a27dddf0d71693b2d
a=candidate:Ha0096c3 1 UDP 2130706431 10.0.150.195 16160 typ host
a=candidate:Ha0096c3 2 UDP 2130706430 10.0.150.195 16161 typ host
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:96 opus/48000/2
a=fmtp:96 maxplaybackrate=24000;sprop-maxcapturerate=24000;maxaveragebitrate=64000;useinbandfec=1
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:20
a=sendrecv
BYE sip:[email protected]:26813;transport=TCP;ob SIP/2.0
Via: SIP/2.0/TCP 204.16.47.12:5060;rport;branch=z9hG4bKPjc3d17277-10a6-4411-9aac-6237825e572d;alias
From: <sip:*[email protected]>;tag=b4cbe749-d1b1-4a2d-82cb-46ee237c4521
To: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
Call-ID: 0b25476c751544b78a3316367362400d
CSeq: 27525 BYE
Max-Forwards: 70
User-Agent: FPBX-15.0.17.64(18.3.0)
Content-Length:  0

SIP/2.0 200 OK
Via: SIP/2.0/TCP 204.16.47.12:5060;rport=5060;received=10.0.150.195;branch=z9hG4bKPjc3d17277-10a6-4411-9aac-6237825e572d;alias
Call-ID: 0b25476c751544b78a3316367362400d
From: <sip:*[email protected]>;tag=b4cbe749-d1b1-4a2d-82cb-46ee237c4521
To: <sip:[email protected]>;tag=01b495e0dff54c4ea22effb306314945
CSeq: 27525 BYE
Content-Length:  0

The freepbx log doesn’t really show much else (no reason for the BYE). Some other notes:
-In the SIP settings, I have 10.0.150.0/24 and 10.0.130.0/24 as local networks
-Extensions were created as pjsip

What seems odd to me is that the PBX keeps re-sending the 200 OK, but that the client doesn’t seem to accept it and nail the call up. I’ve reproed the same behaviour with both Microsip and X-Lite softphones, so I don’t think it’s the endpoint. I’ve also tried different combinations of RTP Symmetric, enable ICE, and Direct Media in the extension settings. Anything else I should try?

Confirm that after changing Local Networks in Asterisk SIP Settings, you did Submit, Apply Config and then restarted Asterisk (or the entire server).

If that’s not it, try disabling ICE on both the client and Asterisk.

If still no luck, post details about networking between 10.0.130.x and 10.0.150.x, as well as another log.

Your client is giving a public IP in its Contact header, a private IP in its Via header, and a different private IP in its SDP.

But it looks like all of the traffic is on 10.0.130.x (your phone) and 10.0.150.x (your Asterisk server).

Make sure Asterisk has 10.0.130.x as a localnet. (Set this in Asterisk SIP Settings in FreePBX)

Then disable STUN on your microsip client (not needed here).

See if you can figure out where the 192.168.1.114 address in your SDP is coming from.

OK, this is strange. I had this configured as a localnet, and I was getting this issue. Just to rule it out, I restarted the whole freepbx VM again, and everything started working.

Then I tried removing the 10.0.130 subnet from localnets and restarting. Failed-which means that was the fix. Then I added 10.0.130.0/24 to localnet and applied without restarting…and it worked? I expected that if the issue was a restart that it’d take a second restart to apply, but apparently not?

In any case, it works now. Thanks for the quick replies.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.