Queue Call Recording file name format problem

Hi, all!
I have an issue with queue call recording in FreePBX 2.10 and Asterisk 10.12.1 - it saves files with names just [unique id].wav. Any type of recording make such file names, I mean types as Include Hold Time and After Answer. Any recommendations or may be need more info or Logs?

localhost*CLI> == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [[email protected]:1] Set("SIP/CiscoSIPOut-0000000f", "GROUP()=OUT_1") in new stack -- Executing [[email protected]:2] Goto("SIP/CiscoSIPOut-0000000f", "from-trunk,906979,1") in new stack -- Goto (from-trunk,906979,1) -- Executing [[email protected]:1] Set("SIP/CiscoSIPOut-0000000f", "__FROM_DID=906979") in new stack -- Executing [[email protected]:2] Gosub("SIP/CiscoSIPOut-0000000f", "sub-record-cancel,s,1()") in new stack -- Executing [[email protected]:1] ExecIf("SIP/CiscoSIPOut-0000000f", "1?Return()") in new stack -- Executing [[email protected]:3] Set("SIP/CiscoSIPOut-0000000f", "__REC_POLICY_MODE=never") in new stack -- Executing [[email protected]:4] Set("SIP/CiscoSIPOut-0000000f", "CDR(did)=906979") in new stack -- Executing [[email protected]:5] ExecIf("SIP/CiscoSIPOut-0000000f", "0 ?Set(CALLERID(name)=900026)") in new stack -- Executing [[email protected]:6] Set("SIP/CiscoSIPOut-0000000f", "__CALLINGPRES_SV=allowed_not_screened") in new stack -- Executing [[email protected]:7] Set("SIP/CiscoSIPOut-0000000f", "CALLERPRES()=allowed_not_screened") in new stack -- Executing [[email protected]:8] Goto("SIP/CiscoSIPOut-0000000f", "ivr-1,s,1") in new stack -- Goto (ivr-1,s,1) -- Executing [[email protected]:1] Set("SIP/CiscoSIPOut-0000000f", "_IVR_CONTEXT_ivr-1=") in new stack -- Executing [[email protected]:2] Set("SIP/CiscoSIPOut-0000000f", "_IVR_CONTEXT=ivr-1") in new stack -- Executing [[email protected]:3] Set("SIP/CiscoSIPOut-0000000f", "__IVR_RETVM=") in new stack -- Executing [[email protected]:4] GotoIf("SIP/CiscoSIPOut-0000000f", "0?skip") in new stack -- Executing [[email protected]:5] Answer("SIP/CiscoSIPOut-0000000f", "") in new stack -- Executing [[email protected]:6] Wait("SIP/CiscoSIPOut-0000000f", "1") in new stack -- Executing [[email protected]:7] Set("SIP/CiscoSIPOut-0000000f", "IVR_MSG=custom/greeting") in new stack -- Executing [[email protected]:8] Set("SIP/CiscoSIPOut-0000000f", "TIMEOUT(digit)=3") in new stack -- Digit timeout set to 3.000 -- Executing [[email protected]:9] ExecIf("SIP/CiscoSIPOut-0000000f", "1?Background(custom/greeting)") in new stack -- Playing 'custom/greeting.slin' (language 'ru') -- Executing [[email protected]:1] Goto("SIP/CiscoSIPOut-0000000f", "ext-queues,5101,1") in new stack -- Goto (ext-queues,5101,1) -- Executing [[email protected]:1] Macro("SIP/CiscoSIPOut-0000000f", "user-callerid,") in new stack -- Executing [[email protected]:1] Set("SIP/CiscoSIPOut-0000000f", "AMPUSER=900026") in new stack -- Executing [[email protected]:2] GotoIf("SIP/CiscoSIPOut-0000000f", "0?report") in new stack -- Executing [[email protected]:3] ExecIf("SIP/CiscoSIPOut-0000000f", "1?Set(REALCALLERIDNUM=900026)") in new stack -- Executing [[email protected]:4] Set("SIP/CiscoSIPOut-0000000f", "AMPUSER=") in new stack -- Executing [[email protected]:5] Set("SIP/CiscoSIPOut-0000000f", "AMPUSERCIDNAME=") in new stack -- Executing [[email protected]:6] GotoIf("SIP/CiscoSIPOut-0000000f", "1?report") in new stack -- Goto (macro-user-callerid,s,11) -- Executing [[email protected]:11] GotoIf("SIP/CiscoSIPOut-0000000f", "0?continue") in new stack -- Executing [[email protected]:12] Set("SIP/CiscoSIPOut-0000000f", "__TTL=64") in new stack -- Executing [[email protected]:13] GotoIf("SIP/CiscoSIPOut-0000000f", "1?continue") in new stack -- Goto (macro-user-callerid,s,24) -- Executing [[email protected]:24] Set("SIP/CiscoSIPOut-0000000f", "CALLERID(number)=900026") in new stack -- Executing [[email protected]:25] Set("SIP/CiscoSIPOut-0000000f", "CALLERID(name)=Huawei Technologies Co., Ltd.") in new stack -- Executing [[email protected]:26] Set("SIP/CiscoSIPOut-0000000f", "CHANNEL(language)=ru") in new stack -- Executing [[email protected]:2] Answer("SIP/CiscoSIPOut-0000000f", "") in new stack -- Executing [[email protected]:3] Set("SIP/CiscoSIPOut-0000000f", "__NODEST=5101") in new stack -- Executing [[email protected]:4] Macro("SIP/CiscoSIPOut-0000000f", "prepend-cid,TechSupport") in new stack -- Executing [[email protected]:1] GotoIf("SIP/CiscoSIPOut-0000000f", "1?REPCID") in new stack -- Goto (macro-prepend-cid,s,5) -- Executing [[email protected]end-cid:5] Set("SIP/CiscoSIPOut-0000000f", "_RGPREFIX=TechSupport") in new stack -- Executing [[email protected]:6] Set("SIP/CiscoSIPOut-0000000f", "CALLERID(name)=TechSupportHuawei Technologies Co., Ltd.") in new stack -- Executing [[email protected]:5] Set("SIP/CiscoSIPOut-0000000f", "__MIXMON_FORMAT=wav") in new stack -- Executing [[email protected]:6] Gosub("SIP/CiscoSIPOut-0000000f", "sub-record-check,s,1(q,5101,always)") in new stack -- Executing [[email protected]:1] GotoIf("SIP/CiscoSIPOut-0000000f", "1?check") in new stack -- Goto (sub-record-check,s,6) -- Executing [[email protected]:6] Set("SIP/CiscoSIPOut-0000000f", "__MON_FMT=wav") in new stack -- Executing [[email protected]:7] GotoIf("SIP/CiscoSIPOut-0000000f", "1?next") in new stack -- Goto (sub-record-check,s,10) -- Executing [[email protected]:10] ExecIf("SIP/CiscoSIPOut-0000000f", "0?Return()") in new stack -- Executing [[email protected]:11] GotoIf("SIP/CiscoSIPOut-0000000f", "0?q,1") in new stack -- Executing [[email protected]:12] Set("SIP/CiscoSIPOut-0000000f", "__REC_STATUS=INITIALIZED") in new stack -- Executing [[email protected]:13] ExecIf("SIP/CiscoSIPOut-0000000f", "0?Set(__REC_POLICY_MODE=always)") in new stack -- Executing [[email protected]:14] Set("SIP/CiscoSIPOut-0000000f", "NOW=1362545371") in new stack -- Executing [[email protected]:15] Set("SIP/CiscoSIPOut-0000000f", "__DAY=06") in new stack -- Executing [[email protected]:16] Set("SIP/CiscoSIPOut-0000000f", "__MONTH=03") in new stack -- Executing [[email protected]:17] Set("SIP/CiscoSIPOut-0000000f", "__YEAR=2013") in new stack -- Executing [[email protected]:18] Set("SIP/CiscoSIPOut-0000000f", "__TIMESTR=20130306-104931") in new stack -- Executing [[email protected]:19] Set("SIP/CiscoSIPOut-0000000f", "__FROMEXTEN=900026") in new stack -- Executing [[email protected]:20] Set("SIP/CiscoSIPOut-0000000f", "__CALLFILENAME=q-5101-900026-20130306-104931-1362545368.21") in new stack -- Executing [[email protected]:21] Goto("SIP/CiscoSIPOut-0000000f", "q,1") in new stack -- Goto (sub-record-check,q,1) -- Executing [[email protected]:1] GosubIf("SIP/CiscoSIPOut-0000000f", "0?recq,1(q,5101,900026)") in new stack -- Executing [[email protected]:2] Return("SIP/CiscoSIPOut-0000000f", "") in new stack -- Executing [[email protected]:7] Set("SIP/CiscoSIPOut-0000000f", "__CWIGNORE=TRUE") in new stack -- Executing [[email protected]:8] Set("SIP/CiscoSIPOut-0000000f", "__CFIGNORE=TRUE") in new stack -- Executing [[email protected]:9] Set("SIP/CiscoSIPOut-0000000f", "__FORWARD_CONTEXT=block-cf") in new stack -- Executing [[email protected]:10] QueueLog("SIP/CiscoSIPOut-0000000f", "5101,1362545368.21,NONE,DID,906979") in new stack -- Executing [[email protected]:11] Queue("SIP/CiscoSIPOut-0000000f", "5101,t,,") in new stack -- Started music on hold, class 'default', on SIP/CiscoSIPOut-0000000f -- Executing [[email protected]:1] Set("Local/[email protected];2", "QAGENT=2135") in new stack -- Executing [[email protected]:2] Goto("Local/[email protected];2", "5101,1") in new stack -- Goto (from-queue,5101,1) -- Executing [[email protected]:1] Goto("Local/[email protected];2", "from-queue-exten-only,2135,1") in new stack -- Goto (from-queue-exten-only,2135,1) -- Executing [[email protected]:1] Set("Local/[email protected];2", "RingGroupMethod=none") in new stack -- Executing [[email protected]:2] Gosub("Local/[email protected];2", "sub-record-check,s,1(exten,2135)") in new stack -- Executing [[email protected]:1] GotoIf("Local/[email protected];2", "1?check") in new stack -- Goto (sub-record-check,s,6) -- Executing [[email protected]:6] Set("Local/[email protected];2", "__MON_FMT=wav") in new stack -- Executing [[email protected]:7] GotoIf("Local/[email protected];2", "1?next") in new stack -- Goto (sub-record-check,s,10) -- Executing [[email protected]:10] ExecIf("Local/[email protected];2", "0?Return()") in new stack -- Executing [[email protected]:11] GotoIf("Local/[email protected];2", "1?exten,1") in new stack -- Goto (sub-record-check,exten,1) -- Executing [[email protected]:1] GotoIf("Local/[email protected];2", "1?callee") in new stack -- Goto (sub-record-check,exten,8) -- Executing [[email protected]:8] GosubIf("Local/[email protected];2", "0?record,1(exten,2135,900026)") in new stack -- Executing [[email protected]:9] Return("Local/[email protected];2", "") in new stack -- Executing [[email protected]:3] Macro("Local/[email protected];2", "dial-one,,tr,2135") in new stack -- Executing [[email protected]:1] Set("Local/[email protected];2", "DEXTEN=2135") in new stack -- Executing [[email protected]:2] Set("Local/[email protected];2", "DIALSTATUS_CW=") in new stack -- Executing [[email protected]:3] GosubIf("Local/[email protected];2", "0?screen,1()") in new stack -- Executing [[email protected]:4] GosubIf("Local/[email protected];2", "0?cf,1()") in new stack -- Executing [[email protected]:5] GotoIf("Local/[email protected];2", "1?skip1") in new stack -- Goto (macro-dial-one,s,8) -- Executing [[email protected]:8] GotoIf("Local/[email protected];2", "0?nodial") in new stack -- Executing [[email protected]:9] GotoIf("Local/[email protected];2", "0?continue") in new stack -- Executing [[email protected]:10] Set("Local/[email protected];2", "EXTHASCW=") in new stack -- Executing [[email protected]:11] GotoIf("Local/[email protected];2", "1?next1:cwinusebusy") in new stack -- Goto (macro-dial-one,s,12) -- Executing [[email protected]:12] GotoIf("Local/[email protected];2", "0?docfu:skip3") in new stack -- Goto (macro-dial-one,s,16) -- Executing [[email protected]:16] GotoIf("Local/[email protected];2", "1?next2:continue") in new stack -- Goto (macro-dial-one,s,17) -- Executing [[email protected]:17] GotoIf("Local/[email protected];2", "1?continue") in new stack -- Goto (macro-dial-one,s,25) -- Executing [[email protected]:25] GotoIf("Local/[email protected];2", "0?nodial") in new stack -- Executing [[email protected]:26] GosubIf("Local/[email protected];2", "1?dstring,1():dlocal,1()") in new stack -- Executing [[email protected]:1] Set("Local/[email protected];2", "DSTRING=") in new stack -- Executing [[email protected]:2] Set("Local/[email protected];2", "DEVICES=2135") in new stack -- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "0?Return()") in new stack -- Executing [[email protected]:4] ExecIf("Local/[email protected];2", "0?Set(DEVICES=135)") in new stack -- Executing [[email protected]:5] Set("Local/[email protected];2", "LOOPCNT=1") in new stack -- Executing [[email protected]:6] Set("Local/[email protected];2", "ITER=1") in new stack -- Executing [[email protected]:7] Set("Local/[email protected];2", "THISDIAL=SIP/2135") in new stack -- Executing [[email protected]:8] GosubIf("Local/[email protected];2", "1?zap2dahdi,1()") in new stack -- Executing [[email protected]:1] ExecIf("Local/[email protected];2", "0?Return()") in new stack -- Executing [[email protected]:2] Set("Local/[email protected];2", "NEWDIAL=") in new stack -- Executing [[email protected]:3] Set("Local/[email protected];2", "LOOPCNT2=1") in new stack -- Executing [[email protected]:4] Set("Local/[email protected];2", "ITER2=1") in new stack -- Executing [[email protected]:5] Set("Local/[email protected];2", "THISPART2=SIP/2135") in new stack -- Executing [[email protected]:6] ExecIf("Local/[email protected];2", "0?Set(THISPART2=DAHDI/2135)") in new stack -- Executing [[email protected]:7] Set("Local/[email protected];2", "NEWDIAL=SIP/2135&") in new stack -- Executing [[email protected]:8] Set("Local/[email protected];2", "ITER2=2") in new stack -- Executing [[email protected]:9] GotoIf("Local/[email protected];2", "0?begin2") in new stack -- Executing [[email protected]:10] Set("Local/[email protected];2", "THISDIAL=SIP/2135") in new stack -- Executing [[email protected]:11] Return("Local/[email protected];2", "") in new stack -- Executing [[email protected]:9] Set("Local/[email protected];2", "DSTRING=SIP/2135&") in new stack -- Executing [[email protected]:10] Set("Local/[email protected];2", "ITER=2") in new stack -- Executing [[email protected]:11] GotoIf("Local/[email protected];2", "0?begin") in new stack -- Executing [[email protected]:12] Set("Local/[email protected];2", "DSTRING=SIP/2135") in new stack -- Executing [[email protected]:13] Return("Local/[email protected];2", "") in new stack -- Executing [[email protected]:27] GotoIf("Local/[email protected];2", "0?nodial") in new stack -- Executing [[email protected]:28] GotoIf("Local/[email protected];2", "0?skiptrace") in new stack -- Executing [[email protected]:29] GosubIf("Local/[email protected];2", "1?ctset,1():ctclear,1()") in new stack -- Executing [[email protected]:1] Set("Local/[email protected];2", "DB(CALLTRACE/2135)=900026") in new stack -- Executing [[email protected]:2] Return("Local/[email protected];2", "") in new stack -- Executing [[email protected]:30] Set("Local/[email protected];2", "D_OPTIONS=trM(auto-blkvm)") in new stack -- Executing [[email protected]:31] ExecIf("Local/[email protected];2", "0?SIPAddHeader(Alert-Info: )") in new stack -- Executing [[email protected]:32] ExecIf("Local/[email protected];2", "0?SIPAddHeader()") in new stack -- Executing [[email protected]:33] ExecIf("Local/[email protected];2", "0?Set(CHANNEL(musicclass)=)") in new stack -- Executing [[email protected]:34] GosubIf("Local/[email protected];2", "0?qwait,1()") in new stack -- Executing [[email protected]:35] Set("Local/[email protected];2", "__CWIGNORE=TRUE") in new stack -- Executing [[email protected]:36] Set("Local/[email protected];2", "__KEEPCID=TRUE") in new stack -- Executing [[email protected]:37] GotoIf("Local/[email protected];2", "0?usegoto,1") in new stack -- Executing [[email protected]:38] GotoIf("Local/[email protected];2", "1?godial") in new stack -- Goto (macro-dial-one,s,42) -- Executing [[email protected]:42] Dial("Local/[email protected];2", "SIP/2135,,trM(auto-blkvm)") in new stack == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Called SIP/2135 -- Local/[email protected];1 is ringing -- SIP/2135-00000010 is ringing -- Local/[email protected];1 is ringing -- SIP/2135-00000010 is ringing -- SIP/2135-00000010 answered Local/[email protected];2 -- Executing [[email protected]:1] Set("SIP/2135-00000010", "__MACRO_RESULT=") in new stack -- Executing [[email protected]:2] Macro("SIP/2135-00000010", "blkvm-clr,") in new stack -- Executing [[email protected]:1] Set("SIP/2135-00000010", "SHARED(BLKVM,)=") in new stack -- Executing [[email protected]:2] Set("SIP/2135-00000010", "GOSUB_RETVAL=") in new stack -- Executing [[email protected]:3] MacroExit("SIP/2135-00000010", "") in new stack -- Executing [[email protected]:3] ExecIf("SIP/2135-00000010", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(num))=2135)") in new stack -- Executing [[email protected]:4] ExecIf("SIP/2135-00000010", "0?Set(MASTER_CHANNEL(CONNECTEDLINE(name))=2135)") in new stack -- Local/[email protected];1 answered SIP/CiscoSIPOut-0000000f -- Stopped music on hold on SIP/CiscoSIPOut-0000000f == Begin MixMonitor Recording SIP/CiscoSIPOut-0000000f -- Executing [[email protected]:1] Macro("SIP/CiscoSIPOut-0000000f", "hangupcall,") in new stack -- Executing [[email protected]:1] GotoIf("SIP/CiscoSIPOut-0000000f", "1?theend") in new stack -- Goto (macro-hangupcall,s,3) -- Executing [[email protected]:3] ExecIf("SIP/CiscoSIPOut-0000000f", "0?Set(CDR(recordingfile)=)") in new stack -- Executing [[email protected]:4] Hangup("SIP/CiscoSIPOut-0000000f", "") in new stack == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'SIP/CiscoSIPOut-0000000f' in macro 'hangupcall' == Spawn extension (ext-queues, h, 1) exited non-zero on 'SIP/CiscoSIPOut-0000000f' -- Executing [[email protected]:1] Macro("Local/[email protected];2", "hangupcall,") in new stack -- Executing [[email protected]:1] GotoIf("Local/[email protected];2", "1?theend") in new stack -- Goto (macro-hangupcall,s,3) -- Executing [[email protected]:3] ExecIf("Local/[email protected];2", "0?Set(CDR(recordingfile)=)") in new stack -- Executing [[email protected]:4] Hangup("Local/[email protected];2", "") in new stack == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'Local/[email protected];2' in macro 'hangupcall' == Spawn extension (macro-dial-one, h, 1) exited non-zero on 'Local/[email protected];2' == Spawn extension (macro-dial-one, s, 42) exited non-zero on 'Local/[email protected];2' in macro 'dial-one' == Spawn extension (from-queue-exten-only, 2135, 3) exited non-zero on 'Local/[email protected];2' == Spawn extension (ext-queues, 5101, 11) exited non-zero on 'SIP/CiscoSIPOut-0000000f' == MixMonitor close filestream (mixed) == End MixMonitor Recording SIP/CiscoSIPOut-0000000f localhost*CLI>

Thanks,
MacroS

I have the same problem, using asterisk 1.8 and fpbx 2.10

Have copied queue config to extensions_override_freepbx.conf and added one line with MONITOR_FILENAME variable:

[ext-queues]
include => ext-queues-custom
exten => 5101,1,Macro(user-callerid,)
exten => 5101,n,Answer
exten => 5101,n,Set(__NODEST=${EXTEN})
exten => 5101,n,Macro(prepend-cid,TechSup)
exten => 5101,n,Set(__MIXMON_FORMAT=wav)
exten => 5101,n,Gosub(sub-record-check,s,1(q,5101,always))
exten => 5101,n,Set(MONITOR_OPTIONS=b)
exten => 5101,n,Set(__MONITOR_FILENAME=/var/spool/asterisk/monitor/q${EXTEN}-${STRFTIME(${EPOCH},%Y%m%d-%H%M%S)}-${UNIQUEID})
;exten => 5101,n,Set(MONITOR_FILENAME=/var/spool/asterisk/monitor/${CALLFILENAME})
exten => 5101,n,Set(__CWIGNORE=TRUE)
exten => 5101,n,Set(__CFIGNORE=TRUE)
exten => 5101,n,Set(__FORWARD_CONTEXT=block-cf)
exten => 5101,n,QueueLog(5101,${UNIQUEID},NONE,DID,${FROM_DID})
exten => 5101,n,Queue(5101,t,)
exten => 5101,n,Gosub(sub-record-cancel,s,1())
exten => 5101,n,Set(__NODEST=)
exten => 5101,n,Set(MONITOR_OPTIONS=)
exten => 5101,n,Set(__CWIGNORE=)
exten => 5101,n,Set(__CFIGNORE=)
exten => 5101,n,Set(__FORWARD_CONTEXT=from-internal)
exten => 5101,n,Goto()
exten => 5101*,1,Macro(agent-add,5101,EXTEN)
exten => 5101**,1,Macro(agent-del,5101)
exten => *455101,1,Set(QUEUENO=5101)
exten => *455101,n,Goto(app-queue-toggle,s,start)
exten => *45,1,Goto(app-all-queue-toggle,s,start)
exten => _45X.,1,Goto(app-all-queue-toggle,s,start)
exten => 452101,1,Goto(app-all-queue-toggle,s,start)
exten => 452135,1,Goto(app-all-queue-toggle,s,start)
exten => h,1,Macro(hangupcall,)
;–== end of [ext-queues] ==–;

Now I can see filename with queue extension and time, but I’d like to change it in PHP file to add this line in extensions_additional.conf so where could I do it? And I’d like to add a caller ID to file name, but then I can’t see file at Reporting page. Any ideas?