Where do I report a bug in amportal script?

I have found a somewhat disturbing bug in amportal, where do I report that?

I just checked my Asterisk Business Edition and the variable ASTARGS is empty in safe_asterisk. It seems that it is TB that adds the argument to the script.
Well, I better notify the Trixbox community about this. Thank’s for replying.

must be a TB thing cuz my safe_asterisk does not look like yours at all

Line 10 and below

Don’t fork when running “safely”

ASTARGS="“
if [ “$TTY” != “” ]; then
if [ -c /dev/tty${TTY} ]; then
TTY=tty${TTY}
elif [ -c /dev/vc/${TTY} ]; then
TTY=vc/${TTY}
else
echo “Cannot find your TTY (${TTY})” >&2
exit 1
fi
ASTARGS=”${ASTARGS} -vvvg"
if [ “$CONSOLE” != “no” ]; then
ASTARGS="${ASTARGS} -c"
fi
fi
if [ ! -w ${DUMPDROP} ]; then
echo “Cannot write to ${DUMPDROP}” >&2
exit 1
fi

From 56 down

Run scripts to set any environment variables or do any other system-specific setup needed

if [ -d /etc/asterisk/startup.d ]; then
for script in /etc/asterisk/startup.d/*.sh; do
if [ -x ${script} ]; then
source ${script}
fi
done
fi

run_asterisk()
{
while :; do

	if [ "$TTY" != "" ]; then
		cd /tmp
		stty sane < /dev/${TTY}
		${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS} >& /dev/${TTY} < /dev/${TTY}
	else
		cd /tmp
		${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS}
	fi
	EXITSTATUS=$?
	echo "Asterisk ended with exit status $EXITSTATUS"
	if [ "$EXITSTATUS" = "0" ]; then
		# Properly shutdown....

blah blah blah

well first tell us about the “bug” if it is a bug then you can go

http://www.freepbx.org/ and report it as such

When I start up my asterisk (TrixBox 1.2.3) and run asterisk -r in a
shell, enable debug with set debug 10 and set verbose 10 everything is
displayed twice. It even looks like everything is running twice.

After some debugging I found the reason for this.

Do a ps aux | grep asterisk to see the arguments for asterisk. Here is a
part of the output:

[code:1]
/usr/sbin/asterisk -U asterisk -G asterisk -v -g -p -U asterisk -G asterisk
[/code:1]
Arguments for -U and -G are listed twice.
If I only restart asterisk with /etc/init.d/asterisk restart the output is
this:

[code:1]
/usr/sbin/asterisk -v -g -p -U asterisk -G asterisk
[/code:1]

/usr/sbin/amportal are using arguments to start safe_asterisk, but
safe_asterisk already have the -U and -G parameter

Line 28 in amportal have this line:

[code:1]
/usr/sbin/safe_asterisk -U asterisk -G asterisk
[/code:1]

Line 11 in safe_asterisk is this line:

[code:1]
ASTARGS="-v -g -p -U asterisk -G asterisk"
[/code:1]
and beginning at line 57:

[code:1]
${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS} >& /dev/${TTY} < /dev/${TTY}
else
cd /tmp
${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS}
[/code:1]

Amportal starts safe_asterisk with argument -U asterisk -G asterisk, these
arguments are passed to ${CLIARGS} in safe_asterisk, but safe_asterisk
already have these parameters. If looking at the debug output everything
runs twice.

It seems that amportal is fine but the safe_asterisk script is to blame, hmmm, maybe I should inform Trixbox about to remove the parameters frpm safe_asterisk as this is already included in Freepbx script?