Sending SMSs with destination port number - Windows Mobile Development and Hacking General

Hi All!!!
Although I've been reading this forum from a long time, this is my first post.
I'm developing an application that integrates a GPS application (implemented in C++ using WM6 SDK) that should send a SMS to a Midlet application wich is a tracking application. In this journey I faced what seems to be a tough problem: I need to send an SMS from a C++ application to a Midlet application with the GPS coordinates.
It seems to be easy at first glance but as the J2ME community knows, Midlet applications can only receive messages that comes to a specific port number registered by the application.
I know to which port number I have to send the damm message, but WM6 SDK SMS API doesn't even mention a "port number". So I don't know how to specify it to the SmsSendMessage function.
My gess is that it has to be encoded in the parameter pbProviderSpecificData but I have no idea of how it should be encoded there.
WM6 SDK SMS API reference: http://msdn2.microsoft.com/en-us/library/aa919102.aspx
Any one has faced this problem before or could point me to the right direction?
Any comment on this is welcome.
Thanks in advance.

Related

Naive Tapi question

Hi,
I'm new to programming the SX56. I'd like to do some simple tapi apps, but I don't know what dll to reference -- coredll.dll? I'm using C# and the compact framework, and am familiar with using P/Invoke. I see a file on my device called coredll-dll.sig - what does it contain? Also, where do I get the coredll.dll (if that is what I should be using) as it does not appear in the Windows folder on my device. What is the TSP - Unimodem?
Thanks for any help.
Helen
I used Tapi with Embedded Visual Tools in plain C. I used tapi.h and linked with tapi.lib. You can't just open a comm port on the device and use AT commands, you have to use Tapi to control the phone.
I found a good book explaining it all and giving examples was "Windows CE Application Programming" by Nick Grattan and Marshall Brian ISBN 0-13-025592-0
I attach a sample of code that uses Tapi to make a phone ring for a fixed number of seconds you should make sense of the steps involved.
Do you have an example for answering TAPI call?
My dialing program is similar to the example. However, I can only make "voice" call work but not the data call. For data call I use "LINEMEDIAMODE_DATAMODEM" instead of "LINEMEDIAMODE_INTERACTIVEVOICE". I never got a ring message from the callee. and the caller side, I got a LINE_DEVSPECIFIC message with 40.
Does anyone have any idea?
- David

Get the telephone number in a program by starting a call

I develope a software which uses the phone of windows ce. So the user of the software can use the telephone. But it should be forbidden for the users to call any numbers. So I need to check the number the user puts in before he can start the call. How can I do that. Can I work with the RIL? In the past I have worked with the RIL and I get the message when someone starts a call but I don't know how I can get the number.
bye
Barney0021
I am not a programmer but could you not scan the keyboard input for this, used to be easy in the days of basic programming.
Thank you for answering, but I don't think this will work.
Mr.barney
can u provide me the code to use the phone
i dont know how to Initializing TAPI on EVB .... i saw the help file but i couldn't know how to do it well>>>pls
Barney0021: you may hook the COM1 and intercept all AT commands coming to the modem and filter the prohibited ATD commands. Or you can use TAPI functions like lineGetCallInfo. It should return the dialed number of the given call, but I have not tested this.
@ corv3:
I am programming with eVC++. And the phone application I use in my program is not written by myself. Instead I use the telephone application Windows CE owns. In my program I need only to start the telephone application. This is very easy. When you are still interested in the code (eVC++) then mail me again.
Greetings
@ mamaich:
Thanks, this is good, but the function needs a parameter called HCALL. How can I get this?
Greetings
Mr.Barney >>>
i want my program these functions:
-answer call by it self or by win ce phone program
-know the caller number
even on EVC ++
so if u know about the code of these functions pls tell me about them
Barney0021 said:
@ mamaich:
Thanks, this is good, but the function needs a parameter called HCALL. How can I get this?
Greetings
Click to expand...
Click to collapse
Look into TAPI samples coming with PPC 2003 SDK! There are several good examples.
The other variant is visiting www.cryptophone.de and downloading their source code. The code is a bit difficult to understand, but you'll se how everything can be done. Even interception of phone calls so that "Phone" application does not popup. Of cause you cannot use their source code because it is copyrighted, but you can do the similar things.
@ corv3:
At the moment my program only uses the Win CE phone. For this I've programmed a function that opens the telepbone. The following three lines will do that:
SYSTEMTIME systime;
GetSystemTime(&systime);
CeRunAppAtTime(L"\\Windows\\cprog.exe",&systime);
Ohter activities with the phone are still in progress but not properly working.
thanx alot Mr.Barney ....
Hi, I have the same problem
I want to get keypad numbers to block out going calls but i don't know how, key words I used are TAPI Windows mobile get caller number, call control, call management I searched in codeproject.com also but I found nothing, please help...I feel the wrong thing is from me

How to receive incoming call notification

1st of all - hello!
This is my first post in this Forum and I feel very uncomfortable at this point because I got a question, which has been hit many times before. Further it won't be the exact right place here to ask, because I dont own a XDA but a Motorola MPx200 with Windows Mobile 2003 Smartphone Edition. Nevertheless, I guess you can help me because developement in .NET is quite the same - and most of the features will work there too.
But getting startet...
I'm trying to write a program, which will indicate on my desktop computer if there is a incoming call on my mobile. Further it has to show me the incoming callers ID, maybe from the buildin phonebook of the mobile. For that Programm i have to write a little "listener" for my mobile, which calls a function (which talks to my desktop) when a incoming call is received.
Unfortunatly I can't write C++, but I think there must also be a solution in C# .NET over a API call. But I don't know, which method in which DLL I should call to receive the information if there is an incoming call or not.
Can anybody please help figuring out how to do this.
What I know now is, that it has to do with RIL and TAPI, but I must read myself in RIL to understand that.
Your my last chance - i googled the whole day, even read about 20 pages on google groups but there wasn't the "All-i-need-to-be-happy"-solution at all. I also have searched the wiki in here...
Sorry if you don't understand some parts of this text - i come from germany, so english isn't my native language.
Thanks so long.
Marcus
Hi
for WM2003 it is kind of hard and involves a lot of study concernaing TAPI.
with WM5 it should be quite easy using .net compact framework 2.0 as there is a new namespace Microsoft.WindowsMobile.Status and a System Property called: SystemProperty.PhoneIncomingCall yet I have not tried that route.
One more Option which I didn't try - but could be a chance for you without learning TAPI is to register a small console.exe within the notifcation queue to run on the appropriate system event! (memmaid is a good explorer for the notiication queue)
This option will most likely just tell you that there is a call - and now details - I have no time to research this right now.
BR
Daniel
http://msdn.microsoft.com/library/en-us/apisp/html/sp_extapi_linegetnumbercalls.asp?frame=true
V
Progress
And is it working??
I thought I was the only one who wants to get this working...
Let us know !

VOIP SMS .:. TvMSmS v0.1

Is a very very simple application that allows users to send sms by certain voip accounts...
Its my first app running in a PDA and i hope you enjoy.
TvMSmS_v0.2.rar
simple but lots of potential!
I must say, i like it a lot! there is also someone else developing something like this, his name is skandler. his app has some nice extra features, but i like the fast startup of your app, and the use of standard contact list.
do you see any way to integrate (hook) into the normal sms send subroutine?
also, it would be nice to call the app from commandline, so you could make a shortcut to send to specific people.
sender info doesn't work.
hi,
i found a small bug, when you use voipbusterpro.com, and you enter your correct number in your "from" field, the sms you sent has your login name instead of your (verified) number. i don't know about other accounts, i only use voipbusterpro.
other than that... it's fast! and simply works!
Hi thanks for reporting it.
Bug fixed and url updated...
Even the small apps have the rights to have their bugs
I already thought to put the app running from contact list in a append menu, but im starting with c# /sdk 6 and my knowledge of this is very small.I will keep looking and see if im capable to do that.
country code bug
Hi there,
i found another bug. when a contact already has the phonenumber in international style, your app still writes the countrycode first and then the number;
so you get +31+316.... in the case of a dutch number
You have right again
I will put a function to check if the number already start with + char or something.
thanks for your reports
As we see a very small app could have a lot of bugs (blame the coder )
Phone number with international code will ignore country code in conf...
always "Network error"
other IP SMS tools work & also any program that needs GPRS or 3G. Only TVMSMS fails.
Any ideas?
When "network fail" error appear is something about you configuration( he cant make the request to your voip account).Could you tell me what is your voip provider that you are using in software?
Thank you for this great app
Is the app available elsewhere as the rapidshare link is broken.

Get the incoming call's phone number (Caller ID)

Hi all,
How can I catch the incoming call's phone number (Caller ID) using the MFC?
If I use .NET there is SystemState and the SystemProperty PhoneIncomingCallerNumber. But what is similar with MFC?
Has anybody maybe a code snippet?
Joline
For WindowsMobile 5.0 and above you can read it from the registry.
Don't remember the exact reg key... but look in the SDK for:
SN_PHONEINCOMINGCALLERNUMBER_ROOT
SN_PHONEINCOMINGCALLERNUMBER_PATH
SN_PHONEINCOMINGCALLERNUMBER_VALUE
Best regards
Øystein
Thanks. This works.
I wrote a program which uses notifications and catches an incoming call. To see if that works the program opens a message box if there is an incoming call. But regrettably first I get the notification from the system and AFTER hang up the message box from my program appears.
What can I do that my program catch the call BEFORE all other programs notify this (e.g. to change the ring tone depending on the caller id)?
Joline
IMHO iits not so easy. You must use TAPI library and/or directly Ril.
Where can I find useful information about how to use TAPI and RIL (maybe with examples)?
Joline
For RIL exists only fragmentary informations - good source is forum http://www.teksoftco.com/forum/viewforum.php?f=15.
For TAPI examples search Windows Mobile SDK.
I need the same phone number catching in PHP
Hi ,
I need to generate the popup using PHP while the call is landed in our phone.
how can we do this?
Thanks and Regards,
JayarajMohan.J

Categories

Resources