78
The <pre> tags indicates that the content in this file is
not really html, so that displaying this file with a web
browser does not cause confusion. Additionally, it al-
lows the file to pass through any firewall.
4)
To set up a new customer account, com88 has
written a small html generation program that
looks like this:
#!/bin/bash
# usage: mac name email-name tel-nr
mac=$1
name=$2
email=$3
tel=$4
file=/usr/local/httpd/htdocs/snom100-$mac.htm
echo <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML
4.0 Transitional//EN"> >$file
echo <html> >>$file
echo <pre> >>$file
echo sip_realname: $name >>$file
echo sip_user1: $email >>$file
echo sip_user2: $tel >>$file
echo sip_host1: com88.com >>$file
echo sip_host2: com88.com >>$file
echo sip_q1!: 1.0 >>$file
echo sip_action1: proxy >>$file
echo sip_q2!: 1.0 >>$file
echo sip_action2: proxy >>$file
echo </pre> >>$file
echo </html> >>$file
Typical output looks like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<html>
<pre>
sip_realname1!: Fred Flintstone
sip_user1: fred.flintstone
sip_user2: 9728318632
Summary of Contents for 100
Page 1: ...snom 100 User Manual v1 9a ...
Page 2: ......
Page 7: ...7 Installation ...
Page 19: ...19 Basic Functions ...
Page 29: ...29 Advanced Functions ...
Page 36: ...36 Call Register ...
Page 47: ...47 Settings ...
Page 62: ...62 Administration ...
Page 85: ...85 Appendix ...
Page 90: ...90 Version Software 35 Volume Adjusting 26 32 Windows 2000 80 ...
Page 91: ......