Hi guys. I've got a working PiaF purple installed on a little AspireRevo here and when it works, it works great. I've really enjoyed tinkering with it the past few weeks and learning the ins & outs. Unfortunately it was a while before I learned that it was important to issue an amportal stop command before rebooting the server. So I happily rebooted the thing a handful of times while asterisk was running. Now I don't know if I've corrupted my database by doing so. The problem I'm having now is, every so often (varies from several hours to several days...) the * server will just go dead. It still shows up in ps ax | grep asterisk but I can't make or receive any calls. I can connect to the * console (CLI) during this time and it will show some SIP channels active that should have died long ago. Issuing amportal stop at this point results in this: it just hangs there for 2-3 minutes, and then the command will eventually time out and tell me that * is stopped (which it isn't). So at that point I am not sure what to do-- I usually just connect to the console and issue core stop now and then reboot the box. What I want to know is, how can I debug what's going on "under the hood" here, and hopefully fix it. I'd like to know what * is really doing - i.e. is there a thread that it's stuck on etc, or any kind of logfile or db I can query to find out why this thing keeps getting hung up? Is there any way to examine the databases to make sure they are intact?