Pretending to be a phone

Pretending to be a phone SearchSearch
Author Message
Mike Williams
Posted on Sunday, March 30, 2003 - 06:04 am:   

Hi,

I work for the multimedia arm of a large telecommunications company (*cough* orange uk *cough*), which basically means access to any technical documentation ain't going to happen, *sigh*.

Anyway, we are required to monitor a service provided by a 3rd party, which uses MSISDN's (and probably other GSM/GPRS/... specific headers) to determine a users current location.
I have spent the passed 2 nights trying to hack together a scriptable system to test this service. So far it works directly over HTTP, via a GPRS data connection (GPRS PCMCIA card) only, using a wap GPRS connection I can use the Nokia Wap Toolkit via a Wap Gateway, but not HTTP.

History done, down to the problem.
How do I "talk" to a wap gateway? And pretend to be a phone? No-one seems to say :(
I'm working in PHP, but can just as easily work in perl.
The wml-tools from http://pwot.org/wml/ can easily be used if I need to talk in bytecode.

Many Thanks
Bryce Norwood - NowSMS Support (Bryce)
Posted on Tuesday, April 01, 2003 - 09:55 pm:   

Hi Mike,

You'd have to talk in byte code.

I'm not sure that the WML-tools will help you any. I'm not familiar with them, but they appear to just handle compiling/decompiling WML.

You might need to handle compiled WML for interpreting a content response returned via WAP ... but if you want to pretend to be a phone ... that's more of a WSP issue.

You need to issue a WSP connect to the gateway, and then a WSP GET or POST to request a URL through the gateway.

WML wouldn't come into the picture until you needed to decipher a response that came back from the GET or POST ... as chances are the content of the response would be compiled WML (although it wouldn't have to be).

WSP requests are generated over UDP (connectionless IP).

Deciphering WSP requires consulting the WAP specs on WSP, WTP and WDP.

If you get setup Ethereal to trap packets between your phone and a WAP gateway, that'll go a long way toward helping you decipher the packets as Ethereal does a pretty good job of decoding WAP packets. Use that with the WAP specs as a reference (which you can download from http://www.openmobilealliance.org).

-bn
Chris
Unregistered guest
Posted on Monday, January 12, 2004 - 05:07 pm:   

Hallo Mike,

did you finish your monitor?
I am interested if you have done it using perl.

Cheers
Chris