Setting Up A Test Environment For Push Proxy Gateway; Creating Push Content And Control Document For Testing - Kannel WAP and SMS gateway User Manual

Open source wap and sms gateway
Table of Contents

Advertisement

Appendix C. Setting up a test environment for
Push Proxy Gateway
This appendix explains how to set a test environment for PPG. This contains a simulated SMSC, for
instance a http server simulation (this is used as example, because it is simplest) and a simulated push
initiator. Between them, there is the push proxy gateway to be tested. This means that you must configure
HTTP SMSC.

Creating push content and control document for testing

Here is an example of a push control document, which gives PPG instructions how to do the pushing.
<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP//EN"
<pap>
<push-message push-id="9fjeo39jf084@pi.com"
<address address-value="WAPPUSH=+358408676001/TYPE=PLMN@ppg.carrier.com"/>
<quality-of-service priority="low"
</push-message>
</pap>
Because the push content is sended to the phone over SMS, rigth value for
bearer-required
values alltogether, if you use a phone number as an address. Address value is international phone number
and it must start with plus. It is used here as an unique identifier, SMSC, or sendsms script must
transform it to an usable phone number.
Here is an example of Service Indication, a type of push content. Essentially, the phone displays, when it
receives this SI, the text "Want to test a fetch" and if the user wants, fetches the content located by URL
http://wap.iobox.fi
<?xml version="1.0"?>
<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN"
<si>
<indication href="http://wap.iobox.fi"
"http://www.wapforum.org/DTD/pap_1.0.dtd">
deliver-before-timestamp="2001-09-28T06:45:00Z"
deliver-after-timestamp="2001-02-28T06:45:00Z"
progress-notes-requested="false">
delivery-method="unconfirmed"
network-required="true"
network="GSM"
bearer-required="true"
bearer="SMS"/>
is true, for
network
.
"http://www.wapforum.org/DTD/si.dtd">
si-id="1@wiral.com"
action="signal-high"
created="1999-06-25T15:23:15Z"
GSM and for
SMS. However, you can omit these
bearer
and
network-required
98

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

1.3.1

Table of Contents