I prefer the LD 117 stat iset all command mentioned above by nessaman.
This will also return the firmware version, IP address of the phone, IP address of the signaling server it is registered to, MAC address of the phone, TN of the phone, and it's state (registered, unregistered, busy, etc.)