Discussion:
Question on WAP PUSH
Cariotoglou Mike
2010-09-21 14:36:48 UTC
Permalink
Hi all.

I need a little help with WAP PUSH (I think).
let me describe the use case:

we need to download a java application (packaged as a .jad file) to a
large number of phones.
in the past, when we did not have a kannel installation, we used to do
it this way:
we would give our mobile provider a list of phone numbers, and he would
send a special SMS (I think a WAP PUSH SMS), containing the URL
of our distribution server, which contained the application image.
upon receipt of this SMS, a human operator would open this message, as a
result of which, the phone would (after confirmation) proceed to
download and install the application.

we need to do same, but this time, we have changed our corporate mobile
operator, and the new one is reluctant to do this for us.
instead, they have provided us with a connection to their smsc, and they
ask us to send "wap Push" SMS ourselves.

I am not sure on how to do this with kannel. I have succesfully set up
the connection to the smsc (SMPP), and I can send messages just fine.
however, when it comes to sending WAP PUSH messages, I am clueless, and
the documentation is rather terse on this, and assumes you know what you
are doing, which I don't...

The operator told me that they support wap push and that I have to set
DCS to 245. period.

could somebody that has done this before, help me with this, please ?
Nikos Balkanas
2010-09-21 15:04:57 UTC
Permalink
Hi,

I have done some wap-push in my days, although not recently. There are 2
ways to about it:

1) wapbox. Advantage more options. Disadvantage more difficult.
2) smsbox. Advantage simple. Disadvantage can only push a URL to amobile
using standard settings.

(1) is detailed in UG. You need to to post a mime-encoded file which
consists of 2 xml parts: PAP and SI.
(2) You send a binary SMS with the URL with the sendsms interface. You need
special UDH headers, and wbxml encoded URL. If you search the archives you
will find a php script by Alex G who does just that.

BR,
Nikos
----- Original Message -----
From: "Cariotoglou Mike" <***@singular.gr>
To: <***@kannel.org>
Sent: Tuesday, September 21, 2010 5:36 PM
Subject: Question on WAP PUSH


Hi all.

I need a little help with WAP PUSH (I think).
let me describe the use case:

we need to download a java application (packaged as a .jad file) to a
large number of phones.
in the past, when we did not have a kannel installation, we used to do
it this way:
we would give our mobile provider a list of phone numbers, and he would
send a special SMS (I think a WAP PUSH SMS), containing the URL
of our distribution server, which contained the application image.
upon receipt of this SMS, a human operator would open this message, as a
result of which, the phone would (after confirmation) proceed to
download and install the application.

we need to do same, but this time, we have changed our corporate mobile
operator, and the new one is reluctant to do this for us.
instead, they have provided us with a connection to their smsc, and they
ask us to send "wap Push" SMS ourselves.

I am not sure on how to do this with kannel. I have succesfully set up
the connection to the smsc (SMPP), and I can send messages just fine.
however, when it comes to sending WAP PUSH messages, I am clueless, and
the documentation is rather terse on this, and assumes you know what you
are doing, which I don't...

The operator told me that they support wap push and that I have to set
DCS to 245. period.

could somebody that has done this before, help me with this, please ?
Nikos Balkanas
2010-09-21 15:23:13 UTC
Permalink
Post by Nikos Balkanas
and wbxml encoded URL.
Sorry, I was not clear on this. I mean, wbxml encoded content, which in this
case is the URL you are sending to the mobile.

BR,
Nikos
----- Original Message -----
From: "Nikos Balkanas" <***@gmail.com>
To: "Cariotoglou Mike" <***@singular.gr>; <***@kannel.org>
Sent: Tuesday, September 21, 2010 6:04 PM
Subject: Re: Question on WAP PUSH
Post by Nikos Balkanas
Hi,
I have done some wap-push in my days, although not recently. There are 2
1) wapbox. Advantage more options. Disadvantage more difficult.
2) smsbox. Advantage simple. Disadvantage can only push a URL to amobile
using standard settings.
(1) is detailed in UG. You need to to post a mime-encoded file which
consists of 2 xml parts: PAP and SI.
(2) You send a binary SMS with the URL with the sendsms interface. You
need special UDH headers, and wbxml encoded URL. If you search the
archives you will find a php script by Alex G who does just that.
BR,
Nikos
----- Original Message -----
Sent: Tuesday, September 21, 2010 5:36 PM
Subject: Question on WAP PUSH
Hi all.
I need a little help with WAP PUSH (I think).
we need to download a java application (packaged as a .jad file) to a
large number of phones.
in the past, when we did not have a kannel installation, we used to do
we would give our mobile provider a list of phone numbers, and he would
send a special SMS (I think a WAP PUSH SMS), containing the URL
of our distribution server, which contained the application image.
upon receipt of this SMS, a human operator would open this message, as a
result of which, the phone would (after confirmation) proceed to
download and install the application.
we need to do same, but this time, we have changed our corporate mobile
operator, and the new one is reluctant to do this for us.
instead, they have provided us with a connection to their smsc, and they
ask us to send "wap Push" SMS ourselves.
I am not sure on how to do this with kannel. I have succesfully set up
the connection to the smsc (SMPP), and I can send messages just fine.
however, when it comes to sending WAP PUSH messages, I am clueless, and
the documentation is rather terse on this, and assumes you know what you
are doing, which I don't...
The operator told me that they support wap push and that I have to set
DCS to 245. period.
could somebody that has done this before, help me with this, please ?
Cariotoglou Mike
2010-09-21 17:47:48 UTC
Permalink
ok, I will try (2) first. where does the DCS value specified by the smsc
(vodafone) come into play ? they said I had to use 245. where do I put
this ?
also, I found the php script you mentioned, and I am curious as to what
are all the magic numbers.
for example:

$fields[udh] = '%06%05%04%0B%84%23%F0';
$fields[text] = '%1B%06%01%AE%02%05%6A%00%45%C6%0C%03'.
hex_encode($fields['link'], '%').
'%00%01%03'.
hex_encode($fields['title'], '%').
'%00%01%01';

a lot of binary numbers here, do you know what they do, and whether they
are "standard", ie will they work with greek vodafone ?
-----Original Message-----
Sent: Tuesday, September 21, 2010 6:05 PM
Subject: Re: Question on WAP PUSH
Hi,
I have done some wap-push in my days, although not recently.
1) wapbox. Advantage more options. Disadvantage more difficult.
2) smsbox. Advantage simple. Disadvantage can only push a URL
to amobile using standard settings.
(1) is detailed in UG. You need to to post a mime-encoded
file which consists of 2 xml parts: PAP and SI.
(2) You send a binary SMS with the URL with the sendsms
interface. You need special UDH headers, and wbxml encoded
URL. If you search the archives you will find a php script by
Alex G who does just that.
BR,
Nikos
----- Original Message -----
Sent: Tuesday, September 21, 2010 5:36 PM
Subject: Question on WAP PUSH
Hi all.
I need a little help with WAP PUSH (I think).
we need to download a java application (packaged as a .jad file) to a
large number of phones.
in the past, when we did not have a kannel installation, we used to do
we would give our mobile provider a list of phone numbers,
and he would
send a special SMS (I think a WAP PUSH SMS), containing the URL
of our distribution server, which contained the application image.
upon receipt of this SMS, a human operator would open this
message, as a
result of which, the phone would (after confirmation) proceed to
download and install the application.
we need to do same, but this time, we have changed our
corporate mobile
operator, and the new one is reluctant to do this for us.
instead, they have provided us with a connection to their
smsc, and they
ask us to send "wap Push" SMS ourselves.
I am not sure on how to do this with kannel. I have succesfully set up
the connection to the smsc (SMPP), and I can send messages just fine.
however, when it comes to sending WAP PUSH messages, I am
clueless, and
the documentation is rather terse on this, and assumes you
know what you
are doing, which I don't...
The operator told me that they support wap push and that I have to set
DCS to 245. period.
could somebody that has done this before, help me with this, please ?
Nikos Balkanas
2010-09-21 18:39:24 UTC
Permalink
Hi,

Since you chose to go ahead with (2) the dcs value is specified same as in
regular sms. Remember this is binary SMS, so coding should be 1. The binary
characters you see is the text part (aka URL), wbxml (binary xml) encoded
for wap.

BR,
Nikos
----- Original Message -----
From: "Cariotoglou Mike" <***@singular.gr>
To: <***@kannel.org>
Sent: Tuesday, September 21, 2010 8:47 PM
Subject: RE: Question on WAP PUSH


ok, I will try (2) first. where does the DCS value specified by the smsc
(vodafone) come into play ? they said I had to use 245. where do I put
this ?
also, I found the php script you mentioned, and I am curious as to what
are all the magic numbers.
for example:

$fields[udh] = '%06%05%04%0B%84%23%F0';
$fields[text] = '%1B%06%01%AE%02%05%6A%00%45%C6%0C%03'.
hex_encode($fields['link'], '%').
'%00%01%03'.
hex_encode($fields['title'], '%').
'%00%01%01';

a lot of binary numbers here, do you know what they do, and whether they
are "standard", ie will they work with greek vodafone ?
-----Original Message-----
Sent: Tuesday, September 21, 2010 6:05 PM
Subject: Re: Question on WAP PUSH
Hi,
I have done some wap-push in my days, although not recently.
1) wapbox. Advantage more options. Disadvantage more difficult.
2) smsbox. Advantage simple. Disadvantage can only push a URL
to amobile using standard settings.
(1) is detailed in UG. You need to to post a mime-encoded
file which consists of 2 xml parts: PAP and SI.
(2) You send a binary SMS with the URL with the sendsms
interface. You need special UDH headers, and wbxml encoded
URL. If you search the archives you will find a php script by
Alex G who does just that.
BR,
Nikos
----- Original Message -----
Sent: Tuesday, September 21, 2010 5:36 PM
Subject: Question on WAP PUSH
Hi all.
I need a little help with WAP PUSH (I think).
we need to download a java application (packaged as a .jad file) to a
large number of phones.
in the past, when we did not have a kannel installation, we used to do
we would give our mobile provider a list of phone numbers,
and he would
send a special SMS (I think a WAP PUSH SMS), containing the URL
of our distribution server, which contained the application image.
upon receipt of this SMS, a human operator would open this
message, as a
result of which, the phone would (after confirmation) proceed to
download and install the application.
we need to do same, but this time, we have changed our
corporate mobile
operator, and the new one is reluctant to do this for us.
instead, they have provided us with a connection to their
smsc, and they
ask us to send "wap Push" SMS ourselves.
I am not sure on how to do this with kannel. I have succesfully set up
the connection to the smsc (SMPP), and I can send messages just fine.
however, when it comes to sending WAP PUSH messages, I am
clueless, and
the documentation is rather terse on this, and assumes you
know what you
are doing, which I don't...
The operator told me that they support wap push and that I have to set
DCS to 245. period.
could somebody that has done this before, help me with this, please ?
Juan Nin
2010-09-21 19:13:13 UTC
Permalink
Yes, they are standard and should work.
Here you can read a bit about them to understand it a bit more:

http://mobiforge.com/developing/story/binary-sms-sending-rich-content-devices-using-sms

The example provided on that article includes a bit more things than
Alex's version.
Post by Cariotoglou Mike
ok, I will try (2) first. where does the DCS value specified by the smsc
(vodafone) come into play ? they said I had to use 245. where do I put
this ?
also, I found the php script you mentioned, and I am curious as to what
are all the magic numbers.
$fields[udh]  = '%06%05%04%0B%84%23%F0';
   $fields[text] = '%1B%06%01%AE%02%05%6A%00%45%C6%0C%03'.
     hex_encode($fields['link'], '%').
     '%00%01%03'.
     hex_encode($fields['title'], '%').
     '%00%01%01';
a lot of binary numbers here, do you know what they do, and whether they
are "standard", ie will they work with greek vodafone ?
-----Original Message-----
Sent: Tuesday, September 21, 2010 6:05 PM
Subject: Re: Question on WAP PUSH
Hi,
I have done some wap-push in my days, although not recently.
1) wapbox. Advantage more options. Disadvantage more difficult.
2) smsbox. Advantage simple. Disadvantage can only push a URL
to amobile using standard settings.
(1) is detailed in UG. You need to to post a mime-encoded
file which consists of 2 xml parts: PAP and SI.
(2) You send a binary SMS with the URL with the sendsms
interface. You need special UDH headers, and wbxml encoded
URL. If you search the archives you will find a php script by
Alex G who does just that.
BR,
Nikos
----- Original Message -----
Sent: Tuesday, September 21, 2010 5:36 PM
Subject: Question on WAP PUSH
Hi all.
I need a little help with WAP PUSH (I think).
we need to download a java application (packaged as a .jad file) to a
large number of phones.
in the past, when we did not have a kannel installation, we used to do
we would give our mobile provider a list of phone numbers,
and he would
send a special SMS (I think a WAP PUSH SMS), containing the URL
of our distribution server, which contained the application image.
upon receipt of this SMS, a human operator would open this
message, as a
result of which, the phone would (after confirmation) proceed to
download and install the application.
we need to do same, but this time, we have changed our
corporate mobile
operator, and the new one is reluctant to do this for us.
instead, they have provided us with a connection to their
smsc, and they
ask us to send "wap Push" SMS ourselves.
I am not sure on how to do this with kannel. I have succesfully set up
the connection to the smsc (SMPP), and I can send messages just fine.
however, when it comes to sending WAP PUSH messages, I am
clueless, and
the documentation is rather terse on this, and assumes you
know what you
are doing, which I don't...
The operator told me that they support wap push and that I have to set
DCS to 245. period.
could somebody that has done this before, help me with this, please ?
Loading...