How to get last recording file using AGI?

After hangup, if I have recording files,execute php script.
I want to passing recordings files’ name in php script.

I have the dialplan

[macro-hangupcall]
include => macro-hangupcall-custom
exten => s,1(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,AGI(/var/www/html/speechtotext.php)
exten => s,n,Hangup
exten => s,n,MacroExit()

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

Help me! Please.

Share your dialplan and CLI output, set verbose level at least 5