Home Forum Developers GUI 4.0 Problem in GUI SVN 602

JRPassphrase Registration Control

In order to register on this site, you must first submit the passphrase below.

TODO list for each hardware target can be found as sticky topic in the corresponding forum


fant
useravatar
User Info

Problem in GUI SVN 602

I tested firmware svn 602 in ip04. GUI not found fxs ports.
I can see in firebug:
Request http://192.168.1.100/cgi-bin/system_cmd … _scan.conf
Answer:

Code:


[1]
active=yes
alarms=OK
description=Blackfin IP0x Board 1
name=WCTDM/0
manufacturer=Rowetel
devicetype=Blackfin IP0x
location=
basechan=1
totchans=8
irq=0
type=analog
port=1,FXS
port=2,none
port=3,none
port=4,none
port=5,none
port=6,none
port=7,none
port=8,none
[2]
active=yes
alarms=UNCONFIGURED
description=DAHDI_DUMMY/1 (source: Linux26) 1
name=DAHDI_DUMMY/1
manufacturer=
devicetype=DAHDI Dummy Timing
location=
basechan=9
totchans=0
irq=0

Request http://192.168.1.100/AMI/rawman?action= … _scan.conf
Answer empty

Command dahdi_scan launched in console:
dahdi_scan > /persistent/etc/asterisk/dahdi_scan.conf
GUI found fxs ports after this.

Andrej


Administrator has disabled public posting
fant
useravatar
User Info

Re: Problem in GUI SVN 602

Hi Guys,
I not know script programming very well.
But, i see, code in system_cmd.cgi not work, while cmd = dahdi_scan > /persistent/etc/asterisk/dahdi_scan.conf

Code:

    result=`$cmd`

    echo "$result"

While I add

Code:

    if [ "$cmd" = "dahdi_scan > /persistent/etc/asterisk/dahdi_scan.conf" ]; then

    dahdi_scan > /persistent/etc/asterisk/dahdi_scan.conf
fi
    result=`$cmd`
    echo "$result"

system_cmd.cgi work very well.
How to fix it?

Andrej


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Problem in GUI SVN 602

Hi Fant

I look into this for you as for im guessing this happens only after a fresh install on default configs?

Thanks
Jason


Administrator has disabled public posting
fant
useravatar
User Info

Re: Problem in GUI SVN 602

Hi Jason,

I updated from u-boot. I erased all flash. So ip04 using default configs.

Andrej


Administrator has disabled public posting
fant
useravatar
User Info

Re: Problem in GUI SVN 602

Hi Jason,

Run simple script on ip04

Code:

##!/bin/hush

echo variant 1
touch /root/system_cmd.1
cmd="dahdi_scan > /root/system_cmd.1"
result=`$cmd`
echo "$result"

echo variant 2
touch /root/system_cmd.2
cmd="dahdi_scan > /root/system_cmd.2"
$cmd

echo variant 3
touch /root/system_cmd.3
cmd="dahdi_scan"
redirect="/root/system_cmd.3"
$cmd > $redirect

echo variant 4
touch /root/system_cmd.4
dahdi_scan > /root/system_cmd.4

Redirect not work in variant 1 and 2.
Variant 1 use in system_cmd.cgi now.
Code result=`$cmd` invoke overflow with long string. I writed about this on forum.
Variant 2 work without any overflow.

Andrej


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Problem in GUI SVN 602

Hi Andrej

I see you committed some changes is this issue fixed now? sorry i haven't had much time to test this week smile

Thanks
Jason


Administrator has disabled public posting
fant
useravatar
User Info

Re: Problem in GUI SVN 602

Hi Jason,

Yes, ip04 work without any dumping.
But, GUI wizard have one issue.
While I set 'yes' for DHCP. DHCP not work after reset.
I set DHCP again at page 'Networ Setting'. It's worked.

Andrej


Administrator has disabled public posting
Albi90
useravatar
User Info

Re: Problem in GUI SVN 602

Hi Andrej

DHCP in the wizard should now be fixed.

Thanks
Jason


Administrator has disabled public posting

Board Info

Board Stats:   Total Users: 2587  Total Topics: 299  Total Polls: 1  Total Posts: 1727  Dormant
User Info:   Newest User :  user2553   Members Online: 0   Guests Online: 60
Online  There are no members online
Topic
New
Locked
Topic
New
Locked
Sticky
Active
New/Active
Sticky
Active
New/Active
New/Closed
New Sticky
Closed/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky Active Locked
Active/Sticky
Sticky/Locked
Sticky/Active/Locked