Would you be able to help on how you got into asterisk -r?
I am getting an error message:
linuxmce@dcerouter:/etc$ asterisk -r
Asterisk 1.4.10, Copyright (C) 1999 - 2007 Digium, Inc. and others.
Created by Mark Spencer <email@example.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
Unable to connect to remote asterisk (does /var/run/asterisk/asterisk.ctl exist?)
linuxmce@dcerouter:/etc$ sudo amportal restart
/var/lib/asterisk/bin/freepbx_engine: line 26: [: =: unary operator expected
**** WARNING: ERROR IN CONFIGURATION ****
astrundir in /etc/asterisk/asterisk.conf is set to but the directory
does not exists. Attempting to create it with: 'mkdir -p '
mkdir: missing operand
Try `mkdir --help' for more information.
**** ERROR: COULD NOT CREATE ****
Attempt to execute 'mkdir -p ' failed with an exit code of 1
You must create this directory and the try again.
I have indicated this error also here: http://forum.linuxmce.org/index.php?topic=5594.0