System Recording not playing [RESOLVED]

Hello.

I’m having trouble getting my extension-recorded system recordings to play. I set my inbound to one of them, but when I call, it just plays dead silence. I was wondering if anyone might have any suggestions. I searched through the forum for similar issues, but I couldn’t find any that I think applies.

I’ve run fwconsole chown, and have restarted (fwconsole restart) with no change.

Here’s the debug from an incoming call that should have played the system recording “test-recording”:

[root@hostname custom]# asterisk -rvvv
Asterisk 15.5.0, Copyright (C) 1999 - 2016, Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 15.5.0 currently running on phone (pid = 29995)
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
-- Executing [12480000000@from-trunk:1] NoOp("SIP/Flowroute-00000000", "Catch-All DID Match - Found 12480000000 - You probably want a DID for this.") in new stack
-- Executing [12480000000@from-trunk:2] Log("SIP/Flowroute-00000000", "WARNING,Friendly Scanner from 216.115.69.144;branch=z9hG4bK8398.bb4c370fb773472c819f0c40fb84d814.0") in new stack
[2018-10-21 18:47:51] WARNING[31036][C-00000001]: Ext. 12480000000:2 @ from-trunk: Friendly Scanner from 216.115.69.144;branch=z9hG4bK8398.bb4c370fb773472c819f0c40fb84d814.0
-- Executing [12480000000@from-trunk:3] Set("SIP/Flowroute-00000000", "__FROM_DID=12480000000") in new stack
-- Executing [12480000000@from-trunk:4] Goto("SIP/Flowroute-00000000", "ext-did,s,1") in new stack
-- Goto (ext-did,s,1)
-- Executing [s@ext-did:1] Set("SIP/Flowroute-00000000", "__DIRECTION=INBOUND") in new stack
-- Executing [s@ext-did:2] Gosub("SIP/Flowroute-00000000", "sub-record-check,s,1(in,s,dontcare)") in new stack
-- Executing [s@sub-record-check:1] GotoIf("SIP/Flowroute-00000000", "0?initialized") in new stack
-- Executing [s@sub-record-check:2] Set("SIP/Flowroute-00000000", "__REC_STATUS=INITIALIZED") in new stack
-- Executing [s@sub-record-check:3] Set("SIP/Flowroute-00000000", "NOW=1540162071") in new stack
-- Executing [s@sub-record-check:4] Set("SIP/Flowroute-00000000", "__DAY=21") in new stack
-- Executing [s@sub-record-check:5] Set("SIP/Flowroute-00000000", "__MONTH=10") in new stack
-- Executing [s@sub-record-check:6] Set("SIP/Flowroute-00000000", "__YEAR=2018") in new stack
-- Executing [s@sub-record-check:7] Set("SIP/Flowroute-00000000", "__TIMESTR=20181021-184751") in new stack
-- Executing [s@sub-record-check:8] Set("SIP/Flowroute-00000000", "__FROMEXTEN=unknown") in new stack
-- Executing [s@sub-record-check:9] Set("SIP/Flowroute-00000000", "__MON_FMT=wav") in new stack
-- Executing [s@sub-record-check:10] NoOp("SIP/Flowroute-00000000", "Recordings initialized") in new stack
-- Executing [s@sub-record-check:11] ExecIf("SIP/Flowroute-00000000", "0?Set(ARG3=dontcare)") in new stack
-- Executing [s@sub-record-check:12] Set("SIP/Flowroute-00000000", "REC_POLICY_MODE_SAVE=") in new stack
-- Executing [s@sub-record-check:13] ExecIf("SIP/Flowroute-00000000", "0?Set(REC_STATUS=NO)") in new stack
-- Executing [s@sub-record-check:14] GotoIf("SIP/Flowroute-00000000", "2?checkaction") in new stack
-- Goto (sub-record-check,s,17)
-- Executing [s@sub-record-check:17] GotoIf("SIP/Flowroute-00000000", "1?sub-record-check,in,1") in new stack
-- Goto (sub-record-check,in,1)
-- Executing [in@sub-record-check:1] NoOp("SIP/Flowroute-00000000", "Inbound Recording Check to s") in new stack
-- Executing [in@sub-record-check:2] Set("SIP/Flowroute-00000000", "FROMEXTEN=unknown") in new stack
-- Executing [in@sub-record-check:3] ExecIf("SIP/Flowroute-00000000", "12?Set(FROMEXTEN=+12483028254)") in new stack
-- Executing [in@sub-record-check:4] Gosub("SIP/Flowroute-00000000", "recordcheck,1(dontcare,in,s)") in new stack
-- Executing [recordcheck@sub-record-check:1] NoOp("SIP/Flowroute-00000000", "Starting recording check against dontcare") in new stack
-- Executing [recordcheck@sub-record-check:2] Goto("SIP/Flowroute-00000000", "dontcare") in new stack
-- Goto (sub-record-check,recordcheck,3)
-- Executing [recordcheck@sub-record-check:3] Return("SIP/Flowroute-00000000", "") in new stack
-- Executing [in@sub-record-check:5] Return("SIP/Flowroute-00000000", "") in new stack
-- Executing [s@ext-did:3] Set("SIP/Flowroute-00000000", "CHANNEL(tonezone)=us") in new stack
-- Executing [s@ext-did:4] ExecIf("SIP/Flowroute-00000000", "0?Set(__FROM_DID=s)") in new stack
-- Executing [s@ext-did:5] Set("SIP/Flowroute-00000000", "returnhere=1") in new stack
-- Executing [s@ext-did:6] Gosub("SIP/Flowroute-00000000", "app-blacklist-check,s,1()") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/Flowroute-00000000", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/Flowroute-00000000", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/Flowroute-00000000", "") in new stack
-- Executing [s@ext-did:7] Set("SIP/Flowroute-00000000", "CDR(did)=12480000000") in new stack
-- Executing [s@ext-did:8] GotoIf("SIP/Flowroute-00000000", "0?") in new stack
-- Executing [s@ext-did:9] ExecIf("SIP/Flowroute-00000000", "0 ?Set(CALLERID(name)=+12483028254)") in new stack
-- Executing [s@ext-did:10] Set("SIP/Flowroute-00000000", "__MOHCLASS=") in new stack
-- Executing [s@ext-did:11] Set("SIP/Flowroute-00000000", "__REVERSAL_REJECT=FALSE") in new stack
-- Executing [s@ext-did:12] GotoIf("SIP/Flowroute-00000000", "1?post-reverse-charge") in new stack
-- Goto (ext-did,s,14)
-- Executing [s@ext-did:14] NoOp("SIP/Flowroute-00000000", "") in new stack
-- Executing [s@ext-did:15] Set("SIP/Flowroute-00000000", "__CALLINGNAMEPRES_SV=allowed_not_screened") in new stack
-- Executing [s@ext-did:16] Set("SIP/Flowroute-00000000", "__CALLINGNUMPRES_SV=allowed_not_screened") in new stack
-- Executing [s@ext-did:17] Set("SIP/Flowroute-00000000", "CALLERID(name-pres)=allowed_not_screened") in new stack
-- Executing [s@ext-did:18] Set("SIP/Flowroute-00000000", "CALLERID(num-pres)=allowed_not_screened") in new stack
-- Executing [s@ext-did:19] NoOp("SIP/Flowroute-00000000", "CallerID Entry Point") in new stack
-- Executing [s@ext-did:20] Set("SIP/Flowroute-00000000", "__CRM_DIRECTION=INBOUND") in new stack
-- Executing [s@ext-did:21] Set("SIP/Flowroute-00000000", "__CRM_SOURCE=+12483028254") in new stack
-- Executing [s@ext-did:22] Set("SIP/Flowroute-00000000", "__CRM_LINKEDID=1540162071.0") in new stack
-- Executing [s@ext-did:23] ExecIf("SIP/Flowroute-00000000", "1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
-- Executing [s@ext-did:24] Goto("SIP/Flowroute-00000000", "play-system-recording,4,1") in new stack
-- Goto (play-system-recording,4,1)
-- Executing [4@play-system-recording:1] Answer("SIP/Flowroute-00000000", "") in new stack
-- Executing [4@play-system-recording:2] Playback("SIP/Flowroute-00000000", "custom/test-recording") in new stack
-- <SIP/Flowroute-00000000> Playing 'custom/test-recording.slin' (language 'en')
-- Executing [4@play-system-recording:3] Hangup("SIP/Flowroute-00000000", "") in new stack
  == Spawn extension (play-system-recording, 4, 3) exited non-zero on 'SIP/Flowroute-00000000'
-- SIP/Flowroute-00000000 Internal Gosub(crm-hangup,s,1) start
-- Executing [s@crm-hangup:1] NoOp("SIP/Flowroute-00000000", "Sending Hangup to CRM") in new stack
-- Executing [s@crm-hangup:2] NoOp("SIP/Flowroute-00000000", "HANGUP CAUSE: 16") in new stack
-- Executing [s@crm-hangup:3] ExecIf("SIP/Flowroute-00000000", "0?Set(__CRM_VOICEMAIL=)") in new stack
-- Executing [s@crm-hangup:4] NoOp("SIP/Flowroute-00000000", "MASTER CHANNEL: 1540162071.0 = 1540162071.0") in new stack
-- Executing [s@crm-hangup:5] GotoIf("SIP/Flowroute-00000000", "0?return") in new stack
-- Executing [s@crm-hangup:6] Set("SIP/Flowroute-00000000", "__CRM_HANGUP=1") in new stack
-- Executing [s@crm-hangup:7] AGI("SIP/Flowroute-00000000", "sangomacrm.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
-- <SIP/Flowroute-00000000>AGI Script sangomacrm.agi completed, returning 0
-- Executing [s@crm-hangup:8] Return("SIP/Flowroute-00000000", "") in new stack
  == Spawn extension (play-system-recording, 4, 3) exited non-zero on 'SIP/Flowroute-00000000'
-- SIP/Flowroute-00000000 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
[2018-10-21 18:48:23] WARNING[30066]: chan_sip.c:4072 retrans_pkt: Retransmission timeout reached on transmission [email protected] for seqno 493773 (Critical Response) -- See https://wiki.asterisk.org/wiki/display/AST/SIP+Retransmissions
Packet timed out after 32000ms with no response
hostname*CLI>

It’s playing. What happens when you route the call to an extension that can be answered? Do you have audio then?

Where is the PBX located? Is it on a network and behind NAT? Because this error below usually points to a NAT/network issue.

I had thought that was working. It rings at the extension, but just now realized that the the caller cannot hear me (although I can hear them)., and eventually the call drops (30 seconds in).

This is a locally hosted install of FreePBX on my server downstairs. (10.0.0.1/24 class C). External IP set correctly.

Any NAT advice or thoughts?

Make sure you have the proper external address/media address and the proper local network set. The PBX is probably presenting LAN details in the RTP/SDP body instead of your WAN IP.

Ok, this makes sense. Internal calls work just fine.

I was able to fix it, with changing the “Asterisk SIP Setting” --> “Chan SIP Setting” -> “IP Configuration” to “Public”

Thank you both for your kind assistance.

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