Re: [asterisk-users] Restarting Asterisk using a script - Thanks to all -

2010-03-29 Thread Aurimas Skirgaila
Hi, 1) It would be nice to find out the root reason that forces you to restart the Asterisk. I do run Aheeva with decently high uptimes. 2) Both "a" and "b" methods of Jose P. Espinal are functional, but if I'm having a failure, I up to grab the putty and investigate what's going on there :) How

Re: [asterisk-users] Restarting Asterisk using a script - Thanks to all -

2010-03-24 Thread Steve Edwards
On Wed, 24 Mar 2010, Amine Mrichcha wrote: Thanks. Yes it is crashing but as a workaround we restart it and we are investigating about the root cause.   My question was if it is possible to create a patch script or somthing like this that we can launch from a PC without directly access the ser

Re: [asterisk-users] Restarting Asterisk using a script - Thanks to all -

2010-03-24 Thread Jose P. Espinal
Hi, Have you tested safe_asterisk ? Amine Mrichcha wrote: > Hi Steve, > > Thanks. Yes it is crashing but as a workaround we restart it and we are > investigating about the root cause. > > My question was if it is possible to create a patch script or somthing > like this that we can launch

Re: [asterisk-users] Restarting Asterisk using a script - Thanks to all -

2010-03-24 Thread Amine Mrichcha
Hi Steve, Thanks. Yes it is crashing but as a workaround we restart it and we are investigating about the root cause. My question was if it is possible to create a patch script or somthing like this that we can launch from a PC without directly access the server. Regards, On Wed, Mar 24, 2010 a

Re: [asterisk-users] Restarting Asterisk using a script - Thanks to all -

2010-03-24 Thread Alyed
Guess it's not a matter of asterisk as it is of Linux scripting. first check: http://linuxproblem.org/art_9.html then try something like: http://forums.digitalpoint.com/showthread.php?t=70926 but as Steve said, why you need to restart the asterisk service in the first place Fix what's wrong d

Re: [asterisk-users] Restarting Asterisk using a script - Thanks to all -

2010-03-24 Thread Jose P. Espinal
Hi there, a. You could (maybe) use PHP and send some command via POST, and (after secure/validating the command) use 'exec()' function in php, or 'system()' function. Note: that would require to have a webserver with php installed on it. And allowing the user under which the webserver runs, to

Re: [asterisk-users] Restarting Asterisk using a script - Thanks to all -

2010-03-24 Thread Steve Edwards
On Wed, 24 Mar 2010, Amine Mrichcha wrote: > I do have asterisk installed for a call center and I would like to know > if it is possible to create a scipt and execute it from a PC connected > to the Network without accessing the server. This script should restart > asterisk and another service

[asterisk-users] Restarting Asterisk using a script - Thanks to all -

2010-03-24 Thread Amine Mrichcha
Hi All, I do have asterisk installed for a call center and I would like to know if it is possible to create a scipt and execute it from a PC connected to the Network without accessing the server. This script should restart asterisk and another service related to aheeva. The problem now is that ea