I just
call it a hack because it is not standard Kannel functionality... Why? Maybe by
design (privacy reasons) or other... Can somebody with more knowledge shine a
light on this?
The
hack should really go to the devel mailing list... But in this case, it does not
really matter, because I don't know the exact answer.
I
suspect it should go somewhere near to where the function unpack_new_headers()
is called... Here the http headers for a new request are (should be)
built.
I
cannot find so soon where that might be (by doing a quick grep)... I never
played around so much with the wap related sources of
Kannel.
--
Rene...
ok, so the hacking for the IPV4 address is...? ;)
Why should this be a hack anyway?
----- Original Message -----
Sent: Friday, December 12, 2003 12:20
AM
Subject: RE: Wap Push
True... my bad...
I
was testing with a wap browser in http mode...
Truth is now: I don't know the answer. What I recall from previous
times this question was asked, that there is no such
header.
With a little kannel-hacking, the IPv4 address can easily be made
public to your script.
MSISDN numbers are harder to get and trickier.
Rene Kluwen
Chimit
Thanks for the reply, but I don't get this
header. Do I have to configure the kannel somehow, so that I do get
it?
What I _do_ get are these (amongst
others):
X_Network_Info:
X-WAP-Client-SDU-Size:
X-WAP-Session-ID:
What do they all
mean?
----- Original Message -----
Sent: Thursday, December 11, 2003
3:09 PM
Subject: RE: Wap Push
Yes, you can...
Among the environment variables in the cgi
script that you process the POST request with (php, cgi, asp, or other)
there will also be the clients IP address...
In apache like scripts, this environment
variable is usually called REMOTE_ADDR.
e.g. the global variable $REMOTE_ADDR in php or
getenv("REMOTE_ADDR") in c.
Rene Kluwen
Chimit
I'm confused, so I'll try and explain my
question a bit better:
I have a client that uses my kannel as a
WAP gateway. It does some POST (or WSP equivalent of one) requests. At
some later point I need to send this client a WAP push message. The
push message requires an address - either an MSISDN or an IPV4
address. Is there any way I can compose this address, according to
information I have from the client's POST requests?
Thanks for the response,
Zohar.
----- Original Message -----
Sent: Tuesday, December 09,
2003 12:11 PM
Subject: Re: Wap Push
This seems to be a normal fetch (phone connects and
loads the content). Or does I misunderstand something
?
aarno
On 9.12.2003, at 08:19, Zohar wrote:
Hi,/smaller>/fontfamily> Please,
I need help with this:/smaller>/fontfamily> How
can I initiate a WAP push message to someone who just connected to
my kannel as a WAP gateway? What's the client's address? /smaller>/fontfamily>
|