Hello to all Kannel users.

I have configured Kannel PPG and tested Wap-push successfully.
I'm waiting for GSM modem and meantime I'm testing it with FakeSMSC.

SI and PAP are valid according to test_si and test_pap programs.
test_ppg runs just fine, and my fakesmsc client recieves 1 SMS message in
UDF format.
But, when I send HTTP response to my PPG with same content as test_ppg does,
first I recieve instant HTTP response from PPG:

[0] => HTTP/1.1 202 Accepted
[1] => Server: Kannel/1.4.1
[2] => Content-Length: 419
[3] => Content-Type: application/xml
[4] =>
[5] => <?xml version="1.0"?><!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 1.0//EN"
"http://www.wapforum.org/DTD/pap_1.0.dtd";><pap><push-response push-id="
[EMAIL PROTECTED]" sender-name="node.server.com; WAP/1.3 (Kannel/1.4.1)"
reply-time="2007-02-20T08:56:46Z"
sender-address="/cgi-bin/wappush"><response-result code ="1001" desc="The
request has been accepted for
processing"></response-result></push-response></pap>

And so far it's great, message has been accepted by the gateway and my
fakesmsc client recieves same message as in test_ppg case.

BUT, connection doesn't terminate, and after some time (approx 60-70 sec)
there is an another message (result notification, I suppose):

[6] => HTTP/1.1 400 Bad Request
[7] => Server: Kannel/1.4.1
[8] => Content-Length: 0
[9] => Connection: close

So I want to know - why PI recieve Bad Request from Kannel?
Will Kannel actually send Wap-pushes with GSM modem instead fake SMSC?
In this example, SMS is not sent to mobile device, but I think that fakesmsc
should send some acknowledgement message
to bearerbox/wapbox that message is recieved by mobile station, so in next
step, PPG should send affirmative response to PI.

Does anyone knows why PPG sends "HTTP/1.1 400 Bad Request"?
I just want to make sure that Kannel is configured properly...

These are my Wap-push documents:
SI document:

<?xml version="1.0"?>
<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN"
"http://www.wapforum.org/DTD/si.dtd";>
<si>
<indication href="
http://wap.mp3masher.com/download.wml?hash=12345678901234567890123456789012";

si-id="123456">
Link to download MP3 ringtone.
</indication>.
</si>

PAP document:

<?xml version="1.0" ?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP//EN"
"http://www.wapforum.org/DTD/pap_1.0.dtd";>
<pap>
<push-message push-id="[EMAIL PROTECTED]">
<address address-value="WAPPUSH=+123456789012/[EMAIL PROTECTED]" />
<quality-of-service
priority="medium"
delivery-method="unconfirmed" />
</push-message>
</pap>

I'm not attaching conf file because I suppose it's ok - test_ppg works.

Thank you for your help,
Dejan Trajkovic

Reply via email to