Thanks to everyone who has replied so far!

Just to clarify some points. The files that I'm using are:

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

---mms.txt---
X-MMS-Message-Type: m-notification-ind
X-MMS-Transaction-ID: 125
X-MMS-MMS-Version: 1.0
X-MMS-Message-Class: personal
X-MMS-Message-Size: 100
X-MMS-Expiry: 256; type=relative
X-MMS-Content-Location: http://styx.ents24.com/test.php3
Subject: hello
---mms.txt---

Executing test_ppg thus:
./test_ppg http://localhost:13007/wappush?username=****&password=**** -a
mms -c mms mms.txt pap.txt

The pap file is one that I have successfully used to send si/sl documents to
a phone. In mms.txt I have used not only X-MMS-MMS-Version, but also
X-MMS-Version (there seems to be some confusion about that).

The phone that I am trying to send this to is an Sony Ericsson T68i, through
an HTTP SMS gateway that supports UDH.

If I try to send this message, test_ppg comes back with a "bad message
response code=2000" which seems to be related to the Content-Location line.
This is because if that is removed then the message goes through (response
code 1001) and a message is sent to the HTTP SMS gateway. Of course this
breaks the MMS spec. and no message is actually recieved on the phone
(probably should say indicated as recieved). I have also tried replacing the
hard coded message built in to test_ppg with these files, plus the obvious
seperators and:

Content-Type: application/vnd.wap.messsage

For the MMS type. This seems to work, I get another 1001 response code, but
still no MMS notification at the phone. Any ideas?

Thanks,

Charles


Reply via email to