Line 20 in status-asterisk.sh
if [ -e $ast_conf_file ]; then
is faulty.
Therefore, when using Status/Asterisk in the application it just hangs indefinitely at the following grep.
root@OpenWrt:/etc/asterisk$ ash -x status-asterisk.sh
+ [ -e /var/run/asterisk.pid ]
+ cat /var/run/asterisk.pid
+ ast_pid=4745
+ cat /proc/4745/cmdline
+ sed s/\0/ /g
+ ast_proc_info=/usr/sbin/asterisk
+ echo /usr/sbin/asterisk
+ awk {print $1}
+ asterisk_exec=/usr/sbin/asterisk
+ [ -z /usr/sbin/asterisk ]
+ echo /usr/sbin/asterisk
+ awk {for (i=2; i<=NF; i++) if ($i == "-C") print $(i+1)}
+ ast_conf_file=
+ [ -e ]
+ cat
+ grep ^astetcdir =>
Just replace it with the quoted variable
if [ -e "$ast_conf_file" ]; then
and all is good again.
(X-Wrt r2676)
Regards,
Marc