PPG - CIMD2 - DLR

"Andrikopoulos Dimitrios" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hello,
 
  I eventually managed to configure Kannel as a Push Proxy Gateway
(PPG), interconnect it
with a NOKIA SMS-C (which understands CIMD2), and a MySQL database for
storing the SMS
level delivery reports (DLR). I also have to thank Stipe Tolj for his
valuable help. Please find
attached the configuration file and a PAP/HTTP request.
 
  Note that if you define the "default-dlr-url" attribute of the group
"ppg" in the Kannel's
configuration file, there is no need to define the "X-Kannel-DLR-Url"
header in the PAP/HTTP
request. However, if you neither define a "X-Kannel-DLR-Url" header, nor
the "default-dlr-url"
attribute, Kannel will not request a DLR from SMS-C. You should also
note the value of the header
"X-Kannel-DLR-Mask": I've only got DLR for specific values of that
header. However, I didn't deal
with what the reason was: either Kannel didn't request DLR, or the SMS-C
didn't send DLR.
 
  Finally, I have two issues:
 
    1. I send Unicode messages, so Kannel sends 3 CIMD2 messages to
SMS-C for each PAP
        message. When I send a PAP message to Kannel, Kannel inserts a
record in database,
        as soon as it sends the first CIMD2 message. On the other hand,
I receive at the DLR-URL
        (defined with either "X-Kannel-DLR-Url", or "default-dlr-url") a
HTTP request with
        status=8.
 
        When I send another PAP message, Kannel does the same, but now I
receive an additional
        HTTP request at the DLR-URL with status=1, and the corresponding
record in the database
        is removed. This procedure is repeated for PAP message by PAP
message.
 
    2. Does anyone know what is the maximum number of recipients that
Kannel supports in case
        of a PAP message destined to multiple recipients?
 
Dimitris
wapkannel.conf (application/octet-stream, 1.4 KB)
group = core
admin-port = 13000
smsbox-port = 13001
wapbox-port = 13002
admin-password = bar
wdp-interface-name = "*"
log-file = "/tmp/bearerbox.log"
log-level = 0
dlr-storage = mysql

group = wapbox
bearerbox-host = 172.16.15.30
log-file = "/tmp/wapbox.log"
log-level = 0
syslog-level = none
access-log = "/tmp/wapaccess.log"

group = smsbox
smsbox-id = dlrbox
bearerbox-host = 172.16.15.30
log-file = "/tmp/smsbox.log"
log-level = 0
access-log = "/tmp/smsbox-access.log"


# SMSC Nokia CIMD2
group = smsc
smsc-id = test
smsc = cimd2
host = 172.25.38.20
port = 9971
smsc-username = wap
smsc-password = wap1
throughput = 10
keepalive = 60
no-dlr = 0

group = ppg
ppg-url = /push/miep_normal
ppg-port = 7080
ppg-allow-ip = 172.17.60.28
concurrent-pushes = 100
trusted-pi = true
service-name = ppg
ppg-smsbox-id = dlrbox
default-dlr-url = "http://172.16.15.30/dls_notifications/notify1.php?smsc-id=%i&status=%d&answer=%A&to=%P&from=%p&ts=%t"

group = wap-push-user
wap-push-user = dimitris
ppg-username = dandri
ppg-password = el91146
# dlr-url = http://172.16.15.30/dls_notifications/notify.php

group = mysql-connection
id = mydlr
host = 172.17.60.28
username = dlr
password = el91146
database = dlr
max-connections = 10

group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc
pap_http.txt (text/plain, 1.3 KB)
POST http://172.16.15.30:7080/push/miep_normal
User-Agent: wap_push/1.0
Content-Type: multipart/related; boundary=PMasdfglkjhqwert; type="application/xml"
X-Kannel-DLR-Mask: 31

--PMasdfglkjhqwert
Content-Type: application/xml

<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN" "http://www.wapforum.org/DTD/pap_1.0.dtd">
<pap product-name="MyPushInitiator">
	<push-message push-id="PerlScript_PI/ffac461935b91fc2fbc51f2b6cc3dde7"  source-reference="PerlScript_PI" ppg-notify-requested-to="http://172.17.60.28" progress-notes-requested="false">
		<address address-value="wappush=+306973983868/[email protected]"/>
		<quality-of-service delivery-method="unconfirmed" network="GSM" network-required="true" bearer="SMS" bearer-required="true" priority="low"/>
	</push-message>
</pap>
--PMasdfglkjhqwert
Content-Type: text/vnd.wap.si

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN" "http://www.wapforum.org/DTD/SI.dtd">
<si>
	<indication href="http://wap.mycosmos.gr/CasinoRoyale.asp" si-id="PerlScript_SI/ffac461935b91fc2fbc51f2b6cc3dde7" created="2006-12-06T16:48:39Z" si-expires="2006-12-09T16:48:39Z" action="signal-high">This is a Kannel test!</indication>
</si>

--PMasdfglkjhqwert--
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.