Juan, some Motorola's come with "browser messages" off, that is why the phone seems not to receive the WAP you should configure the phone for allowing the "browser messages"

regard.

On Jan 16, 2006, at 12:06 PM, Juan Nin wrote:

Well I could make it work now!!!  :)

Actually I knew about the PAP, SI, etc, since I already worked some time ago with it. I used the PPG server of a carrier and I had to POST all that

But I was having problem on sending it to Kannel...

Seems I rested this weekend, and today I found that I had a ppg- deny-ip that was causing me all my troubles!!!! :P

I have just been able to send wap push via PPG!!!  =D

I'm going to make some more tests, and when finished I'll send a mini HOWTO to the list.

Now that I got what my error was, I guess the docs are not that bad... Anyway maybe the part about posting the XML could be clarified a bit more....

As soon as I can I'll post to the list what I did, plus some PHP code for the WAP Push sending

As a note, until now I'm using the method of sending Wap Push via send-sms, using the code posted by Alejandro Guerrieri some time ago on the list (there was also a similar Java version posted).

But with that method I'm having problems with some Motorola's, for example V3 and V300 which don't receive the Wap Push. I've just done tests via PPG to V3 and with it, it works fine! :)

regards,

Juan


Aarno Syvänen wrote:
You got me ;) Yes, but tell what is unclear in the documentation, this will help. I think real problem her is test_ppg documentation. Even though this is actually just a test program, people will use is at least as a skeleton for a push initiator (PI).
Am I right here ?
To start with, PI speaks to PPG using a separate protocol, called PAP. So you must create PAP document (MIME multipart) and send it to PPG. However, Kannel sources contain an example PI, at yes/test_ppg.c. A the name implies, it is originally a test
program, but it is a working  PI, as it must be for testing Kannel
Test_ppg will combine to xml documents, push control document and push content document into a proper multipart PAP. Kannel sources contains examples of both. There is control document for sending over GSM network, test/ smstestppg.txt:
<?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]"
  deliver-before-timestamp="2005-11-15T06:45:00Z"
  deliver-after-timestamp="2001-02-28T06:45:00Z"
  progress-notes-requested="false">
<address address-value="WAPPUSH=+41796512294/ [EMAIL PROTECTED]">
    </address>
    <quality-of-service
    priority="low"
    delivery-method="unconfirmed"
    network-required="true"
    network="gsm"
    bearer-required="true"
    bearer="sms">
    </quality-of-service>
  </push-message>
</pap>
As you see, xml document is quite readable. Most important field here the address, which is a hone number of international format. Note that / [EMAIL PROTECTED] is a part of address meaning type is plmn, as defined by ppg.gni.ch. Latter is used for user defined
types.
There another example push control file, iptestppg.txt. This can be used with simulators,
it uses ip as an address.
Content can be SI, SL, or MMS. Recommended plain wap push content is SI, because all phones to not accept SL. Kannel sources again contain example SI document, tst/si,txt:
<?xml version="1.0"?>
<!DOCTYPE si PUBLIC "-//WAPFORUM//DTD SI 1.0//EN"
"http://www.wapforum.org/DTD/si.dtd";>
<si>
    <indication href="http://www.gni.ch";
        si-id="[EMAIL PROTECTED]"
        action="signal-high"
        created="1999-06-25T15:23:15Z"
        si-expires="2006-06-30T00:00:00Z">
            You have 4 new emails
    </indication>
</si>
The most important thing here is href field, which tells to the
phone what url it should load. Notice that with si there are
follwing known issues:
a) obviously, your phone must accept pushes. This is not a default, in many cases,
    you must configure the phone.
b) si-id must be diffrent for different pushes
c) action signal-high quarantess that every phone will notify the push immediately.
d) and remember to set expiry filed properly ;)
After test_ppg has created the PAP document, it POSTs it to PPG (notice: PI really does POST, not GET. Lack of body generates an error message). Pi would add mandatory multipart headers, and some optional ones (more about these later). Basic way to start test_ppg is following (using exmaple files mentioned earlier):
test_ppg [options] push_url si.txt smstestppg.txt
(You can get this information by typing .just test_ppg)
With options you can add various headers:
-c: The content type, if not si
-a: This is push client application in the phone that handles the content. You do
not need to set it, if you are doing plain push.
-b  set username pass word headers
-e Transfer encoding (base64 is currently supported)
-m value: set header X-Kannel-DLR-Mask
-u value: set header X-Kannel-DLR-Url
with option -S, you can add any header you want
Aarno
On 12 Jan 2006, at 17:59, Juan Nin wrote:
Actually there's no doubt there's a problem with PPG...

PPG is a topic that comes to the list very often, and documentation about it is not clear enough...

I don't see also much difference between that tutorial from the IBM site and the Kannel docs... they both explain more or less the same things, and both explain a bit of the use of the test_ppg program...

But I don't want to use the test_ppg program, and I don't think most of us want to use it either on their systems...

I just want to know which is the way to invoke the PPG server to send the control and SI, and that seems to not be documented at all...

Some time ago I used the PPG server of a carrier, and I sended a POST request with the control part and the SI, I suppose with this it must be similar, but there's no place where this is described...

And the configuration of PPG is also not very clear, and the huge quantity of mails about this topic makes it clear it's not well domcumented...

There's good info on how to use sendsms, the variables you can use with it, some examples, and many examples also on the mailing-list, but almost nothing on PPG...

I haven't seen any mail on the mailing-list in the more or less 2 years that I'm subscribed to the list that clarifies this mistery...

Shouldn't then documentation about this topic be clarified?

I don't want anyone to send me a PHP script that does everything for me, I just want to know how this must be configured and done... and when all this is clarified I will be very glad to post here a PHP script for sending Wap Pushes with PPG so everyone can benefit from it.

Is there anyone who knows how this works and that is willing to explain a bit of this mistery?

I think it would be something very positive for the Kannel community, and we're going to save precious time on future questions about it, since it's a recurrent topic on the mailing- list, which has never been solved AFAIK...

Thanks in advance,

Juan


[EMAIL PROTECTED] wrote:

Try this
http://www-128.ibm.com/developerworks/wireless/library/wi- proxy.html?ca=dgr-lnxw06PushProxy
-----Original Message-----
From: [EMAIL PROTECTED] on behalf of Rodrigo Cremaschi
Sent: Tue 12/6/2005 2:13 PM
To: cool planet
Cc: Kannel
Subject: Re: could you please help me guys ............!!!!! ( PPG - Kannel )
 Hi Cool,
    We all use Kannel (that is why we are here), we all are working
people, and this list is a "best effort" one. Declaring a subject as
"URGENT", from my point of view, will not help you, as we all have
"urgent" matters to attend every day.
Kannel lists (users and devel) do answer to simple questions, if you try to answer them beforehand and you can´t get to a result. The
user guide is a good start point, maybe it´s not as simple to
understand as other guides, but try to read it more than one time.
Follow the steps needed to connect, test and test again your
configuration file. Check and double check your logs. They are a very
valuable tool to pinpoint your errors (or Kannel bugs).
You have posted questions about PPG before, but as I see, you have not yet even tryed to give the firsts steps in testing it. So please, grab the guide, type some lines, crash Kannel a few times, and IF you
find you have made all you are capable of, come back to the list,
provide log excerpts, configuration files, etc. and we will be glad to
help you.
   Have a nice day.
Rodrigo.
On 12/5/05, cool planet <[EMAIL PROTECTED]> wrote:

Dear friends ,

I'm a kannel user . Two years back i have successfully used kannel
smsgateway for our sms projects. Actually it was success. So that, i wanted to thaking you all for that great works done via the kannel

but today , i have a nother requrement to have a push proxy gateway . bfore i started that , i have read the faqs and kannel user's guide. after that i
started to configure .

But it wasnt success , i thought that user guide isn't enough to fiish the
ppg easily.

then after i decided to ask help from mailing list. so have posted more and more questions / requestions / ..........actually i asked helps.

some are reply me with very very short answers , extremely got confused.

so , please tell me ............to implement kannel as a push proxy gateway what shall i do ? how can i get a help ? who / which blogs might be answer
my questions ?

doesnt kannel answer for simple questions which are not listed in the
kannel  mailing list  ?

but , i can remember in early days , kannel users / experts are really help
full . they were helped from the begining to end.

please , very urgently i wanted to implement kannel ppg , ? can i have any
body's yahoo chat id ? then i can get help on line .

Thanx in advance,
Kane.




________________________________
Yahoo! Personals
Let fate take it's course directly to your email.
See who's waiting for you Yahoo! Personals









Reply via email to