Chapter 5. Setting up a SMS Gateway
You can send either settings or bookmark, set CGI variable type accordingly. Default for this variable is
settings.
Here is an example XML document (this one contains CSD settings for logging in to a mobile service;
note that you must store DTD locally):
<?xml version="1.0"?>
<!DOCTYPE CHARACTERISTIC-LIST SYSTEM "file://gw/settings.dtd">
<CHARACTERISTIC-LIST>
<CHARACTERISTIC TYPE="ADDRESS">
<PARM NAME="BEARER" VALUE="GSM/CSD"/>
<PARM NAME="PROXY" VALUE="10.11.12.13"/>
<PARM NAME="PORT" VALUE="9201"/>
<PARM NAME="CSD_DIALSTRING" VALUE="+12345678"/>
<PARM NAME="PPP_AUTHTYPE" VALUE="PAP"/>
<PARM NAME="PPP_AUTHNAME" VALUE="yourusername"/>
<PARM NAME="PPP_AUTHSECRET" VALUE="yourauthsecret"/>
<PARM NAME="CSD_CALLTYPE" VALUE="ISDN"/>
<PARM NAME="CSD_CALLSPEED" VALUE="9600"/>
</CHARACTERISTIC>
<CHARACTERISTIC TYPE="URL"
VALUE="http://wap.company.com/"/>
<CHARACTERISTIC TYPE="NAME">
<PARM NAME="NAME" VALUE="Your WAP Company"/>
</CHARACTERISTIC>
</CHARACTERISTIC-LIST>
A bookmark document looks like this:
<?xml version="1.0"?>
<!DOCTYPE CHARACTERISTIC_LIST SYSTEM "file://gw/settings.dtd">
<CHARACTERISTIC-LIST>
<CHARACTERISTIC TYPE="BOOKMARK">
<PARM NAME="NAME" VALUE="WAP Company"/>
<PARM NAME="URL" VALUE="http://wap.company.com/"/>
</CHARACTERISTIC>
</CHARACTERISTIC-LIST>
Document type definition (DTD) for these documents is not available , from Internet, you must supply it
as a file. Kannel gw directory contains an example,
settings.dtd
.
Table 5-16. OTA CGI Variables
81