Call established, no sound

Hi guys!

I have a FreePbx instance running on my local machine, linked to a free trial GoTrunk account.

I followed this guide in order to make the configuration User Manual - IP PBX Configuration - FreePBX | GoTrunk

I’m able to call from zoiper to zoiper (for example extension 54321 to extension 12345) inside the network the local machine is on. However whenever I try to call from a real landline (shown as 6666666666) to the extension 12345, the established call has no audio.

What I already tried:

I enabled anonymous calls (before this the call could not even be established)
I tested *60 (speaking clock) and *43 (echo test), audio is perfect from zoiper to zoiper.
I already set ICE to disabled

I added the following lines to the incoming SIP config, see if they fixed the problem. It did not.

type=peer
insecure=yes
username=theusername
secret=thepassword
host=dynamic
nat=yes
context=default
canreinvite=no
disallow=all
echocancel=yes
allow=ulaw
callgroup=1

Already added the GoTrunk IPs to the FreePbx firewall

The log can be found here: https://pastebin.freepbx.org/view/06da970e

PS: I don’t understand why the log makes a reference to 192.168.0.2. The FreePbx instance is running on 192.168.0.254, and the management machine is on 192.168.0.8

Please, any suggestion will be really appreciated

Make sure your RTP ports are open (10000-20000).
Try defining the external ip in your SIP config.
For example:

externip = 200.201.202.203
localnet=192.168.2.0/255.255.255.0

Thank you by your answer RtDany10

Sadly the problem persists.

[2020-07-09 05:11:21] VERBOSE[3843][C-00000072] app_dial.c: Called SIP/12345
[2020-07-09 05:11:21] VERBOSE[3843][C-00000072] app_dial.c: Connected line update to SIP/amn.st.ssl7.net-0000007d prevented.

[2020-07-09 05:11:22] NOTICE[2116] chan_sip.c: Registration from ‘sip:5518505446@192.168.0.254;transport=UDP’ failed for ‘192.168.0.2:44169’ - Wrong password
Note: this was due a zoiper test instance I registered days ago, it’s now defunct

[2020-07-09 05:11:24] VERBOSE[3843][C-00000072] app_dial.c: SIP/12345-0000007e is ringing
[2020-07-09 05:11:32] VERBOSE[3843][C-00000072] app_dial.c: Connected line update to SIP/amn.st.ssl7.net-0000007d prevented.
[2020-07-09 05:11:32] VERBOSE[3843][C-00000072] app_dial.c: SIP/12345-0000007e answered SIP/amn.st.ssl7.net-0000007d
[2020-07-09 05:11:32] VERBOSE[3873][C-00000072] bridge_channel.c: Channel SIP/12345-0000007e joined ‘simple_bridge’ basic-bridge <761cf196-8022-4903-9c6e-2f91ef2eb0d5>
[2020-07-09 05:11:32] VERBOSE[3843][C-00000072] bridge_channel.c: Channel SIP/amn.st.ssl7.net-0000007d joined ‘simple_bridge’ basic-bridge <761cf196-8022-4903-9c6e-2f91ef2eb0d5>
[2020-07-09 05:11:38] VERBOSE[3873][C-00000072] bridge_channel.c: Channel SIP/12345-0000007e left ‘simple_bridge’ basic-bridge <761cf196-8022-4903-9c6e-2f91ef2eb0d5>
[2020-07-09 05:11:38] VERBOSE[3873][C-00000072] app_stack.c: SIP/12345-0000007e Internal Gosub(crm-hangup,s,1) start
[2020-07-09 05:11:38] VERBOSE[3873][C-00000072] pbx.c: Executing [s@crm-hangup:1] NoOp(“SIP/12345-0000007e”, “Sending Hangup to CRM”) in new stack
[2020-07-09 05:11:38] VERBOSE[3873][C-00000072] pbx.c: Executing [s@crm-hangup:2] NoOp(“SIP/12345-0000007e”, “HANGUP CAUSE: 16”) in new stack
[2020-07-09 05:11:38] VERBOSE[3873][C-00000072] pbx.c: Executing [s@crm-hangup:3] ExecIf(“SIP/12345-0000007e”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
[2020-07-09 05:11:38] VERBOSE[3873][C-00000072] pbx.c: Executing [s@crm-hangup:4] NoOp(“SIP/12345-0000007e”, “MASTER CHANNEL: 1594271481.126 = 1594271481.125”) in new stack
[2020-07-09 05:11:38] VERBOSE[3873][C-00000072] pbx.c: Executing [s@crm-hangup:5] GotoIf(“SIP/12345-0000007e”, “1?return”) in new stack
[2020-07-09 05:11:38] VERBOSE[3873][C-00000072] pbx_builtins.c: Goto (crm-hangup,s,8)
[2020-07-09 05:11:38] VERBOSE[3873][C-00000072] pbx.c: Executing [s@crm-hangup:8] Return(“SIP/12345-0000007e”, “”) in new stack
[2020-07-09 05:11:38] VERBOSE[3873][C-00000072] app_stack.c: Spawn extension (from-internal, , 1) exited non-zero on ‘SIP/12345-0000007e’
[2020-07-09 05:11:38] VERBOSE[3873][C-00000072] app_stack.c: SIP/12345-0000007e Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] bridge_channel.c: Channel SIP/amn.st.ssl7.net-0000007d left ‘simple_bridge’ basic-bridge <761cf196-8022-4903-9c6e-2f91ef2eb0d5>
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] app_macro.c: Spawn extension (macro-dial-one, s, 56) exited non-zero on ‘SIP/amn.st.ssl7.net-0000007d’ in macro ‘dial-one’
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] app_macro.c: Spawn extension (macro-exten-vm, s, 26) exited non-zero on ‘SIP/amn.st.ssl7.net-0000007d’ in macro ‘exten-vm’
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx.c: Spawn extension (ext-local, 12345, 3) exited non-zero on ‘SIP/amn.st.ssl7.net-0000007d’
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx.c: Executing [h@ext-local:1] Macro(“SIP/amn.st.ssl7.net-0000007d”, “hangupcall,”) in new stack
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx.c: Executing [s@macro-hangupcall:1] GotoIf(“SIP/amn.st.ssl7.net-0000007d”, “1?theend”) in new stack
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx_builtins.c: Goto (macro-hangupcall,s,3)
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx.c: Executing [s@macro-hangupcall:3] ExecIf(“SIP/amn.st.ssl7.net-0000007d”, “0?Set(CDR(recordingfile)=)”) in new stack
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx.c: Executing [s@macro-hangupcall:4] NoOp(“SIP/amn.st.ssl7.net-0000007d”, "SIP/12345-0000007e montior file= ") in new stack
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx.c: Executing [s@macro-hangupcall:5] GotoIf(“SIP/amn.st.ssl7.net-0000007d”, “1?skipagi”) in new stack
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx_builtins.c: Goto (macro-hangupcall,s,7)
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx.c: Executing [s@macro-hangupcall:7] Hangup(“SIP/amn.st.ssl7.net-0000007d”, “”) in new stack
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] app_macro.c: Spawn extension (macro-hangupcall, s, 7) exited non-zero on ‘SIP/amn.st.ssl7.net-0000007d’ in macro ‘hangupcall’
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx.c: Spawn extension (ext-local, h, 1) exited non-zero on ‘SIP/amn.st.ssl7.net-0000007d’
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] app_stack.c: SIP/amn.st.ssl7.net-0000007d Internal Gosub(crm-hangup,s,1) start
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx.c: Executing [s@crm-hangup:1] NoOp(“SIP/amn.st.ssl7.net-0000007d”, “Sending Hangup to CRM”) in new stack
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx.c: Executing [s@crm-hangup:2] NoOp(“SIP/amn.st.ssl7.net-0000007d”, “HANGUP CAUSE: 16”) in new stack
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx.c: Executing [s@crm-hangup:3] ExecIf(“SIP/amn.st.ssl7.net-0000007d”, “0?Set(__CRM_VOICEMAIL=)”) in new stack
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx.c: Executing [s@crm-hangup:4] NoOp(“SIP/amn.st.ssl7.net-0000007d”, “MASTER CHANNEL: 1594271481.125 = 1594271481.125”) in new stack
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx.c: Executing [s@crm-hangup:5] GotoIf(“SIP/amn.st.ssl7.net-0000007d”, “0?return”) in new stack
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx.c: Executing [s@crm-hangup:6] Set(“SIP/amn.st.ssl7.net-0000007d”, “__CRM_HANGUP=1”) in new stack
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx.c: Executing [s@crm-hangup:7] AGI(“SIP/amn.st.ssl7.net-0000007d”, “agi://127.0.0.1/sangomacrm.agi”) in new stack
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] res_agi.c: <SIP/amn.st.ssl7.net-0000007d>AGI Script agi://127.0.0.1/sangomacrm.agi completed, returning 0
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] pbx.c: Executing [s@crm-hangup:8] Return(“SIP/amn.st.ssl7.net-0000007d”, “”) in new stack
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] app_stack.c: Spawn extension (ext-local, h, 1) exited non-zero on ‘SIP/amn.st.ssl7.net-0000007d’
[2020-07-09 05:11:38] VERBOSE[3843][C-00000072] app_stack.c: SIP/amn.st.ssl7.net-0000007d Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=

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