Re: [asterisk-users] Using PHP to reload extensions

2007-10-08 Thread Mojo with Horan Company, LLC
My pleasure :) It's rare I have an opportunity to help someone on here. Lee Jenkins wrote: Mojo with Horan Company, LLC wrote: No, because then asterisk would be presented three arguments: '-rx', 'extensions', and 'reload' -- as 'extensions' is not a command by itself, and the

Re: [asterisk-users] Using PHP to reload extensions

2007-10-06 Thread Lee Jenkins
Mojo with Horan Company, LLC wrote: No, because then asterisk would be presented three arguments: '-rx', 'extensions', and 'reload' -- as 'extensions' is not a command by itself, and the 'reload' appears superfluous to asterisk, this would not work as desired. Asterisk needs to be

Re: [asterisk-users] Using PHP to reload extensions

2007-10-05 Thread Andrea Spadaccini
Ciao Tzafrir, The only real benefit is if you can limit the permissions you give to that specific manager user. But there's a limit to ohw useful this can be. Even write=command alone allows changing the dialplan ('dialplan add' / 'dialplan remove') and running an arbitrary command as the

Re: [asterisk-users] Using PHP to reload extensions

2007-10-04 Thread Tzafrir Cohen
On Wed, Oct 03, 2007 at 09:10:58PM -0500, Moises Silva wrote: If you are running the script from a web server, the script gets executed with the web server process permissions, hence, probably does not have access to /var/run/asterisk.ctl. You can give permissions to your web server, or

Re: [asterisk-users] Using PHP to reload extensions

2007-10-04 Thread Mojo with Horan Company, LLC
No, because then asterisk would be presented three arguments: '-rx', 'extensions', and 'reload' -- as 'extensions' is not a command by itself, and the 'reload' appears superfluous to asterisk, this would not work as desired. Asterisk needs to be presented two arguments - the first is '-rx',

Re: [asterisk-users] Using PHP to reload extensions

2007-10-04 Thread Michael Iedema
Hello, I am trying to use PHP to reload the extensions in an Asterisk installation. I keep getting this error: Easiest way without compromising security or changing permissions. Use the AMI. 1. Download phpagi (Just google it) 2. Use it to connect to the Manager interface 3. Use it to

Re: [asterisk-users] Using PHP to reload extensions

2007-10-03 Thread Philipp Kempgen
Michael Munger wrote: I am trying to use PHP to reload the extensions in an Asterisk installation. I keep getting this error: Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?) when I run the script by visiting the URL; however, if I run the script from the command

Re: [asterisk-users] Using PHP to reload extensions

2007-10-03 Thread Moises Silva
If you are running the script from a web server, the script gets executed with the web server process permissions, hence, probably does not have access to /var/run/asterisk.ctl. You can give permissions to your web server, or better yet, dont execute the command using shell_exec, better open a

Re: [asterisk-users] Using PHP to reload extensions

2007-10-03 Thread Steve Totaro
Michael Munger wrote: I am trying to use PHP to reload the extensions in an Asterisk installation. I keep getting this error: Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?) when I run the script by visiting the URL; however, if I run the script from the command

Re: [asterisk-users] Using PHP to reload extensions

2007-10-03 Thread Lee Jenkins
Michael Munger wrote: I am trying to use PHP to reload the extensions in an Asterisk installation. I keep getting this error: Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?) when I run the script by visiting the URL; however, if I run the script from the command

Re: [asterisk-users] Using PHP to reload extensions

2007-10-03 Thread Steve Totaro
Steve Totaro wrote: Michael Munger wrote: I am trying to use PHP to reload the extensions in an Asterisk installation. I keep getting this error: Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?) when I run the script by visiting the URL; however, if I run the