Snom 100 v1.9a User Manual page 78

V1.9a
Table of Contents

Advertisement

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
78

Advertisement

Table of Contents
loading

This manual is also suitable for:

100

Table of Contents