EOF
switch="odd"
local _result
if _result=$(mom_unicast_message_and_receive_reply \
circd get_all_states_circuit_message \
get_all_states_circuit_reply_message \
$circd_timeout)
then
local _varnames=$(echo "$_result" | extract_variable_names)
local $_varnames
eval "$_result"
local i j
for i in $(seq 1 $get_all_states_circuit_reply_message_circuit_n)
do
eval local circ_id=\$get_all_states_circuit_reply_message_circuit_${i}_id
eval local circ_name=\$get_all_states_circuit_reply_message_circuit_${i}_name
eval local circ_alias=\$get_all_states_circuit_reply_message_circuit_${i}_alias
eval local circ_type=\$get_all_states_circuit_reply_message_circuit_${i}_type
eval local circ_dev=\$get_all_states_circuit_reply_message_circuit_${i}_dev
eval local circ_class_n=\$get_all_states_circuit_reply_message_circuit_${i}_class_n
eval local circ_deps=\$get_all_states_circuit_reply_message_circuit_${i}_deps
eval local circ_state=\$get_all_states_circuit_reply_message_circuit_${i}_state
eval local circ_local_dialmode=\$get_all_states_circuit_reply_message_circuit_${i}_local_dialmode
eval local circ_effective_dialmode=\$get_all_states_circuit_reply_message_circuit_${i}_effective_dialmode
local circ_classes=
for j in $(seq 1 $circ_class_n)
do
eval local circ_class=\$get_all_states_circuit_reply_message_circuit_${i}_class_${j}
circ_classes="$circ_classes $circ_class"
done
FORM_id=$circ_id
echo ""
# change row-color
if [ "$switch" = "odd" ]
then
switch="even"
else
switch="odd"
fi
done
fi
echo " "
show_tab_footer
show_html_footer
}
#------------------------------------------------------------------------------
# Auswertung
#------------------------------------------------------------------------------
case $FORM_todo in
dial)
fli4lctrl dial $FORM_id
;;
hangup)
fli4lctrl hangup $FORM_id
;;
activate)
fli4lctrl up $FORM_id
;;
deactivate)
fli4lctrl down $FORM_id
;;
esac
case $FORM_mode_list in
auto)
fli4lctrl dialmode local $FORM_id auto
;;
manual)
fli4lctrl dialmode local $FORM_id manual
;;
off)
fli4lctrl dialmode local $FORM_id off
;;
esac
case $FORM_global_mode in
auto)
fli4lctrl dialmode global auto
;;
manual)
fli4lctrl dialmode global manual
;;
off)
fli4lctrl dialmode global off
;;
esac
control_globaldialmode
control_circuits