[asterisk-users] Using PHP to reload extensions

Michael Munger michael at highpoweredhelp.com
Wed Oct 3 19:12:43 CDT 2007


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 line, it runs just fine (works perfect, actually).

I think it is permissions related. Does anyone have any ideas?

<php
        $output = shell_exec('asterisk -rx"extensions reload"');
        echo $output;
?>

 

Yours,

Michael Munger, dCAP

404-438-2128

michael at highpoweredhelp.com

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20071003/6362dd78/attachment.htm 


More information about the asterisk-users mailing list