[asterisk-users] Using PHP to reload extensions
Lee Jenkins
lee at datatrakpos.com
Sat Oct 6 20:47:50 CDT 2007
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 presented two arguments - the first is '-rx', the
> second is "extensions reload" (needs additional quoting to contain the
> space) which is actually a parameter to the '-x' switch just used.
> $output = shell_exec("asterisk -rx 'extensions reload'")
> is right.
>
> Generally, the difference between single quotes and double quotes is
> that with double quotes, PHP is allowed to make $variable substitution
> while with single quotes, it is not.
>
> Mojo
>
>
Nice. Thanks for the tip, Mojo.
---
Warm Regards,
Lee
More information about the asterisk-users
mailing list