Call Unix Script from Rpt.conf

Good Afternoon. In an ACID distribution, shouldn't this work?

A12=cmd,/usr/local/sbin/reboot 4####

The log says

[Mar 3 14:29:24] NOTICE[27395]: app_rpt.c:4004 function_cmd: cmd param = /usr/local/sbin/reboot 4####, digitbuf =

but the system does not reboot.

...STeve
KF5VH

OK, sorry. "cmd" is apparently only available on BeagleBoard. Maybe I can point to the extensions.conf to use "System".
...STeve

···

On 3/3/2016 2:38 PM, Steve Mahler wrote:

Good Afternoon. In an ACID distribution, shouldn't this work?

A12=cmd,/usr/local/sbin/reboot 4####

The log says

[Mar 3 14:29:24] NOTICE[27395]: app_rpt.c:4004 function_cmd: cmd param = /usr/local/sbin/reboot 4####, digitbuf =

but the system does not reboot.

...STeve
KF5VH

_______________________________________________
App_rpt-users mailing list
App_rpt-users@ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users

To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

Steve,
That is not true. You might substitute a script for the reboot command
to see if it is executing. I know it works in DIAL which is plain
vanilla asterisk. Check permissions also

···

Sent via smoke signal (AT&T 4G LTE)

On Mar 3, 2016, at 4:30 PM, Steve Mahler <kizzy@lusfiber.net> wrote:

OK, sorry. "cmd" is apparently only available on BeagleBoard. Maybe I can point to the extensions.conf to use "System".
...STeve

On 3/3/2016 2:38 PM, Steve Mahler wrote:
Good Afternoon. In an ACID distribution, shouldn't this work?

A12=cmd,/usr/local/sbin/reboot 4####

The log says

[Mar 3 14:29:24] NOTICE[27395]: app_rpt.c:4004 function_cmd: cmd param = /usr/local/sbin/reboot 4####, digitbuf =

but the system does not reboot.

...STeve
KF5VH

_______________________________________________
App_rpt-users mailing list
App_rpt-users@ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users

To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

_______________________________________________
App_rpt-users mailing list
App_rpt-users@ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users

To unsubscribe from this list please visit http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the bottom of the page. Enter your email address and press the "Unsubscribe or edit options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If you have trouble unsubscribing, please send a message to the list detailing the problem.

The reboot script your are attempting to run does not understand the optional
parameters you placed in the line.

Rebbot script commences a safe powerdown with restart of the computer.
(See also asterisk restart when you don't need to power down the system)

See also ??=cop,1 ;warm boot

Try this
A12=cmd,/usr/local/sbin/reboot

...mike/kb8jnm

···

Good Afternoon. In an ACID distribution, shouldn't this work?

A12=cmd,/usr/local/sbin/reboot 4####

The log says

[Mar 3 14:29:24] NOTICE[27395]: app_rpt.c:4004 function_cmd: cmd param
= /usr/local/sbin/reboot 4####, digitbuf =

but the system does not reboot.

...STeve
KF5VH

_______________________________________________
App_rpt-users mailing list
App_rpt-users@ohnosec.org
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users

To unsubscribe from this list please visit
http://ohnosec.org/cgi-bin/mailman/listinfo/app_rpt-users and scroll down to the
bottom of the page. Enter your email address and press the "Unsubscribe or edit
options button"
You do not need a password to unsubscribe, you can do it via email confirmation. If
you have trouble unsubscribing, please send a message to the list detailing the
problem.