Unable to store a hangupcause with Dialstatus CHANUNAVAIL into CDR

hi,

seeking your assistance why I cannot store a hangupcause with dialstatus CHANUNAVAIL into CDR

PBX Version:16.0.10.49
PBX Distro:12.7.8-2112-4.sng7
Asterisk Version:16.20.0

this is my extensions_override_freepbx.conf

[macro-hangupcall]
exten => s,1,Set(CDR(userfield)=Dialstatus:${DIALSTATUS}&Hangupcause:${HANGUPCAUSE})
exten => s,n(start),GotoIf($["${USE_CONFIRMATION}"="" | "${RINGGROUP_INDEX}"="" | "${CHANNEL}"!="${UNIQCHAN}"]?theend)
exten => s,n(delrgi),Noop(Deleting: RG/${RINGGROUP_INDEX}/${CHANNEL} ${DB_DELETE(RG/${RINGGROUP_INDEX}/${CHANNEL})})
exten => s,n(theend),ExecIf($["${ONETOUCH_RECFILE}"!="" & "${CDR(recordingfile)}"=""]?Set(CDR(recordingfile)=${ONETOUCH_RECFILE}))
exten => s,n,Noop(${CDR(dstchannel)} montior file= ${MIXMONITOR_FILENAME})
exten => s,n,GotoIf($["${CDR(dstchannel)}" = "" | "${MIXMONITOR_FILENAME}" = ""]?skipagi)
exten => s,n,AGI(agi://127.0.0.1/attendedtransfer-rec-restart.php,${CDR(dstchannel)},${MIXMONITOR_FILENAME})
exten => s,n(skipagi),Hangup
exten => s,n,MacroExit()

;--== end of [macro-hangupcall] ==--;

as per the CLI log below, the dialplan is executed without any error message.

[2022-01-28 16:42:39] VERBOSE[1339][C-000080a8] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
[2022-01-28 16:42:39] VERBOSE[1339][C-000080a8] pbx.c: Executing [[email protected]:36] NoOp("SIP/Trunk-1-00008075", "Dial failed for some reason with DIALSTATUS = CHANUNAVAIL and HANGUPCAUSE = 20") in new stack
[2022-01-28 16:42:39] VERBOSE[1339][C-000080a8] pbx.c: Executing [[email protected]:37] Set("SIP/Trunk-1-00008075", "CDR(userfield)=Dialstatus:CHANUNAVAIL&Hangupcause:20") in new stack
[2022-01-28 16:42:39] VERBOSE[1339][C-000080a8] pbx.c: Executing [[email protected]:38] GotoIf("SIP/Trunk-1-00008075", "0?continue,1:s-CHANUNAVAIL,1") in new stack
[2022-01-28 16:42:39] VERBOSE[1339][C-000080a8] pbx_builtins.c: Goto (macro-dialout-trunk,s-CHANUNAVAIL,1)
[2022-01-28 16:42:39] VERBOSE[1339][C-000080a8] pbx.c: Executing [[email protected]:1] Set("SIP/Trunk-1-00008075", "RC=20") in new stack
[2022-01-28 16:42:39] VERBOSE[1339][C-000080a8] pbx.c: Executing [[email protected]:2] Goto("SIP/Trunk-1-00008075", "20,1") in new stack
[2022-01-28 16:42:39] VERBOSE[1339][C-000080a8] pbx_builtins.c: Goto (macro-dialout-trunk,20,1)

there is no dialstatus for CHANUNAVAIL in the CDR.

image

thanks in advance

Best regards,

BC

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