if wierd behavior

"Walter Hansen" <[email protected]> Wed, 18 Jul 2007 19:32:26 -0700
Newsgroups gmane.comp.gnu.bayonne.devel
Message-ID <[email protected]>
This script is recording ten seconds regardless of the value of %lastdialed.
Am I coding this wrong? This is bayonne 1.x stable.

if %lastdialed eq "0000\-00\-00\ 00:00:00"
  then
    slog "recording prompt"
    record maxTime=10 %file
  else
    sleep 10
  endif