Press the Setup Button (just below the voicemail Box button)
Navigate to Menu Item #14 - Factory Reset, and press Select:
Select OK at the Reset Warning...
Commencing Reset and Initialization... (lots of blinking lights...)
The SPA504G is now reset to its factory default values.