Strange Issue with Recordings on Queue

hi Team I am having a strange issue.
I have an incoming number setup like this: Number → Timecondition-> IVR → Queues

I have 4 queues in order. All of the calls are recorded but on the first option queue I am having strange issue.
There is missing in recordings. sometimes calls get recorded but sometimes they are not. look in the picture below:

Other queues are on the same number working fine and recording the calls fine.
Every queue has the same setting but this is strange. If I check on the Logs /var/log/asterisk/full I can see it is creating the file with proper

17:50:26(292):[2020-08-26 17:45:32] VERBOSE[2037][C-000087e7] netsock2.c:   == Using SIP RTP TOS bits 184
17:50:26(293):[2020-08-26 17:45:32] VERBOSE[2037][C-000087e7] netsock2.c:   == Using SIP RTP CoS mark 5
17:50:26(294):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [-TO--DID-----298@from-pstn-e164-us:1] Set("SIP/Carrier-0000e4c3", "CALLERID(number)=--FROM-----279") in new stack
17:50:26(295):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [-TO--DID-----298@from-pstn-e164-us:2] Goto("SIP/Carrier-0000e4c3", "from-pstn,-TO--DID-----298,1") in new stack
17:50:26(296):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Goto (from-pstn,-TO--DID-----298,1)
17:50:26(296):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [-TO--DID-----298@from-pstn:1] Set("SIP/Carrier-0000e4c3", "__FROM_DID=-TO--DID-----298") in new stack
17:50:26(297):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [-TO--DID-----298@from-pstn:2] Gosub("SIP/Carrier-0000e4c3", "sub-record-check,s,1(force,-TO--DID-----298,always)") in new stack
17:50:26(298):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@sub-record-check:1] Set("SIP/Carrier-0000e4c3", "REC_POLICY_MODE_SAVE=") in new stack
17:50:26(299):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@sub-record-check:2] GotoIf("SIP/Carrier-0000e4c3", "1?check") in new stack
17:50:26(300):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Goto (sub-record-check,s,7)
17:50:26(301):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@sub-record-check:7] Set("SIP/Carrier-0000e4c3", "__MON_FMT=wav") in new stack
17:50:26(302):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@sub-record-check:8] GotoIf("SIP/Carrier-0000e4c3", "1?next") in new stack
17:50:26(302):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Goto (sub-record-check,s,11)
17:50:26(303):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@sub-record-check:11] ExecIf("SIP/Carrier-0000e4c3", "0?Return()") in new stack
17:50:26(304):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@sub-record-check:12] ExecIf("SIP/Carrier-0000e4c3", "1?Set(__REC_POLICY_MODE=always)") in new stack
17:50:26(304):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@sub-record-check:13] GotoIf("SIP/Carrier-0000e4c3", "0?force,1") in new stack
17:50:26(305):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@sub-record-check:14] Set("SIP/Carrier-0000e4c3", "__REC_STATUS=INITIALIZED") in new stack
17:50:26(307):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@sub-record-check:15] Set("SIP/Carrier-0000e4c3", "NOW=1598478332") in new stack
17:50:26(310):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@sub-record-check:16] Set("SIP/Carrier-0000e4c3", "__DAY=26") in new stack
17:50:26(313):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@sub-record-check:17] Set("SIP/Carrier-0000e4c3", "__MONTH=08") in new stack
17:50:26(316):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@sub-record-check:18] Set("SIP/Carrier-0000e4c3", "__YEAR=2020") in new stack
17:50:26(317):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@sub-record-check:19] Set("SIP/Carrier-0000e4c3", "__TIMESTR=20200826-174532") in new stack
17:50:26(317):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@sub-record-check:20] Set("SIP/Carrier-0000e4c3", "__FROMEXTEN=unknown") in new stack
17:50:26(318):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@sub-record-check:21] Set("SIP/Carrier-0000e4c3", "__CALLFILENAME=force--TO--DID-----298-unknown-20200826-174532-1598478332.191183") in new stack
17:50:26(318):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@sub-record-check:22] Goto("SIP/Carrier-0000e4c3", "force,1") in new stack
17:50:26(319):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Goto (sub-record-check,force,1)
17:50:26(319):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [force@sub-record-check:1] GosubIf("SIP/Carrier-0000e4c3", "1?record,1(force,always,unknown)") in new stack
17:50:26(320):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [record@sub-record-check:1] Set("SIP/Carrier-0000e4c3", "AUDIOHOOK_INHERIT(MixMonitor)=yes") in new stack
17:50:26(321):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [record@sub-record-check:2] MixMonitor("SIP/Carrier-0000e4c3", "2020/08/26/force--TO--DID-----298-unknown-20200826-174532-1598478332.191183.wav,,") in new stack
17:50:26(321):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [record@sub-record-check:3] Set("SIP/Carrier-0000e4c3", "__REC_STATUS=RECORDING") in new stack
17:50:26(322):[2020-08-26 17:45:32] VERBOSE[12512][C-000087e7] app_mixmonitor.c:   == Begin MixMonitor Recording SIP/Carrier-0000e4c3
17:50:26(322):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [record@sub-record-check:4] Set("SIP/Carrier-0000e4c3", "CDR(recordingfile)=force--TO--DID-----298-unknown-20200826-174532-1598478332.191183.wav") in new stack
17:50:26(323):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [record@sub-record-check:5] Return("SIP/Carrier-0000e4c3", "") in new stack
17:50:26(323):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [force@sub-record-check:2] Return("SIP/Carrier-0000e4c3", "") in new stack
17:50:26(323):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [-TO--DID-----298@from-pstn:3] Gosub("SIP/Carrier-0000e4c3", "app-blacklist-check,s,1()") in new stack
17:50:26(324):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@app-blacklist-check:1] GotoIf("SIP/Carrier-0000e4c3", "0?check-blocked") in new stack
17:50:26(324):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@app-blacklist-check:2] GotoIf("SIP/Carrier-0000e4c3", "0?check-blocked") in new stack
17:50:26(325):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@app-blacklist-check:3] GotoIf("SIP/Carrier-0000e4c3", "0?check-blocked:check") in new stack
17:50:26(325):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Goto (app-blacklist-check,s,5)
17:50:26(325):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@app-blacklist-check:5] GotoIf("SIP/Carrier-0000e4c3", "0?blacklisted") in new stack
17:50:26(326):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@app-blacklist-check:6] Set("SIP/Carrier-0000e4c3", "CALLED_BLACKLIST=1") in new stack
17:50:26(326):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [s@app-blacklist-check:7] Return("SIP/Carrier-0000e4c3", "") in new stack
17:50:26(327):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [-TO--DID-----298@from-pstn:4] Set("SIP/Carrier-0000e4c3", "CDR(did)=-TO--DID-----298") in new stack
17:50:26(328):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [-TO--DID-----298@from-pstn:5] ExecIf("SIP/Carrier-0000e4c3", "1 ?Set(CALLERID(name)=--FROM-----279)") in new stack
17:50:26(328):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [-TO--DID-----298@from-pstn:6] Set("SIP/Carrier-0000e4c3", "CHANNEL(musicclass)=default") in new stack
17:50:26(329):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [-TO--DID-----298@from-pstn:7] Set("SIP/Carrier-0000e4c3", "__MOHCLASS=default") in new stack
17:50:26(330):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [-TO--DID-----298@from-pstn:8] Set("SIP/Carrier-0000e4c3", "__CALLINGPRES_SV=allowed_not_screened") in new stack
17:50:26(330):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [-TO--DID-----298@from-pstn:9] Set("SIP/Carrier-0000e4c3", "CALLERPRES()=allowed_not_screened") in new stack
17:50:26(331):[2020-08-26 17:45:32] VERBOSE[12511][C-000087e7] pbx.c:     -- Executing [-TO--DID-----298@from-pstn:10] Goto("SIP/Carrier-0000e4c3", "timeconditions,3,1") in new stack

Now that I have created a new Queue with the same name and it worked fine recording the calls.

but I need to deploy call survey on these queues and for this purpose I have added the queue code in the freepbx_override file.

after that call recordings were removed by the system

check the logs.

grep 1598482605.434 /var/log/asterisk/full
[2020-08-26 18:56:45] VERBOSE[46889][C-00000042] pbx.c:     -- Executing [s@macro-user-callerid:1] Set("SIP/1004-0000005c", "TOUCH_MONITOR=1598482605.434") in new stack
[2020-08-26 18:56:45] VERBOSE[46889][C-00000042] pbx.c:     -- Executing [s@sub-record-check:21] Set("SIP/1004-0000005c", "__CALLFILENAME=q-3021-1004-20200826-185645-1598482605.434") in new stack
[2020-08-26 18:56:45] VERBOSE[46889][C-00000042] pbx.c:     -- Executing [recq@sub-record-check:2] Set("SIP/1004-0000005c", "MONITOR_FILENAME=2020/08/26/q-3021-1004-20200826-185645-1598482605.434") in new stack
[2020-08-26 18:56:45] VERBOSE[46889][C-00000042] pbx.c:     -- Executing [recq@sub-record-check:3] MixMonitor("SIP/1004-0000005c", "2020/08/26/q-3021-1004-20200826-185645-1598482605.434.wav,b,") in new stack
[2020-08-26 18:56:45] VERBOSE[46889][C-00000042] pbx.c:     -- Executing [recq@sub-record-check:5] Set("SIP/1004-0000005c", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46889][C-00000042] pbx.c:     -- Executing [3021@from-internal:36] QueueLog("SIP/1004-0000005c", "3021,1598482605.434,NONE,DID,") in new stack
[2020-08-26 18:56:45] VERBOSE[46894][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/360@from-queue-000000ab;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46897][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/604@from-queue-000000ae;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46896][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/511@from-queue-000000ad;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46895][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/329@from-queue-000000ac;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46900][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/517@from-queue-000000b1;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46898][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/799@from-queue-000000af;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46905][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/132@from-queue-000000b6;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46901][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/156@from-queue-000000b2;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46904][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/347@from-queue-000000b5;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46899][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/152@from-queue-000000b0;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46907][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/315@from-queue-000000b8;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46902][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/521@from-queue-000000b3;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46910][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/964@from-queue-000000bb;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46903][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/831@from-queue-000000b4;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46911][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/104@from-queue-000000bc;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46906][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/530@from-queue-000000b7;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46909][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/657@from-queue-000000ba;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:45] VERBOSE[46908][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/531@from-queue-000000b9;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:56:46] VERBOSE[46912][C-00000042] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/138@from-queue-000000bd;2", "CDR(recordingfile)=q-3021-1004-20200826-185645-1598482605.434.wav") in new stack
[2020-08-26 18:57:02] VERBOSE[46889][C-00000042] pbx.c:     -- Executing [s@sub-record-cancel:7] ExecIf("SIP/1004-0000005c", "42?System(rm -f /var/spool/asterisk/monitor/2020/08/26/q-3021-1004-20200826-185645-1598482605.434.wav)") in new stack

check this out why is this happening ?

New Findings.

The calls are recording on the queue but the calls which goes to the survey context there recrodings will be deleted before going to survery context.
Please check below

grep 1598532751.5245 /var/log/asterisk/full
[2020-08-27 08:52:31] VERBOSE[4271][C-00000671] pbx.c:     -- Executing [s@sub-record-check:21] Set("SIP/DIDFS2-00000553", "__CALLFILENAME=force-17186849298-unknown-20200827-085231-1598532751.5245") in new stack
[2020-08-27 08:52:31] VERBOSE[4271][C-00000671] pbx.c:     -- Executing [record@sub-record-check:2] MixMonitor("SIP/DIDFS2-00000553", "2020/08/27/force-17186849298-unknown-20200827-085231-1598532751.5245.wav,,") in new stack
[2020-08-27 08:52:31] VERBOSE[4271][C-00000671] pbx.c:     -- Executing [record@sub-record-check:4] Set("SIP/DIDFS2-00000553", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4271][C-00000671] pbx.c:     -- Executing [s@macro-user-callerid:1] Set("SIP/DIDFS2-00000553", "TOUCH_MONITOR=1598532751.5245") in new stack
[2020-08-27 08:52:54] VERBOSE[4271][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("SIP/DIDFS2-00000553", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4271][C-00000671] pbx.c:     -- Executing [3021@ext-queues:36] QueueLog("SIP/DIDFS2-00000553", "3021,1598532751.5245,NONE,DID,17186849298") in new stack
[2020-08-27 08:52:54] VERBOSE[4366][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/329@from-queue-00000796;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4367][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/511@from-queue-00000797;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4369][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/799@from-queue-00000799;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4365][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/360@from-queue-00000795;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4368][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/604@from-queue-00000798;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4370][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/152@from-queue-0000079a;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4371][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/517@from-queue-0000079b;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4373][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/521@from-queue-0000079d;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4372][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/156@from-queue-0000079c;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4375][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/347@from-queue-0000079f;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4376][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/132@from-queue-000007a0;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4374][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/831@from-queue-0000079e;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4377][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/530@from-queue-000007a1;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4378][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/315@from-queue-000007a2;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4380][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/657@from-queue-000007a4;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4379][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/531@from-queue-000007a3;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4382][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/104@from-queue-000007a6;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4383][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/138@from-queue-000007a7;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:52:54] VERBOSE[4381][C-00000671] pbx.c:     -- Executing [s@sub-record-check:9] Set("Local/964@from-queue-000007a5;2", "CDR(recordingfile)=force-17186849298-unknown-20200827-085231-1598532751.5245.wav") in new stack
[2020-08-27 08:53:10] VERBOSE[4271][C-00000671] pbx.c:     -- Executing [s@sub-record-cancel:7] ExecIf("SIP/DIDFS2-00000553", "57?System(rm -f /var/spool/asterisk/monitor/2020/08/27/force-17186849298-unknown-20200827-085231-1598532751.5245.wav)") in new stack
[2020-08-27 08:53:23] VERBOSE[4271][C-00000671] pbx.c:     -- Executing [s@macro-survey:6] System("SIP/DIDFS2-00000553", "mail -s "Post Call Evaluation Survey ||  Call-ID-Name - EHR -2128520279 || Call-ID-Number - 2128520279 || Answering Peer - Local/831@from-queue-0000079e;1 || Call-Rec - 1598532751.5245  || Responses: 2 ||" [email protected] < /dev/null") in new stack
[2020-08-27 08:53:23] VERBOSE[4271][C-00000671] pbx.c:     -- Executing [s@macro-survey:7] System("SIP/DIDFS2-00000553", "mail -s "Post Call Evaluation Survey ||  Call-ID-Name - EHR -2128520279 || Call-ID-Number - 2128520279 || Answering Peer - Local/831@from-queue-0000079e;1 || Call-Rec - 1598532751.5245  || Responses: 2 ||" [email protected] < /dev/null") in new stack
[2020-08-27 08:53:23] VERBOSE[4271][C-00000671] pbx.c:     -- Executing [s@macro-survey:8] System("SIP/DIDFS2-00000553", "mail -s "Post Call Evaluation Survey ||  Call-ID-Name - EHR -2128520279 || Call-ID-Number - 2128520279 || Answering Peer - Local/831@from-queue-0000079e;1 || Call-Rec - 1598532751.5245  || Responses: 2 ||" [email protected] < /dev/null") in new stack

I have added the Queue Code in override file to and added c after qoptions to continue after hangup.
and it goes to the context [macro-survey]

exten => 3021,n(qcall),Queue(3021,${QOPTIONS}c,,${QAANNOUNCE},${QMAXWAIT},${QAGI},,${QGOSUB},${QRULE},${QPOSITION})
exten => 3021,n,Gosub(sub-record-cancel,s,1())

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