[Asterisk-Users] Resetting Asterisk
    Brancaleoni Matteo 
    mbrancaleoni at espia.it
       
    Mon Apr 26 11:34:54 MST 2004
    
    
  
sure... just dial-an-agi (tm) :)
seriously, just write down an agi script
(c/bash/perl/php/whatever) that is called
from an exten, like
exten => 1234,1,Agi(restart.php)
(restart.php must be an agi script written by you
and located under /var/lib/asterisk/agi-bin)
or use app_system...
exten => 1234,1,System("/usr/sbin/asterisk -rx reload")
blah blah blah :)
matteo.
Il lun, 2004-04-26 alle 20:06, Kyle Hagan ha scritto:
>  Is there a was to reset asterisk by dialing? Eg *99 and have it
> execute the commands to stop now and restart? 
>  
> Also eg *56 to reload? 
>  
> The reason for the restart command is over the weekend it started
> acting weird, the voice got really choppy and aver i restarted
> asterisk it was fine. We are just in testing right now but it would be
> nice to know how to do this if it were to happen again and im not here
> or cant SSH in to restart it. I could tell the users to dial *99 to
> fix the problem.
>  
> Kyle
-- 
Brancaleoni Matteo <mbrancaleoni at espia.it>
Espia - Emmegi Srl
    
    
More information about the asterisk-users
mailing list