[Asterisk-Users] Resetting Asterisk

Kyle Hagan khagan at nuvoinc.com
Mon Apr 26 12:26:15 MST 2004


tried this

exten => *99,1,System("/usr/sbin/asterisk -rx reload")

I get

'/bin/sh: line 1: /usr/sbin/asterisk -rx reload: No such file or directory'.

message on console.

When I type /usr/sbin/asterisk -rx reload manually it works fine.

any ideas?

Kyle

----- Original Message ----- 
From: "Brancaleoni Matteo" <mbrancaleoni at espia.it>
To: <asterisk-users at lists.digium.com>
Sent: Monday, April 26, 2004 11:34 AM
Subject: Re: [Asterisk-Users] Resetting Asterisk


> 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
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>




More information about the asterisk-users mailing list