<tr onMouseOver="popUp(event,'phone_ipaddress')" onmouseout="popUp(event,'phone_ipaddress')">
<td colspan="3">Phone System IP Address:</td>
EOF
-echo "<td>$ipaddress</td></tr><td> </td><tr></tr>"
+echo "<td>"
+echo $ipaddress | sed -n 's/ /<br>/p'
+echo "</td>"
+
+# make nice tooltips for multiple ip interfaces on some x86 boxes
+ipaddress=`echo $ipaddress | sed -n 's/ / or /p'`
# use perl to construct list of IP phones for us
asterisk "-rx sip show peers" 2>/dev/null > sipshowpeers.txt
- perl ipphones.pl $ipaddress $more
+ perl ipphones.pl "$ipaddress" $more
cat <<EOF
</table>
cat /proc/cpuinfo | grep "CPU:.*ADSP" > /dev/null
if [ $? -eq 0 ]; then
- ipaddress=`echo $ipaddress | awk '{ print $1 }'`
+ ipaddress=`echo $ipaddress | awk '{ print $1 }'`
fi
# Construct the web page -------------------------------
<tr onMouseOver="popUp(event,'phone_ipaddress')" onmouseout="popUp(event,'phone_ipaddress')">
<td colspan="4">Phone System IP Address:</td>
EOF
-echo "<td>$ipaddress</td>"
+echo "<td>"
+echo $ipaddress | sed -n 's/ /<br>/p'
+echo "</td>"
cat <<EOF
</tr>
<tr><td> </td></tr>