But if you *do* use ppg, you do not need to do all bit stuff.
In addition, ppg is tested with quite many phone types ; 
using it with all kind of phones will result with an universal si
tokenisation.

Aarno

On 7.6.2005, at 15.23, Christian Vandrei wrote:

Hi Alejandro,

in fact you don't really need to use a PPG. Looking through some of the examples that came with Kannel it's also possible to send Push-SI directly through the sendsms-Interface.
The text value can be filled with the following Java-Code:

// wbxml contains the wap push service indication
        String wbxml  = "%01"; //Transaction ID
               wbxml += "%06"; // PDU Type (push)
               wbxml += "%04"; // Headers Length (content-type + headers)
               wbxml += "%03"; // Length of content type
               wbxml += "%AE"; // Content-Type: application/vnd.wap.sic
               wbxml += "%81"; // Charset
               wbxml += "%EA"; // UTF-8
        // End Headers
       
        // see si_binary_output
               wbxml += "%02";  // Version number (wbxml_version)
               wbxml += "%05";  // Unknown Public Identifier (si_public_id)
               wbxml += "%6A";  // charset= (sibxml->charset)
               wbxml += "%00";  // String table length

               wbxml += "%45"; // <si>
                 wbxml += "%C6"; // <indication...
                   wbxml += "%0b" + "%03" + serviceURL + "%00";    // href="">                   wbxml += "%11" + "%03" + Integer.toString((int) (Math.random()* 1000000000)) + "@foo" + "%00";    // si-id=
                   wbxml += "%08"; // action=""
                   //wbxml += "%0A" . "%C3%07%20%01%10%21%20%02%23"; // created=
                   //wbxml += "%10" . "%C3%04%20%02%06%30"; // valid=
                   wbxml += "%01"; // end indication params 
                   wbxml += "%03"; // begin URL
                   try {
                       wbxml += URLEncoder.encode(infoPush, "UTF-8"); // URL SI points to
                   }
                   catch (Exception e) {
                       System.err.print("Error occured!!!");
                   }
                   wbxml += "%00"; // end URL
                 wbxml += "%01"; // </indication>
               wbxml += "%01"; // </si>

Of course you'd have to set the UDH manually. The value herfore is (also in Java)
String udh = "%06%05%04%0B%84%23%F0"


All the upper code is a simple translation from PHP to Java. The source is the example script that with Kannel. Further that script contains more encoding-types like logos, vcards and so on. You really should take a look at it.

By the way, here's the good stuff about the above encoding. In most cases you might be able to send a single Push-SI with only one SMS (that's because the creation date is not set and caused no problems for me yet).


Ciao,
Christian.

Alejandro J. Ramírez wrote:

 

Hello All!!

 

            I’ve been trying lately to use the PPG, I’ve had luck with ./test_ppg and using the xmls. Now.. how can I use the binary from the result of ./test_si with the test_ppg url??

 

I use the 8080:/cgi-bin/wap-push.cgi script…

 

Can someone give me an example please?

 

Thank you!

 

 

Alejandro Ramírez


-- 
Christian Vandrei
Mobi-tech GmbH
Glogauer Str. 6
10999 Berlin Kreuzberg
Germany

phone +49 (0)030 616 757 30
fax   +49 (0)030 616 757 34

[EMAIL PROTECTED]
www.mobi-tech.com

Hol dir Dein Stadtmagazin aufs Handy!
Schicke Tip, Meier, Lift oder Kreuzer als SMS an die 81819.
Dann erhältst Du den Startlink auf Dein Handy geschickt!
Geht auch direkt im Portal
bei Vodafone unter Fun/Freizeit
bei I-Mode unter Stadtmagazine
bei O² unter Citymagazines
und demnächst bei T-Mobile unter Unterwegs.


Reply via email to