quirks). The shell script has been coded so that it runs OK on the
IP0X, which is upwards compatable to x86.
+You can customise Mini Asterisk by adding your own banner to in
+banner.html.
+
[[install]]
Installation
------------
Contributions
-------------
-I especially welcome sip.conf entries for your favourite ITSP (VOIP
+. I especially welcome sip.conf entries for your favourite ITSP (VOIP
service) to help populate the Provider field of the
link:mini/voiplines.sh.html[Voip Line Screen].
-Suggestions and patches for new features are also very welcome.
+. Suggestions and patches for new features are also very welcome.
+
+. Help making the web pages look nicer.
[[support]]
Support
fi
more=`echo "$QUERY_STRING" | grep -oe "more=[^&?]*" | sed -n "s/more=//p"`
-ipaddress=`ifconfig | sed -n 's/.*inet addr:\(.*\) Bcast.*/\1/p' | head -n 1`
+
+# Build list of interface IPs based on what sort of machine we are
+# running on. For IP0X we just print the IP of the first interface.
+# For other machines the situation is a bit more complex so we print
+# all of them. I figure anyone with multiple interfaces will know
+# enough about what they are doing to figure out the right one to use.
+
+ipaddress=`ifconfig | sed -n 's/.*inet addr:\(.*\) Bcast.*/\1/p'`
+
+cat /proc/cpuinfo | grep "CPU:.*ADSP" > /dev/null
+if [ $? -eq 0 ]; then
+ ipaddress=`echo $ipaddress | awk '{ print $1 }'`
+fi
# Construct the web page -------------------------------
fi
fi
-ipaddress=`ifconfig | sed -n 's/.*inet addr:\(.*\) Bcast.*/\1/p' | head -n 1`
+# Build list of interface IPs based on what sort of machine we are
+# running on. For IP0X we just print the IP of the first interface.
+# For other machines the situation is a bit more complex so we print
+# all of them. I figure anyone with multiple interfaces will know
+# enough about what they are doing to figure out the right one to use.
+
+ipaddress=`ifconfig | sed -n 's/.*inet addr:\(.*\) Bcast.*/\1/p'`
+
+cat /proc/cpuinfo | grep "CPU:.*ADSP" > /dev/null
+if [ $? -eq 0 ]; then
+ ipaddress=`echo $ipaddress | awk '{ print $1 }'`
+fi
# Construct the web page -------------------------------
print "hosts[\'$_\'] = \'$host{$_}\';\n";
print "users[\'$_\'] = \'$user{$_}\';\n";
print "passwords[\'$_\'] = \'$pass{$_}\';\n";
- print "comments[\'$_\'] = \"$comment{$_}\";\n";
+ print "comments[\'$_\'] = \'$comment{$_}\';\n";
}
print "</script>\n";
;allow=ulaw,alaw
;qualify=yes
-;[user] ; "OEG" mini-asterisk do not remove this comment
-;; OEG are a South Australian ITSP
-;host=voip.oeg.com.au
-;secret=pass
-;username=your user number
-;fromdomain=voip.oeg.com.au
-;fromuser=your user number
-;insecure=port,invite
-;type=friend
-;disallow=all
-;allow=ulaw,alaw
-;dtmfmod=rfc2833
-;qualify=yes
-;canreinvite=no
+;[user] ; "Jazmin" mini-asterisk do not remove this comment
+;; <a href="http://www.jazmin.com.au/">Jazmin</a> are a South Australian ITSP
+;host=sip.jazmin.net.au
+;secret=<Password>
+;username=<username>
+;fromdomain=sip.jazmin.net.au
+;fromuser=<username>
+;insecure=port,invite
+;type=friend
+;disallow=all
+;allow=ulaw
+;allow=alaw
+;dtmfmod=rfc2833
+;qualify=yes
+;canreinvite=no
;nat=yes
-;context=default