Chapter 7. Setting up Push Proxy Gateway
smsc = http
smsc-id = HTTP
port = 10000
system-type = kannel
smsc-username = foo
smsc-password = bar
no-sender = true
no-coding = true
send-url = http://host:port/path
To set up smsbox. This group will eventually disappear, use here only necessary configuration variables.
group = smsbox
bearerbox-host = localhost
Kannel sources contain a sample push configuration file
gw/pushkannel.conf
.
Running a push proxy gateway
Push proxy gateway is started by simply typing, using separate windows:
gw/bearerbox [conffile]
gw/wapbox [conffile]
You can, of course, use more complex command line options.
An example using HTTP SMSC
An easy way to test and implement push services is to put ppg in the front of an existing sendsms service
capable to send SMS data messages and to to understand HTTP requests generated by HTTP SMSC.
(See next chapter.) Then you need only configure SMSC configuration send-url to point to sendsms
service.
An example push (tokenised SI) document
HTTP SMSC generates a HTTP get request when it get a sendmessage event, expressed in unicode. The
content gateway, or the sendsms service must, of course, understand this URL. So here is an example, cgi
variable text contains the url escaped form of a SI document. It is usable for testing prototype phones.
http://matrix:8080/phplib/kannelgw.php?user=*deleted*&
pass=*deleted*=to=%2B358408676001&text=3D%02%06%17%AE%96localhost
%3A8080%00%AF%80%8D%CF%B4%80%02%05j%00E%C6%0C%03wap.iobox.fi%00%11%03
1%40wiral.com%00%07%0A%C3%07%19%99%06%25%15%23%15%10%C3%04+%02%060%01
%to+test+a+fetch%3F%00%01%01&udh=%06%05%04%0B%84%23%F0
88