Hi,
i setup FreePBX with Asterisk on my Raspberry Pi 3.
I used RasPBX which you can download here.
I can call each other phone but there is not sound and they disconnect after exactly 32 seconds.
The Calls are local so NAT is not the problem.
My CLI output
Connected to Asterisk 16.6.1 currently running on raspbx (pid = 1057)
== Setting global variable 'SIPDOMAIN' to 'X.X.X.X'
== Setting global variable 'SIPDOMAIN' to 'X.X.X.X'
-- Executing [802@from-internal:1] Dial("PJSIP/803-00000000", "PJSIP/802,20") in new stack
-- Called PJSIP/802
-- PJSIP/802-00000001 is ringing
-- PJSIP/802-00000001 is ringing
-- PJSIP/802-00000001 answered PJSIP/803-00000000
> 0x2572628 -- Strict RTP learning after remote address set to: X.X.X.1:16390
> 0x2569d38 -- Strict RTP learning after remote address set to: X.X.X.2:16390
-- Channel PJSIP/802-00000001 joined 'simple_bridge' basic-bridge <4b89584a-7a18-441d-9e47-04b3f2c0bbaf>
-- Channel PJSIP/803-00000000 joined 'simple_bridge' basic-bridge <4b89584a-7a18-441d-9e47-04b3f2c0bbaf>
> 0x2569d38 -- Strict RTP switching to RTP target address X.X.X.2:16390 as source
> 0x2572628 -- Strict RTP switching to RTP target address X.X.X.1:16390 as source
> 0x2569d38 -- Strict RTP learning complete - Locking on source address X.X.X.2:16390
> 0x2572628 -- Strict RTP learning complete - Locking on source address X.X.X.1:16390
-- Channel PJSIP/803-00000000 left 'simple_bridge' basic-bridge <4b89584a-7a18-441d-9e47-04b3f2c0bbaf>
-- Channel PJSIP/802-00000001 left 'simple_bridge' basic-bridge <4b89584a-7a18-441d-9e47-04b3f2c0bbaf>
== Spawn extension (from-internal, 802, 1) exited non-zero on 'PJSIP/803-00000000'
-- Executing [h@from-internal:1] Macro("PJSIP/803-00000000", "hangupcall") in new stack
[2020-01-28 07:10:09] WARNING[1733][C-00000001]: app_macro.c:274 _macro_exec: Macro() is deprecated and will be removed from a future version of Asterisk.
[2020-01-28 07:10:09] WARNING[1733][C-00000001]: app_macro.c:275 _macro_exec: Dialplan should be updated to use Gosub instead.
-- Executing [s@macro-hangupcall:1] GotoIf("PJSIP/803-00000000", "1?theend") in new stack
-- Goto (macro-hangupcall,s,3)
-- Executing [s@macro-hangupcall:3] ExecIf("PJSIP/803-00000000", "0?Set(CDR(recordingfile)=)") in new stack
-- Executing [s@macro-hangupcall:4] NoOp("PJSIP/803-00000000", "PJSIP/802-00000001 montior file= ") in new stack
-- Executing [s@macro-hangupcall:5] GotoIf("PJSIP/803-00000000", "1?skipagi") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] Hangup("PJSIP/803-00000000", "") in new stack
== Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'PJSIP/803-00000000' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/803-00000000'
raspbx*CLI>
PjSIP debugger output
from ringing to disconnect
https://pastebin.freepbx.org/view/8714209a