bilal ghayyad wrote:
> Hi All;
> 
> How can I configure Asterisk in that way:
> 
> If I entered code (from my mobile when I call to the
> Asterisk or from any Internal Phone), then the machine
> do restart. I need this when I am far from the office
> and I need to restart the machine and I do not have
> Internet connection.

The safest way is to call an AGI script (or System command or whatever) 
from the dial plan that uses some IPC mechanism to pass a message to an 
outside cron job that runs periodically and checks for this flag, and if 
so, restarts asterisk from the CLI ('asterisk -r -x 'stop now'; sleep 
10; asterisk).

The sleep is desirable because the 'stop now' command is asynchronous 
and Asterisk does not necessarily shut down instantaneously when you 
issue it.

-- 
Alex Balashov
Evariste Systems
Web    : http://www.evaristesys.com/
Tel    : (+1) (678) 954-0670
Direct : (+1) (678) 954-0671
Mobile : (+1) (706) 338-8599

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to