Ah ! Joy...
Kyriacos Sakkas wrote:
Hi Again,
The sample below is missing contentype for the rights XML part. I
have added that and now Kannel parses OK, but as yet no success on the
phone.
Kyriacos
Kyriacos Sakkas wrote:
Hi All,
I am trying to deliver the rights for a DRM protected file, and from
what I can gather the XML in the .dr file needs to be pushed directly
(not normal wap push with url) to the phone.
The best I have been able to come up with is (Via PPG):
POST /wappush HTTP/1.1
Host: ******
X-Kannel-SMSC: ****
X-Kannel-DLR-Mask: 31
X-Kannel-Smsbox-Id: ****
X-Kannel-From: ****
X-Kannel-DLR-Url:
http://*****/ppg/results.php?smsc-id=%i&status=%d&answer=%A&to=%P&from=%p&ts=%t&o=%o&I=%I
Content-Type: multipart/related; boundary=multipart-boundary;
type="application/xml"
Content-Length: 1220
--multipart-boundary
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>
<push-message push-id="330304">
<address address-value="WAPPUSH=+*******/[EMAIL PROTECTED]"/>
<quality-of-service delivery-method="unconfirmed" network="GSM"
bearer="SMS"/></push-message>
</pap>
--multipart-boundary
application/vnd.oma.drm.rights+xml
<o-ex:rights
xmlns:o-ex="http://odrl.net/1.1/ODRL-EX"
xmlns:o-dd="http://odrl.net/1.1/ODRL-DD"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#/"
<o-ex:context>
<o-dd:version>1.0</o-dd:version>
</o-ex:context>
<o-ex:agreement>
<o-ex:asset>
<o-ex:context>
<o-dd:uid>cid:song20080403151338-2434513837@domain</o-dd:uid>
</o-ex:context>
<ds:KeyInfo>
<ds:KeyValue>erjSJyy7/4vy7TYCb6eh7Q==</ds:KeyValue>
</ds:KeyInfo>
</o-ex:asset>
<o-ex:permission>
<o-dd:play>
<o-ex:constraint>
<o-dd:datetime>
<o-dd:start>2008-04-03T14:43:19</o-dd:start>
<o-dd:end>2008-04-03T16:20:19</o-dd:end>
</o-dd:datetime>
</o-ex:constraint>
</o-dd:play>
</o-ex:permission>
</o-ex:agreement>
</o-ex:rights>
--multipart-boundary--
HTTP/1.1 202 Accepted
Server: Kannel/cvs
Content-Length: 253
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>
<badmessage-response code="2000" desc="Not understood due to
malformed syntax" bad-message-fragment="">
</badmessage-response>
</pap>
Any ideas? I can handle UDH headers and encoded strings if someone
knows how to send this that way.
Thanks,
Kyriacos Sakkas
--
Kyriacos Sakkas
Development Team
Netsmart
Tel: + 357 22 452565
Fax: + 357 22 452566
Email: [EMAIL PROTECTED]
http://www.netsmart.com.cy
Taking Business to a New Level!
** Confidentiality Notice: The information contained in this email
message may be privileged, confidential and protected from disclosure.
If you are not the intended recipient, any dissemination, distribution,
or copying of this email message is strictly prohibited.
If you think that you have received this email message in error, please
email the sender at [EMAIL PROTECTED] **