Hi,

if you are constructing WAP Push itself, you should send it to the
sendsms-port (defaults to 13013) instead of ppg-port (defaults to
13003).

PPG accepts XML document via HTTP POST in PAP format.

On 1/10/06, M Amedeo Alaimo <[EMAIL PROTECTED]> wrote:
> Our provider does not want us to send them multipart wap pushes.
> This is what we send them UDH - WTP Payload and Headers - and A WB-XML
> Binary SI.
>
> This is what I am doing right now
>
> I am sending this as a post to my PPG in kannel
>
> "dlr-mask=31&dlr-url=http%3A%2F%2F127.0.0.1%3A80%2Fkannel%2Fdlr%2F%3FMSN%3D%25p%26TO%3D%25P%26
> time%3D%25t%26message%3D%25a%26udh%3D%25u%26smsc%3D%25i%26coding%3D%25c%26smsc-id%3D%25I
> %3A%3A%25i%26smscReply%3D%25A%26billing%3D%25B%26account%3D%25o%26serviceName%3D%25n%26
> dlr-type%3D%25d&to=5712657448&from=108019&dlr-mask=31&udh=%06%05%04%0B%84%23%F0&
> text=%40%06%04%01%AE%81%04%02%05%6A%00%45%C6%0b%03
> http://[EMAIL PROTECTED]
> %00%08%0A%C3%07%20%01%10%21%20%02%23%10%C3%04%20%02%06%30%01%03yeah%00%01%01"
>
> My headers are as follows
> authorization  => "Basic Zm9vOmJhcg==\n",
> "content-type" => "application/xml",
>
> Now I know that the content type is inccorect.  I obtained the encoded xml
> from the sendsms.php in the contrib dir of the cvs version of
> gateway.
>
> The message mayb be wrong, but for now wapbox tells me this
> <?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="application/xml"></badmessage-response></pap>
> AN2006-01-10 12:54:33 [27691] [14] WARNING: PPG: headers_acceptable: got
> unacceptable push headers
> 2006-01-10 12:54:33 [27691] [14] WARNING: PPG: Unparsable push headers, the
> request unacceptable
> 2006-01-10 12:54:33 [27691] [14] DEBUG: PPG: send_bad_message_response:
> telling pi
>
>
> Thanks!
>
>
>
> --
> M Amedeo Alaimo
>


--
Dziugas

Reply via email to