You can reset the Gigaset T300/T500 to factory default using the following procedure:
WEB-interface:
Command line
chmod +x /usr/sbin/resetstarface.sh
/usr/sbin/resetstarface.sh