${PARKEDAT} returns a blank value

Hi guys,
I want to be able to store the last parked extension.
I followed an example that I saw here, unfortunately
the ${PARKEDAT} returns a blank value.
I’ve posted the codes that I’ve used below.

I’m using freepbx + Asterisk on a Suse 10.1 system

any suggestions on how to solve this problem, is there some settings that I’m missing?


exten => _X.,1,NoOp(Call to ${EXTEN} was parked at ${PARKEDAT})
exten => _X.,n,Set(DB(LastParkedAt)=${PARKEDAT})

exten => _*55XXX,1,Answer
exten => _*55XXX,,n,Wait(1)
exten => _*55XXX,n,ParkAndAnnounce(PARKED||Local/${EXTEN:3}@CallParkedAt)